Skip to main content

No project description provided

Project description

🚀 Karigor CLI

A Laravel Artisan-inspired CLI for Python FastAPI projects.

Quick Start

Install:

pip install karigor

Show available commands:

karigor --help

Available Commands

  • karigor init — initialize a new project
  • karigor serve — run the application
  • karigor alembic:install — install Alembic and setup configuration
  • karigor alembic:migrate [message] — run Alembic revision and upgrade head
  • karigor alembic:fresh — run Alembic upgrade head
  • karigor create:modules <path> -a|--all — create a new module with all components
  • karigor create:model <path> — create a model file
  • karigor create:repository <path> — create a repository file
  • karigor create:route <path> — create a route file
  • karigor create:schema <path> — create a schema file
  • karigor create:services <path> — create a services file

Command Reference

karigor init

Creates starter files and directories for a FastAPI project.

karigor serve

Starts the application from main.py.

karigor alembic:install

Sets up Alembic with the required configuration.

karigor alembic:migrate [message]

Generates and applies a database migration. If no message is provided, a timestamp is used.

karigor alembic:fresh

Runs alembic upgrade head to bring the database schema to the latest revision.

karigor create:modules

Creates a new module and all related components. This command requires the -a or --all flag.

karigor create:model

Creates a new Python model file.

karigor create:repository

Creates a new repository file.

karigor create:route

Creates a new route file.

karigor create:schema

Creates a new schema file.

karigor create:services

Creates a new services file.

Requirements

  • Python 3.10+
  • FastAPI
  • SQLAlchemy
  • Alembic

Contributing

git clone https://github.com/yourusername/karigor.git
cd karigor
pip install -e .
pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

karigor-1.3.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

karigor-1.3.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file karigor-1.3.1.tar.gz.

File metadata

  • Download URL: karigor-1.3.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for karigor-1.3.1.tar.gz
Algorithm Hash digest
SHA256 aa9105f149c0e4fdf33d9f9cc6edad17f93f8c98a940d7ad5ba80cbd29274524
MD5 87da31fba88644fd2aff885f38644388
BLAKE2b-256 4360a8d944a4d4f18b251b3b8ba943b8b915bea81591188b68d52f22cfdfb556

See more details on using hashes here.

Provenance

The following attestation bundles were made for karigor-1.3.1.tar.gz:

Publisher: publish.yml on tawhidjony/karigor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file karigor-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: karigor-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for karigor-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a296ec907fb874395d59e21daf3b79f0777888488fee494eeef0b1e3d26e4b1b
MD5 b7daf003c36647523f1ac8aca9697557
BLAKE2b-256 a0c0cf6c0aefeab567f7b765fa3bfcb7c6b054d863a5c48c612867d9defeaaa4

See more details on using hashes here.

Provenance

The following attestation bundles were made for karigor-1.3.1-py3-none-any.whl:

Publisher: publish.yml on tawhidjony/karigor

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page