Flask-Artisan
Les conventions de Laravel, mais c'est du Flask.
Flask-Artisan donne une structure prête à l'emploi aux applications Flask : conteneur de services,
service providers, configuration par fichiers, façades et helpers. L'application reste un vrai
objet Flask : flask run, les extensions Flask et leur documentation fonctionnent tels quels.
Version 0.10 (alpha) : l'API peut encore changer avant la 1.0. Voir le changelog.
Documentation : https://ahoblepierre.github.io/flask-artisan/
Démarrer un projet
Prérequis : Python 3.10 ou plus.
python3 -m venv .venv && source .venv/bin/activate
pip install flask-artisan
flask-artisan new blog
cd blog
pip install -r requirements.txt
flask run
Un aperçu
# routes/api.py
from flask_artisan import Route
from app.http.controllers.user_controller import UserController
Route.get("/users", UserController.index).name("users.index")
with Route.prefix("/admin").name("admin.").middleware("auth"):
Route.post("/users", UserController.store)
Ce que couvre la documentation
- Conteneur de services, service providers, configuration, façades
- Routage, controllers et middlewares
- Vues et formulaires (erreurs et
old()après redirection, CSRF, page de connexion) - Validation (Form Requests, réponses 422)
- Authentification (guards session et token)
- Limitation de débit et verrous
- Tests HTTP (assertions chaînables,
acting_as) - Base de données (modèles façon Eloquent, migrations)
- Cache (stores
file,redis,array) - Stockage de fichiers (façade
Storage, disques local et S3, uploads) - Événements, mail, notifications, queues
- Tâches planifiées (
flask schedule:run, fréquences, verrous) - Console (
flask make:*, commandes du projet)
Contribuer
Voir CONTRIBUTING.md.
Licence
MIT
Metadata
Release files for flask-artisan 0.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask_artisan-0.10.1.tar.gz | 127.7 kB | With provenance | Details for flask_artisan-0.10.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_artisan-0.10.1-py3-none-any.whl | Python 3 | none | any | Details for flask_artisan-0.10.1-py3-none-any.whl |
Total release size: 270.7 kB
Release files / flask_artisan-0.10.1.tar.gz
| Download URL | flask_artisan-0.10.1.tar.gz |
|---|---|
| Size | 127.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6570c827e31aa3f59f2734447535977ba385a289f5150175e6094e4b0e75b4e
|
|
BLAKE2b-256 checksum How to use checksums |
97733d9bdb052c2702e7a4c4773e04e7672b88879e7f741532ac248a9d53f321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / flask_artisan-0.10.1-py3-none-any.whl
| Download URL | flask_artisan-0.10.1-py3-none-any.whl |
|---|---|
| Size | 143.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
077ce3806e47dd740ab54c1a3f1f4acc6874194d568afefbe27479342b356280
|
|
BLAKE2b-256 checksum How to use checksums |
f3234332f0df70fa43d2bdb83aa563b8fe8d0693d93f2394abd641f9f8573180
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for flask-artisan 0.10.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flask_artisan-0.10.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.