Skip to main content

A CLI tool for building FastAPI apps faster.

Project description

Logo

codecov Python Version License Issues Last Commit

🚧 In development 🚧

Zentra API, your CLI tool for building FastAPI projects faster.

Zentra API

Streamline your workflow, automate repetitive tasks, and generate high-quality code in minutes. Whether you're a seasoned developer or just starting out, Zentra API empowers you to build robust, scalable, and production-ready FastAPI applications with unparalleled speed and efficiency.

Say goodbye to the hassles of manual setup and configuration, and say hello to a smoother, more productive coding experience.

Zentra API isn't just about speed - it's about enhancing your entire development process. Its intuitive CLI simplifies project creation, allowing you to focus on what truly matters: crafting exceptional APIs.

With built-in templates, automated code generation, and seamless integration with popular tools and frameworks, Zentra API ensures your projects are not only fast to build but also maintain the highest standards of quality and performance. Elevate your FastAPI development game today!

What's Great About It?

Our goal with Zentra API is to provide a suite of useful commands that improve the efficiency of building FastAPI apps. API development doesn't need to be a long winded process!

Here's some of the commands you can expect to see:

  • init - a quick way to initialize projects with a predefined template so you can dive straight into route building. You'll need to run this first!
  • add-table - adds a SQL Base class template to the project, automatically configuring it for use in routes
  • add-route - adds a new route to the project with a starter template, automatically linking it to the FastAPI app
  • build - creates a production ready version of your app with docker files
  • new_key - a quick way to generate a new authentication secret key

But, that's not all! We've also added a few extra features to make development a breeze:

  • Unit test templates - when running one of the add commands, you'll automatically get some relevant pytest unit tests added to the project
  • Route outputs - we've added a standardized template for API responses that follow best practices making your APIs a joy to work with
  • Response models - we provide utilities for quickly building response models from status codes that can be added to your routes in seconds

And so much more...

Getting Started

To get started, install the API package with Poetry:

pip install zentra_api poetry

We use Poetry for managing our project packages and using custom commands, such as run-dev for the development environment.

Then create a new project with:

zentra-api init <project_name>

With one command you'll have a working app in minutes with:

  • Built-in user authentication with JWT token protection
  • Preconfigured CORs middleware
  • A SQLite database configured with Alembic (🔜 Alembic - coming soon! 🔜)
  • Built-in templated route responses following best practices
  • A simple folder structure to make project navigation a breeze
  • And, access to our package filled with other goodies

Read more about it in our documentation (🔜 Coming soon! 🔜).

Zentra SDK

Zentra API is part of the Zentra SDK project. You can read more about it on GitHub.

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

zentra_api-0.1.9.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

zentra_api-0.1.9-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file zentra_api-0.1.9.tar.gz.

File metadata

  • Download URL: zentra_api-0.1.9.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for zentra_api-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9d9d73af0c000b45b13f9683fa8ecef09de46e160b1ed4e76f1ad5e0d3759e31
MD5 734a5027f900b2ee4233257637f8bb8b
BLAKE2b-256 4278f488d6d4ec1da7a46ae99fa61d3973edd8087c6a930c75a2a94fc4c3844e

See more details on using hashes here.

File details

Details for the file zentra_api-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: zentra_api-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for zentra_api-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 227b78520f9b32957f12eb434b419d910479d1f3d3f9a5ece9308b75a73ecb16
MD5 c7f93f2303f389e41c1a9f4f32b7ca93
BLAKE2b-256 b9d5d17f12c48baf6faa81f94ada6750d655ecaabceaf933909859035ad7beb9

See more details on using hashes here.

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