Skip to main content

My Best Python Project

Project description

My best python project

PyPI Release Package

Maintainability Code 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
# or, (use as CLI only)
pipx 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:

poetry shell
poetry install
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.2.tar.gz (5.6 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.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for my_best_python_project-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1cd66da4061ef41d70a2589cf17457adbe8662f8697513c33a489149bf3716e2
MD5 5db7b831b6d7de5713bc6b1c472b52ad
BLAKE2b-256 6f02ae9f0253028467b53e9d9029359ea1b06b46aa354621dab18aded708787b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for my_best_python_project-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a6aa4e91c65b102df36c0e9c45dfc02605641b4acdc3742a76113c8c68e6e7a
MD5 ebd0c6f9a6ac60d27ac0ca57df2b99b9
BLAKE2b-256 e073ec68288890175c58431920ca017493b8e160a6b5cee57a9a963bfde8a55d

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