Skip to main content

flaskforge

Flask uchun Django'ga o'xshash CLI: katta loyiha strukturasini avtomatik yaratadi va Flask extensionlarini bitta buyruq bilan ulaydi.

O'rnatish

pip install -e .

Ishlatish

flaskforge startproject shop --preset web      # minimal | web | api | full
cd shop
python -m venv .venv && source .venv/bin/activate
pip install -r requirements-dev.txt && pip install -e /path/to/flaskforge

python manage.py startapp blog                 # apps/blog (HTML blueprint)
python manage.py startapp posts --api          # apps/posts (JSON API, /api/posts)
python manage.py add mail cache limiter        # extension qo'shish (pip install + kod ulash)
python manage.py makemigrations -m "initial"   # Flask-Migrate (init avtomatik)
python manage.py migrate
python manage.py createsuperuser               # `add login` dan keyin
python manage.py runserver                     # http://127.0.0.1:8000
python manage.py extensions                    # ro'yxat

flaskforge startapp|add|extensions loyihaning istalgan papkasidan ham ishlaydi.

Yaratiladigan struktura

config/settings.py   Base/Development/Testing/Production, INSTALLED_APPS
core/__init__.py     create_app() - app factory, INSTALLED_APPS ni avtomatik yuklaydi
core/extensions.py   db, login_manager, ... (marker'lar orqali avtomatik to'ldiriladi)
apps/<name>/         views.py (bp), models.py, [forms.py, schemas.py, events.py, commands.py]
templates/ static/ tests/ wsgi.py Dockerfile .env

Har bir app'dan avtomatik yuklanadi: models.py, events.py, views.py (bp), commands.py (commands = [...] -> manage.py buyruqlari).

Qo'llab-quvvatlanadigan extensionlar

sqlalchemy, migrate, login (apps/accounts bilan), wtf (CSRF), mail, cors, jwt, cache, limiter, babel, marshmallow, socketio, admin, debugtoolbar, talisman, compress.

Yangisini qo'shish: src/flaskforge/registry.py ichiga bitta Extension(...) yozuvi.

Qanday ishlaydi

add buyrug'i core/extensions.py va config/settings.py ichidagi # forge:... izohlari (marker) tepasiga kod qo'shadi. Amal idempotent: ikki marta ishlatsangiz hech narsa takrorlanmaydi. Mavjud fayllar --forcesiz ustidan yozilmaydi.

Test

pip install -e ".[dev]" && pytest

Metadata

Release files for flaskforge-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaskforge-cli 0.1.0
File Size Uploaded Provenance Actions
flaskforge_cli-0.1.0.tar.gz 27.1 kB Without provenance Details for flaskforge_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaskforge-cli 0.1.0
File Interpreter ABI Platform Actions
flaskforge_cli-0.1.0-py3-none-any.whl Python 3 none any Details for flaskforge_cli-0.1.0-py3-none-any.whl

Total release size: 63.4 kB

Release files / flaskforge_cli-0.1.0.tar.gz

Download URL flaskforge_cli-0.1.0.tar.gz
Size 27.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd73d92856a3cc2697b86e92282df09f99db6e1c0069305eddeddfe74c846a77
BLAKE2b-256 checksum
How to use checksums
9d2ec49b56a3f36dca741a3934f8254e0ab28ac293062560b4677b8ec4acbb10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / flaskforge_cli-0.1.0-py3-none-any.whl

Download URL flaskforge_cli-0.1.0-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad5513e2d4d96b276b6313f7a80952be03356478e928b773ee66784d691acfc8
BLAKE2b-256 checksum
How to use checksums
898d90d75f0bcd9271203f3b5bd49a3adfc649bcb10665336922d02295889c49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for flaskforge-cli 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page