Skip to main content

A command line app for creating Backends with FastAPI

Project description

Kamaqi

A command line app for creating Backends with FastAPI, inspired in Artisan from Laravel and manage.py from Django.

The key features are:

  • Creates a normal project or a project with Docker.
  • Chooses a MySQL, PostgreSQL or SQLite database.
  • Works as with Django creating apps.
  • Every application created with Kamaqi contains a minimum CRUD.

Installation:

Install Kamaqi in the global environment.

pip install kamaqi

For help on Kamaqi commands and parameters, use.

kamaqi --help 
kamaqi command --help

Basic Usage:

Init your project:

kamaqi init project you_project_name

Choose the options, for setting your project. Remember for create projects with docker requires docker and docker-compose installed.

Run your project

cd your_project_name
kamaqi run project you_project_name

Add apps to your project

Add an app

kamaqi add app users

Add multiple apps

kamaqi add apps users products sales ... etc

Create files for your apps

Kamaqi upgrade apps 
  • Refresh files in your editor.
  • Refresh the FastAPI documentation.

Review your project settings

kamaqi show config

Review your project apps

kamaqi show apps

Database migrations

For update your database tables.

kamaqi upgrade tables -m"A description about your changes"

To connect to MySQL or PostgreSQL database use.

  • For projects with Docker, review the docker-compose.yaml and use the database environment variables or use the following parameters.
DATABASE_USER = your_project_name_user
DATABASE_PASSWORD = your_project_name_password
DATABASE_NAME = your_project_name_db
DATABASE_PORT = MySQL 3306  and PostgreSQL 5432
  • For normal projects use your settings and in the .env and edit the connection parameters.

  • For SQLite databases use a editor extension or a other software.

Project Status

  • The project is currently under development and may contain errors.

  • You can contribute to this project, reporting bugs, writing documentation, writing tests, with pull requests... etc.

For more information, visit GitHub repository

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

kamaqi-0.1.6.tar.gz (15.4 kB view hashes)

Uploaded Source

Built Distribution

kamaqi-0.1.6-py3-none-any.whl (22.2 kB view hashes)

Uploaded Python 3

Supported by

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