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 build docker image locally:

# build:
curl 'https://raw.githubusercontent.com/eggplants/my-best-python-project/master/Dockerfile' | docker build -t eggplanter/mbpp -f-

To run:

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

$ docker run --rm -it eggplanter/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.4.zip (9.3 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.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file my-best-python-project-0.0.4.zip.

File metadata

  • Download URL: my-best-python-project-0.0.4.zip
  • Upload date:
  • Size: 9.3 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.4.zip
Algorithm Hash digest
SHA256 e90fb7d9fc66b60a27d1ae0fd11d8fe1f14f95c94243e8657c3f9d63bd814db7
MD5 d959dd1771c87dfdca5e98d994cdcfea
BLAKE2b-256 20dd4bc41911212fcca776d7234abe126d4d1d56dd9f6e55d1272a4a388b2b05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for my_best_python_project-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c128d92e3137814c332dc74770f2a2f70e570da8e3f85a572c30ae395dbb29c
MD5 3d367ec8f60f3c1ebdb0dd907ec7cab9
BLAKE2b-256 438d9775b16e388b1f83108a30e599dcf7bb22f656ac666ff7daf92d41d85994

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