Metadata-Version: 2.5
Name: StaticRoute
Version: 0.1.1
Summary: User-configured route creation to interact with json5 data stores.
Project-URL: Homepage, https://github.com/Omena0/StaticRoute
Project-URL: Repository, https://github.com/Omena0/StaticRoute
Author-email: Omena0 <omena0mc@gmail.com>
License-Expression: PolyForm-Noncommercial-1.0.0
License-File: LICENSE.md
Keywords: data-store,flask,json5,route,router
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flask
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Requires-Python: >=3.14
Requires-Dist: flask>=3.1
Requires-Dist: json5>=0.9
Description-Content-Type: text/markdown

# StaticRoute

User-configured route creation to interact with json5 data stores.

## Installation

```bash
pip install staticroute
```

## Usage

Literally just call `load_data_stores` with the routes.

You can get routes from `load_routes_json` which by default reads `routes.json`.

```py
import flask

from .load import load_data_stores, load_routes_json

# Load routes
routes = load_routes_json()

data_stores_dir = "data_stores"
os.makedirs(data_stores_dir, exist_ok=True)

# Define app
app = flask.Flask(__name__)
app.secret_key = "1234" # Need a key for auth

load_data_stores(app, data_stores_dir, routes)

app.run(debug=True)
```
