Skip to main content

My Best Python Project

Project description

My best python project

PyPI Release Package

Maintainability Test Coverage Test

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: File 'test.txt'

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

$ mbpp -o test.txt --overwrite
Output: File '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-files

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.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

my_best_python_project-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file my_best_python_project-0.1.1.tar.gz.

File metadata

  • Download URL: my_best_python_project-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure

File hashes

Hashes for my_best_python_project-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6c4d6c8b889ec04c470224b432ecd62383c653b65a1d85fc5555e99abbd638b5
MD5 76f07a88389cc6f35b5e5fa0d6ac7e58
BLAKE2b-256 f8dcfd5203c00557d28420650f844265ae9cb5ae653e0f40d765d549fedaa3de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for my_best_python_project-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec416334d0b7fd0e1fe2bee13ffc350226299042394992b16c6e5c9ae70261a
MD5 def754586992bf57edd924647e2e6e9b
BLAKE2b-256 ee5015852d46e2687b91a766b7f3e22461c232c4d3cb07e52880a7d629e91479

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