Metadata-Version: 2.4
Name: bro-sba-py
Version: 0.1.1
Summary: Save time scaffolding Flask projects from Peewee models, with generated services, APIs, and an admin dashboard.
Author: Selim Benali
Maintainer: Selim Benali
License-Expression: MIT
Project-URL: Homepage, https://bro-py.selimbenali.me/
Project-URL: Documentation, https://bro-py.selimbenali.me/
Project-URL: Repository, https://github.com/selimbenali/bro-sba-py
Project-URL: Issues, https://github.com/selimbenali/bro-sba-py/issues
Keywords: flask,peewee,scaffold,admin,code-generator
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# bro-sba-py

**Start building sooner. Skip the setup grind.**

`bro-sba-py` scaffolds a small-to-medium Flask project from Peewee model files. It generates the backend structure, services, REST API routes, and an admin dashboard so you can spend more time on your app and less time on repetitive setup.

Peewee is the current model input. You do not need to be a project-architecture expert to use the generated starting point: inspect the code, learn how the pieces fit together, and customize it for your project.

## A few things it can generate

- CRUD and search APIs with matching service code.
- An admin dashboard with forms, search, sorting, and pagination.
- Optional authentication and role-based access.
- Optional live admin updates and notifications with Socket.IO.

Useful for students learning project structure, developers starting a new backend, and experienced teams who want to skip boilerplate.

## Install

```console
pipx install bro-sba-py
```

Run both commands from the folder containing your `models/` directory:

```console
bro-py-admin --models-dir ./models --output-dir ./generated
bro-py --models-dir ./models --output-dir ./generated
```

If setup options are omitted, the CLI asks about them in the terminal. It supports SQLite and MySQL.

## Learn more

- [Documentation](https://bro-py.selimbenali.me/)
- [Download example models](https://bro-py.selimbenali.me/downloads/model-examples.zip)
- [Source code on GitHub](https://github.com/selimbenali/bro-sba-py)

Maintained by Selim Benali · [MIT License](https://github.com/selimbenali/bro-sba-py/blob/main/LICENSE)
