Skip to main content

abhijanfastapi

Scaffolding CLI for Abhijan FastAPI projects.

Provides the abhijan command with three subcommands:

  • abhijan init — creates main.py, config.py, database.py, requirements.txt
  • abhijan alembic — creates alembic/env.py with the async migration config
  • abhijan storage — adds storage.py and patches config.py with upload settings

Install

pip install abhijanfastapi

Usage

# scaffold a new project in the current directory
abhijan init

# scaffold into a specific directory
abhijan init -d ./my-app

# add upload support (writes storage.py + config.py settings)
abhijan storage

# (re)create alembic/env.py
abhijan alembic

# overwrite existing files without prompting
abhijan init -f

After scaffolding, run your app with:

uvicorn main:app --reload

And run migrations with:

alembic revision --autogenerate -m "initial"
alembic upgrade head

Contributing

See CONTRIBUTING.md. New features go on a feature branch, opened as a pull request against master — never commit directly to master.

Requirements

  • Python >= 3.10

License

MIT

Metadata

Release files for abhijanfastapi 1.0.4

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

Built distribution (wheel)

Table of built distributions (wheels) for abhijanfastapi 1.0.4
File Interpreter ABI Platform
abhijanfastapi-1.0.4-py3-none-any.whl Python 3 none any Details

Release files / abhijanfastapi-1.0.4-py3-none-any.whl

Download URL abhijanfastapi-1.0.4-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a1995139867856c1cb5d10dfe37b70310cdf19c4f8d2e9f37e288e8f806cc29
BLAKE2b-256 checksum
How to use checksums
b0abfe21e4a7c31ffc44cf07514560077f8242ea503ccf251a369cda529565f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 release file

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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