Skip to main content

Easy FastAPI & Strawberry

Project description

Welcome to Dexter

project_root/
├── data/           -->  Any <data> for the project.
├── dist/           -->  Source <distribution>.
├── docs/           -->  Write the <documentation> here.
├── scripts/        -->  Write the <shell/bash> here.
|   └── watcher.py  -->  Code style enforcer & rating.
├── src/            -->  Write the <code> here.
|   |
|   └── project_name/       -->  (Library).
|       ├── __init__.py     -->  (Library: __init__) import [pkg1, pkg2, etc...] in this file.
|       ├── __main__.py     -->  (Library: __main__) any function you want to run as a <script> with "python -m project_name".
|       ├── script.py       -->  Script to use in --> setup.cfg --> [options.entry_points] <console_scripts>.
|       |
|       └── pkg1/           -->  (Package).
|       |   ├── __init__.py -->  (Constructor).
|       |   ├── creator.py  -->  (Module).
|       |   └── details.py  -->  (Module).
|       |
|       └── pkg2/           -->  (Package).
|           ├── __init__.py -->  (Constructor).
|           ├── creator.py  -->  (Module).
|           └── details.py  -->  (Module).
|
└── tests/ -->  Testing the <code>.

New Project (Clone)

touch clone_repo.sh
nano clone_repo.sh

Clone Repo Script:

# Variables
REPO="https://github.com/hlop3z/dexter"

if [ "$1" != "" ]; then
    # Do Cloning
    git clone $REPO $1
    cd $1
    rm -rf .git/
    mv src/project_name src/$1
else
    # Return Error
    printf "\nPlease enter a name for the project. \n\n"
    printf "For example: \n"
    printf "\tclone_repo project_name\n"
fi

Usage:

sh clone_repo.sh example_lib

Go to PipEnv — Cheat Sheet


When Ready . . .

python -m build
python -m pip install twine
python -m twine upload dist/*

Project details


Release history Release notifications | RSS feed

This version

0.0.2

Download files

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

Source Distribution

fastberry-0.0.2.tar.gz (15.4 kB view hashes)

Uploaded Source

Built Distribution

fastberry-0.0.2-py2.py3-none-any.whl (19.9 kB view hashes)

Uploaded Python 2 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