Skip to main content

Python console package

This is a small template for building, distributing and packaging a python console application.

TODOS:

  • Do this
  • Do that

Installation

Can be easily installed from pypi with pip3.

pip3 install python_console_package

Running from source

You can also alway clone the repo from GitHub and run with python.

python3 launcher.py "this/is/my/source/path"

or by

python3 entrypoint.py "this/is/my/source/path"

If installed through pypi then executing the script name python_console_package essentially runs something like python3 python_console_package/entrypoint.py (this is specified through entry_points in setup.py),which is used in the further usage examples.

FILES and their functions

build.py

python3 build.py

to build and package the application using setuptools to the dist directory.

entrypoint.py

python3 entrypoint.py

this is a launcher for the main script, can be used interchangably with python_console_package/entrypoint.py.

install-dev.py

python3 install-dev.py

use the pip3 installer to install this project directory to the system. (Immediatly reflects the changes done to the scripts).

install.py

python3 install.py

Build the application and install the resulting package -> the installation is the same as if you would install the package from pypi.

LICENCE.txt

The License of your project, do your research and choose your License with care.
(Here it is APACHE 2.0)

MANIFEST.in

Specifies additional non-python files that should be included into the distributed package.

publish.py

python3 publish.py

Build the application and upload to pypi using twine (make sure everything is working before as you can not replace a version once it is online).
After you have published the package, tag your package version and push to your git repository.

  1. Commit your changes git commit -am "your message"
  2. Push your changes git push
  3. Create a version tag in your repository git tag 1.0.0
  4. Push the tag to your repository git push --tags

README.md

Main description and documentation of your project.

RELEASE.md

A markdown file containing info about the release versions and their changes.

setup.py

The setuptools configuration, which contains all packaging information and some installation information for your project. Make sure to replace the info before packaging your application. Contains:

  • Meta information like: author, version, classifiers, url, description
  • Importent information about the structure and files of your package for installation: modules, entrypoints, name, dependencies

Using the application

python_console_package --setup

If you want to provide a setup function to your users you can implement a function call when this options is specified.

python_console_package --version

Print out the version information of your package

python_console_package "test/path/source"

Call application with a positional text argument.

python_console_package "test/path/source" --option "my optional argument text"

Call application with a optional text argument.

python_console_package "test/path/source" --multiply 1 2 3 8 96

Call application with an optional argument list.

python_console_package "test/path/source" --printm

Call the application with an optional boolean option.

If you like the project consider dropping me a coffee

paypal



Metadata

Release files for python-console-package 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-console-package 1.0.0
File Size Uploaded Provenance Actions
python_console_package-1.0.0.tar.gz 4.5 kB Without provenance Details for python_console_package-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-console-package 1.0.0
File Interpreter ABI Platform Actions
python_console_package-1.0.0-py3-none-any.whl Python 3 none any Details for python_console_package-1.0.0-py3-none-any.whl

Total release size: 15.7 kB

Release files / python_console_package-1.0.0.tar.gz

Download URL python_console_package-1.0.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e674c5ea6bca878921bd135fc2c06766885e9a48c797cc8d31fcbe9f170b7588
BLAKE2b-256 checksum
How to use checksums
5de386eaa796679379d80beea5b5120af28a726a65b1241e390f0967ad11f7e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

Release files / python_console_package-1.0.0-py3-none-any.whl

Download URL python_console_package-1.0.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
814000dfc58dae0be88b4d90bb82377f2f0270104bbbdb1a1c30907f1ccc3c8a
BLAKE2b-256 checksum
How to use checksums
ce5c8a83ddd8540ea723fdc220a9dee3f3d9bd0943769ca377f7aa38e10378c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

Security for python-console-package 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page