Create Aio App

screenshot of Create Aio App

Create Aio App

The boilerplate for aiohttp. Quick setup for your asynchronous web service.

Overview

Create aio app is a tool that allows users to quickly bootstrap aiohttp applications with best practices already in place for development. It provides an easy way to create a new directory for the project and includes features such as aiohttp framework, mypy for optional static typing, pytest for unit tests, flake8 for linting, black for code formatting, trafaret for data validation, aio devtools and aiohttp debug toolbar for developer tools and debugging, postgres for storage, alembic for database migration, sqlalchemy for ORMs, sphinx for documentation, docker-compose for defining and running multi-container Docker applications, and py-spy for sampling profiler for Python programs. The tool provides options to remove postgres and its requirements, add redis to the template, and use uvloop event loop for aiohttp. The project is open source and available under the MIT license.

Features

  • aiohttp - the best python framework
  • mypy - optional static typing
  • pytest - unit tests
  • flake8 - linter
  • black - code formatter
  • trafaret - data validation
  • aio devtools - developer tools
  • aiohttp debug toolbar - tool for debugging
  • postgres - storage
  • alembic - database migration tool
  • sqlalchemy - ORMs
  • sphinx - docs
  • docker-compose - tool for defining and running multi-container Docker applications
  • py-spy - Sampling profiler for Python programs

Installation

To install Create aio app, you need to have Python 3.6 or 3.7 and docker-compose installed on your system. After ensuring these requirements are met, follow the steps below:

  1. Run the command pip install create-aio-app to install the package.
  2. To use interactive mode, run create-aio-app and follow the prompts to create a new directory for your project.
  3. Once the directory is created, navigate to it using the command cd my_project.
  4. To start the project, run the following commands:
make install
make start
  1. Finally, open your browser and navigate to http://localhost:8080/ to access the running application.

Summary

Create aio app is a tool that simplifies the process of setting up aiohttp applications with essential features and best practices already in place. It provides a wide range of functionalities, including frameworks, testing tools, linting, code formatting, data validation, developer tools, debugging, database integration, documentation, containerization, and profiling. The tool is easy to install and use, and it offers options to customize the project template based on specific requirements. Create aio app is an open-source project released under the MIT license, allowing developers to contribute, suggest improvements, and create pull requests.

fullstack
Fullstack Boilerplates

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.