Metadata-Version: 2.4
Name: prm-studio
Version: 0.1.3
Summary: Shared design system package
Home-page: https://github.com/mackertp/ml-cookbook
Author: Preston Mackert
License: MIT
Project-URL: Source, https://github.com/mackertp/ml-cookbook
Project-URL: Issues, https://github.com/mackertp/ml-cookbook/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flask
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: Flask>=3.0

# prm-studio

A shared design system package that can be implemented in Python applications, [ml-cookbook](https://github.com/mackertp/ml-cookbook) provides Flask implementations of the design system.

## What this package includes

- A compiled CSS asset at `/prm-studio/static/css/prm-studio.css`
- Reusable Jinja templates and macros under `prm_studio/`
- A Flask blueprint registration helper for static and template loading

## Install

Install prm-studio to an isolated enviornment with [poetry](https://python-poetry.org/).

```bash
poetry add prm-studio
```

Or with pip

```bash
pip install prm-studio
```

## Use in a Flask app

```python
from flask import Flask
from prm_studio import register_prm_studio

app = Flask(__name__)
register_prm_studio(app)
```

Then include the stylesheet in your app templates:

```jinja2
<link rel="stylesheet" href="{{ url_for('prm_studio.static', filename='css/prm-studio.css') }}">
```
