Skip to main content

Simple App Generator - Python

Project description

HitCount GitHub contributors Version License Build Status Downloads

SAPPGEN

Simple App Generator for Python - Command line utility

Well structured code skeleton for python code and applications with pytest

Template 1

Standardizing general scripting, bots, applications etc. for maintainability and testing

Template 2

WSGI REST backend server application with flask - gunicorn

Python 3.7

Installation

pip install sappgen

Usage:

$ sappgen [options] <project_name> <app_name>
$ sappgen proj app
$ sappgen -t1 proj app
$ sappgen -t2 proj app

Available options are:

-h, --help         Show help
-v, --version      Show package version
-t1, --template1   Generate application - template 1
-t2, --template2   Generate wsgi application - template 2

Default App Template: Template 1 - App structure

proj1
├── app1
│   └── util
│   │   ├── __init__.py
│   │   └── log_util.py
│   │── __init__.py
│   └── app.py
├── config.ini
├── main.py
│
├── tests
|   └── test_app1.py
│
├── Makefile
├── README.md
└── requirements-dev.txt

WSGI Server App Template: Template 2 - App structure

project
│
├── testapp
│   ├── routes
│   │   ├── __init__.py
│   │   └── test_routes.py
│   │
│   └── util
│   │   ├── __init__.py
│   │   └── log_util.py
│   │
│   ├── __init__.py
│   └── main.py
│
├── config.ini
├── Makefile
├── README.md
├── requirements.txt
│
└── tests
    └── test_main.py

Contact

Links

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

sappgen-1.0.7.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

sappgen-1.0.7-py3-none-any.whl (15.7 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