decimal-binary-converter
Python packge for converting decimal numbers into binary.
This package is used to provide an example of how to create a Python package. ✨
How to make the package available 🙌
If necessary, use a virtual environment:
- Add the virtual environment to the
.gitignorefile by writing<name-of-venv>/. - Set up the virtual environment using:
python -m venv <name-of-venv>. - Activate the virtual environment using:
venv/Scripts/activate(Windows).
Run the following commands:
- Install dependencies using:
pip install setuptools build wheel twine. - Build source code and binary distribution wheel using:
python -m build. - A: Upload the distribution wheel to the Test Python Package Index using:
twine upload --repository testpypi dist/*. (Requires an API Key. Get it by registering an account). - B: Upload the distribution wheel to the Python Package Index using:
twine upload dist/*. - Install the package using
pip install <your-package>.
Details 🔎
In the __init__.py file, we leave it non-empty to make it easier to import stuff from the pacakge.
- Instead of having to write
from decimal_binary_converter.converter import decimal_to_binarywhen importing, - We can write
from decimal_binary_converter import decimal_to_binary.
Metadata
Release files for simple-example-package-of-decimal-binary-converter 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz | 3.4 kB | Without provenance | Details for simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl |
Total release size: 7.9 kB
Release files / simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz
| Download URL | simple_example_package_of_decimal_binary_converter-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
70111f72f53ee0fa13fb7911e3627adabca69bbe1d126a3d1256bc448b626149
|
|
BLAKE2b-256 checksum How to use checksums |
489ac345e008d5e5f6e560af692e72a4da33686e1ca089ea957253405b9d5e8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl
| Download URL | simple_example_package_of_decimal_binary_converter-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4a2f7e36d4e329fe7e275147c7673c62de4578609ef693217589e5b08fea4442
|
|
BLAKE2b-256 checksum How to use checksums |
f938aff8e6b587a0b760502e8d6591ed10717a735a201c52d6e128266f2dbd3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for simple-example-package-of-decimal-binary-converter 0.0.1
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.