Skip to main content

pynavt is a tool to create a clean architecture project and auto generating modules

Project description

Pynavt

  _____                         _   
 |  __ \                       | |  
 | |__) |   _ _ __   __ ___   _| |_ 
 |  ___/ | | | '_ \ / _` \ \ / / __|
 | |   | |_| | | | | (_| |\ V /| |_ 
 |_|    \__, |_| |_|\__,_| \_/  \__|
         __/ |                      
        |___/                       

Create project with Clean Architecture folder structure


Pynavt is a cli tool to create clean architecture app for you including Fastapi, bcrypt and jwt.

  • Creates Clean Architecture project for you

Features

Installation

Pynavt requires Python 3.6 to run.

Install the dependencies.

pip install pynavt

How to use

In your terminal type to see all avaible commands:

pynavt --help

To create a new Fastapi with clean architecture project(This includes a crud example with the name of Tasks):

pynavt --new yourProjectName

To create a new module with crud:

pynavt --module yourModuleName

To run the project:

uvicorn app:app --relaod

Database service

To create a new db service client with Mysql:

Mysql - to learn more visit (https://www.w3schools.com/python/python_mysql_getstarted.asp)

pynavt --client mysql

This will generate a database connection in infraestructure/databases/client.py

to use import the service in your repository.

Folder Structure:


|-- controller
|        |      
|        |-tasks --> This is and example folder(Create your own folder)
|            |       
|            |-tasks_controller.py --> This is and example controller file(Create your own controllers)
|            
|-- domain
|      |
|      |-useCase
|            |
|            |-tasks --> This is and example folder(Create your own folder)
|                | 
|                |-task_useCase.py --> This is and example useCase file(Create your own useCases)
|
|-- infraestructure
|           |
|           |-databases
|           |      |
|           |      |-client.py
|           |
|           |-entities
|           |      |
|           |      |-tasks --> This is and example folder(Create your own folder)
|           |          |
|           |          |-tasks_entity.py --> This is and example entity file(Create your own entity)
|           |
|           |-respository
|                  |
|                  |-tasks --> This is and example folder(Create your own folder)
|                      | 
|                      |-tasks_repository.py --> This is and example repository file(Create your own repositories)
|                       
|-- utils
        |
        |-errors
        |    |
        |    |-errros.py
        |
        |-services
                |
                |-jwt
                |   |
                |   |-jwt.py
                |
                |-bcrypt
                    |
                    |-bcrypt.py

License

MIT

Pynavt is MIT licensed."# Pynavt" "# pynavt" "# pynavt"

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

pynavt-1.0.8.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

pynavt-1.0.8-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pynavt-1.0.8.tar.gz.

File metadata

  • Download URL: pynavt-1.0.8.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pynavt-1.0.8.tar.gz
Algorithm Hash digest
SHA256 200413adb6e1b07eb48c3fa0137e2be9ff7cb2fb31b5ad18cbfb0c356864e608
MD5 477f1a81a3394834049e18d46fda9f0d
BLAKE2b-256 048c81a474746a6312d0433c315a6922701bcecbe55f2c0c9218519a929a682a

See more details on using hashes here.

File details

Details for the file pynavt-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: pynavt-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for pynavt-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3a40114ebc1009b541bdf57f84d92e585681b4d1d8bfb4a259cc879408dc5a36
MD5 faf80e2c7f8d8c5710b63dd91ef19bbc
BLAKE2b-256 d01348786de88985d30979a55edd2b991055ff4edd70e2e25a040d36f8644149

See more details on using hashes here.

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