Skip to main content

Template tool to easily generate your Python packages.

Project description

The bootstrap-py provides generating the Python packages.

Status

https://github.com/mkouhei/bootstrap-py/actions/workflows/ci.yml/badge.svg https://coveralls.io/repos/mkouhei/bootstrap-py/badge.png?branch=master https://img.shields.io/pypi/v/bootstrap-py.svg Documentation Status

Requirements

  • Python 3.9 over

Features

  • Generating Python package.

  • Checking Python package name existence at PyPI.

  • Test and conde checking environment is configured with the Tox, Pytest, and others.

  • Generating documentation automatically with the Sphinx.

  • Configuration Git repository, initial commit.

  • Generate sample code using --with-samples option.

Usage

Install bootstrap-py

Install bootstrap-py:

$ python -m venv .venv
$ python -m pip install bootstrap-py

Generate Python package

Generate your Python package.:

$ .venv/bin/bootstrap-py create -a 'Your author name' -e 'your-author-email@example.org' \
-u 'https://your-package-website.example.org' -o '/path/to/package-dir' \
-l 'select-the-license' 'your-package-name'
$ ls -a package-dir
.  ..  .coveragerc  .git  .github  .gitignore  MANIFEST.in  README.rst  docs  pyproject.toml  src  tox.ini  utils

List license choices

List license description choices.:

$ .venv/bin/bootstrap-py list -l
GPL        : GNU General Public License (GPL)
CPL        : Common Public License
IOSL       : Intel Open Source License
GPLv3+     : GNU General Public License v3 or later (GPLv3+)
(omit)

Using tox

Running test with tox:

$ pip install --user tox
$ tox
(omit)
_______________________________________ summary ______________________________________
py311: commands succeeded
flake8: commands succeeded
pycodetyle: commands succeeded
pydocstyle: commands succeeded
docs: commands succeeded
congratulations :)

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

bootstrap-py-2.0.0.tar.gz (69.5 kB view details)

Uploaded Source

Built Distribution

bootstrap_py-2.0.0-py3-none-any.whl (55.6 kB view details)

Uploaded Python 3

File details

Details for the file bootstrap-py-2.0.0.tar.gz.

File metadata

  • Download URL: bootstrap-py-2.0.0.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for bootstrap-py-2.0.0.tar.gz
Algorithm Hash digest
SHA256 365a2efc49b362f4234e4909622c3f5e31bb4f839c8973b9ffd0ce56267594d1
MD5 14b12001a203d4de82a4e57d1969956f
BLAKE2b-256 68ac0c490b3cd2bc03303f0bb257dcaec8cf1a7adfed2681f89e3b3502bb79f6

See more details on using hashes here.

File details

Details for the file bootstrap_py-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: bootstrap_py-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 55.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for bootstrap_py-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b591f78e8833641a171800bb020989e09c5a1a34d8c963db77e46a1b3f81221d
MD5 c9faa45f78f206d5057e9e3eda78a95f
BLAKE2b-256 6a037c1900c166f7a004ff9d0326dbde1dc44da4f19383bd0029543a8c0d9039

See more details on using hashes here.

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