Integer Checker
A lightweight Python module that handles converting compatable data types into integers.
Disclamer: Right now there is only the ability to use this when taking and converting user input. I will try to add more features later. This has only been tested in basic examples, please report any bugs so I can try to fix them.
Features
- Safe Integer Checking: Easily verify and force user inputs to be valid integers without crashing your program.
- Default Error Message: Has a default error message of "Please input a number!" This can be changed by adding a string as the second argument.
Installation
Just use pip as you normally would!
pip3 install int-checker
Usage Example
import int_checker
var1 = int_checker.conv_input("Give number: ", "This is a different error message")
print(2 + var1)
Syntax
The way you need to structure the code is quite simple. Using up to two arguments, you can define both the input request and error message, as shown before.
Metadata
Release files for int-checker 0.1.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 |
|---|---|---|---|---|
| int_checker-0.1.1.tar.gz | 1.2 kB | Without provenance | Details for int_checker-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| int_checker-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for int_checker-0.1.1-py3-none-any.whl |
Total release size: 2.9 kB
Release files / int_checker-0.1.1.tar.gz
| Download URL | int_checker-0.1.1.tar.gz |
|---|---|
| Size | 1.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
720b0187f7b1a633542d16b77d67110da1bc3daa848f7cdb2549711337159cfd
|
|
BLAKE2b-256 checksum How to use checksums |
9cdc69153d7e84a68eb1b66205c183afd4617026bfac6b027e4183b3543cfae7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / int_checker-0.1.1-py3-none-any.whl
| Download URL | int_checker-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62f798e020a0c565dcb67d85729c9c9b1ab3275733cf65d24ad0b324cedd6208
|
|
BLAKE2b-256 checksum How to use checksums |
0f1d9bcadafa71348a4046477c9b361838cce331e42f7c4a3dfec01f1207e8d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for int-checker 0.1.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.