Skip to main content

My Best Python Project

Project description

My best python project

PyPI Maintainability Release Package

pre-commit.ci status pages-build-deployment

This is a sample project.

Installation

pip install git+https://github.com/eggplants/my-best-python-project
# or,
pip install my-best-python-project

Usage

CLI

$ mbpp -h
usage: mbpp [-h] [-o PATH] [--overwrite] [-q] [-V]

This command prints package's version.

optional arguments:
  -h, --help              show this help message and exit
  -o PATH, --output PATH  output to file (default: None)
  --overwrite             overwrite when using `-o` (default: False)
  -q, --quiet             quiet mode (default: False)
  -V, --version           show program's version number and exit

note:
    This package and tool is a sample.

$ mbpp
This package's version is: 0.0.1

$ mbpp -q
0.0.1

$ mbpp -o test.txt
Output: 'test.txt'

$ mbpp -o test.txt
Error: File 'test.txt' exists. To overwrite, use `-o`.

$ mbpp -o test.txt --overwrite
Output: 'test.txt'

Library

To print this package's version:

import my_best_python_project

print(my_best_python_project.__version__)

Docker

To pull and rename:

docker pull ghcr.io/eggplants/my-best-python-project
docker tag ghcr.io/eggplants/my-best-python-project mbpp
docker rmi ghcr.io/eggplants/my-best-python-project

To run:

$ docker run --rm -it mbpp -h
This package's version is: 0.0.2

$ docker run --rm -it mbpp -h
usage: mbpp [-h] [-o PATH] [--overwrite] [-q] [-V]

This command prints package's version.

options:
  -h, --help              show this help message and exit
  -o PATH, --output PATH  output to file (default: None)
  --overwrite             overwrite when using `-o` (default: False)
  -q, --quiet             quiet mode (default: False)
  -V, --version           show program's version number and exit

note:
    This package and tool is a sample.

Development

To setup development environment:

pip install -e ".[all]"
pre-commit install

To run pre-commit hooks manually:

pre-commit run
# or,
pre-commit run --all-fileso

Create release

To create release with GitHub Release and publish packages on PyPI and GitHub Container Registry:

# update: `__version__` of `my_best_python_project/__init__.py`
# commit
git add . && git commit -m "update: <version>" && git push
# tag
git tag vX.Y.Z && git push --tags

License

MIT License

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

my-best-python-project-0.0.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

my_best_python_project-0.0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file my-best-python-project-0.0.5.tar.gz.

File metadata

  • Download URL: my-best-python-project-0.0.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for my-best-python-project-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9c83bce01f479e7a1aabb4dd068abc559be1252fc7c536f6c7edfb8f7bb5646c
MD5 34bd8c164774a05fc123585bb1b76bbc
BLAKE2b-256 65347417dc0f890d4c9984cf7d2cf3e7f9f0eaf4442a368f80549648b2f264a4

See more details on using hashes here.

File details

Details for the file my_best_python_project-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for my_best_python_project-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d0f84def83335aa2e3e71dd332857b935be7a2deb27d2889c74a799d86c93ee
MD5 bbd121f68331a4251806cec860d4b38b
BLAKE2b-256 79439a68a8717856645152443960de8fcb0086c3a1b0ab688d689728d07b62f2

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