Skip to main content

Your tool to create the skeleton of python projects

Project description

PyArchetype

This project is used to simplify the skeleton creation of python projects

Installation

pip install pyarchetype

Syntax

Tool to create the skeleton of a python project

usage: pyarchetype [-h] [-v] [--create] [--wizard] [--path PATH]
                   [--module MODULE] [--name NAME] [--email EMAIL]
                   [--initial_version INITIAL_VERSION]
                   [--license {MIT,Apache-2.0,GPL-3.0-only,Propietary}]
                   [--force_overwrite] [--create_venv]

Tool to create the skeleton of a python project. Version 0.1.0

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  --create              Create skeleton structure of your python project
  --wizard              Define all parameters in wizard mode
  --path PATH           basedir. Default current dir
  --module MODULE       Module name . Default value is app
  --name NAME           Owner. Default value is jordiredondo
  --email EMAIL         Email address. Default value is user@email.com
  --initial_version INITIAL_VERSION
                        Initial Version. Default value is 0.0.1
  --license {MIT,Apache-2.0,GPL-3.0-only,Propietary}
                        license. Default value is MIT
  --force_overwrite     Force overwrite. Default value is false
  --create_venv         Create project virtualenv. Default value is false

Example of execution

At below example we are creating an app under path "myapp". This bootstrapping also creates python .venv

pyarchetype --create --path myapp --create_venv --name user1 --email user1@email.com --create_venv
INFO:pyarchetype.pyarchetype:all_flags={
    "create": true,
    "wizard": false,
    "path": "myapp",
    "module": "app",
    "name": "user1",
    "email": "user1@email.com",
    "initial_version": "0.0.1",
    "license": "MIT",
    "force_overwrite": false,
    "create_venv": true
}
INFO:pyarchetype.pyarchetype:Creating basedir myapp
INFO:pyarchetype.pyarchetype:Updating file myapp/.vscode/tasks.json
INFO:pyarchetype.pyarchetype:Updating file myapp/.vscode/launch.json
INFO:pyarchetype.pyarchetype:Updating file myapp/.gitignore
INFO:pyarchetype.pyarchetype:Updating file myapp/pyproject.toml
INFO:pyarchetype.pyarchetype:Updating file myapp/LICENSE
INFO:pyarchetype.pyarchetype:Updating file myapp/README.md
INFO:pyarchetype.pyarchetype:Updating file myapp/requests.txt
INFO:pyarchetype.pyarchetype:Updating file myapp/scripts/compile_and_upload.sh
INFO:pyarchetype.pyarchetype:Force filename=myapp/scripts/compile_and_upload.sh chmod=0755 . Only relevant for Unix-like platforms
INFO:pyarchetype.pyarchetype:Updating file myapp/scripts/compile_only.sh
INFO:pyarchetype.pyarchetype:Force filename=myapp/scripts/compile_only.sh chmod=0755 . Only relevant for Unix-like platforms
INFO:pyarchetype.pyarchetype:Updating file myapp/scripts/upload_pypi.sh
INFO:pyarchetype.pyarchetype:Force filename=myapp/scripts/upload_pypi.sh chmod=0755 . Only relevant for Unix-like platforms
INFO:pyarchetype.pyarchetype:Updating file myapp/.pypirc
INFO:pyarchetype.pyarchetype:Force filename=myapp/.pypirc chmod=0600 . Only relevant for Unix-like platforms
INFO:pyarchetype.pyarchetype:Creating folder myapp/tmp
INFO:pyarchetype.pyarchetype:Creating folder myapp/tests
INFO:pyarchetype.pyarchetype:Updating file myapp/src/app/app.py
INFO:pyarchetype.pyarchetype:Updating file myapp/src/app/__init__.py
INFO:pyarchetype.pyarchetype:Updating file myapp/tests/app/test_app.py

Source Code

https://github.com/redcorjo/pyarchetype.git

Version: 2023010702

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

pyarchetype-0.1.11.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

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

pyarchetype-0.1.11-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file pyarchetype-0.1.11.tar.gz.

File metadata

  • Download URL: pyarchetype-0.1.11.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.10

File hashes

Hashes for pyarchetype-0.1.11.tar.gz
Algorithm Hash digest
SHA256 13a07dab8b995d554d364d5c7023e85bd7f1444cd5e5eed2009e2b5c52c8c183
MD5 0f28bff112f33b22c431bee546d619b6
BLAKE2b-256 b16749c3442363755d059148c9197792ccf97c24bc8f8524cd739c82e16f59af

See more details on using hashes here.

File details

Details for the file pyarchetype-0.1.11-py3-none-any.whl.

File metadata

  • Download URL: pyarchetype-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.10

File hashes

Hashes for pyarchetype-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 03d888f9cbfd95eafe52d06906113d01dbba72ada437c662a3528a75afe1e541
MD5 2a6c1f89a0a67f8590e83c8ba35109be
BLAKE2b-256 e57f15214f0a1213b2383ead67f1299acce033037a7b8944c47ffd4a0657b7e3

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