Metadata-Version: 2.5
Name: aerolith
Version: 1.2.0
Summary: Tactile UI for the web: the Aerolith CSS and Bryce-rendered sprites as static files for Django, Flask, FastAPI and friends.
Project-URL: Homepage, https://immineal.github.io/aerolith/
Project-URL: Source, https://github.com/immineal/aerolith
Project-URL: Issues, https://github.com/immineal/aerolith/issues
Author: Immineal
License-Expression: MIT
License-File: LICENSE
Keywords: bryce,css,django,flask,static-files,tactile,ui
Classifier: Framework :: Django
Classifier: Framework :: Flask
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# aerolith (Python package)

The [Aerolith](https://github.com/immineal/aerolith) CSS, its optional JS and the Bryce-rendered
sprites, packaged as static files for Python web apps. There is no Python logic beyond telling
you where the files are.

```sh
pip install aerolith
```

**Django:** add `"aerolith"` to `INSTALLED_APPS`, then

```html
<link rel="stylesheet" href="{% static 'aerolith/aerolith.css' %}">
<script src="{% static 'aerolith/aerolith.js' %}" defer></script>
```

**FastAPI / Starlette:**

```python
from fastapi.staticfiles import StaticFiles
from aerolith import static_dir
app.mount("/aerolith", StaticFiles(directory=static_dir()), name="aerolith")
```

**Flask:**

```python
from flask import Blueprint
from aerolith import static_dir
app.register_blueprint(Blueprint("aerolith", __name__, static_folder=static_dir(),
                                 static_url_path="/aerolith"))
```

Then link `/aerolith/aerolith.css`. Components and markup: see the
[showcase](https://immineal.github.io/aerolith/) and the main README.
