AlphaAffixedNumericType (aant)
Python data type to support arithmetics on alphanumeric string
Types of arithmetics supported
-
Addition
aant + integer* NOTE: integer type must be on the right of addition operator -
Subtraction
aant - [integer|aant]
How to Use
from AlphaAffixedNumericType import AlphaAffixedNumericType
aant = AlphaAffixedNumericType('A123')
print(aant + 1) # prints 'A124'
print(aant + 1000) # prints 'A1123'
aant += 10
print(aant.get_value()) # prints 'A133'
aant2 = AlphaAffixedNumericType('A123B')
aant3 = AlphaAffixedNumericType('A124B')
print(aant2 - aant3) # prints -1
print(aant2 - 200) # raises 'NumericArithmeticException' - Numeric part of aant2 (123) is less than 200
aant4 = AlphaAffixedNumericType('A0001B')
print(aant4 + 1000) # prints 'A1001B'
Metadata
Release files for AlphaAffixedNumericType 0.1.0
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 |
|---|---|---|---|---|
| AlphaAffixedNumericType-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for AlphaAffixedNumericType-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| AlphaAffixedNumericType-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for AlphaAffixedNumericType-0.1.0-py3-none-any.whl |
Total release size: 7.6 kB
Release files / AlphaAffixedNumericType-0.1.0.tar.gz
| Download URL | AlphaAffixedNumericType-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3381b9bb0851a69ea10441b99f4028475c17251a2acd5cebc6866d0e448de4d6
|
|
BLAKE2b-256 checksum How to use checksums |
471481a621c47b044f3a1f1c558b49cecbd5660bc43c10c967842628cbc745f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
|
Release files / AlphaAffixedNumericType-0.1.0-py3-none-any.whl
| Download URL | AlphaAffixedNumericType-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e7e63a2146f13de50fefce8d59c87f8b068d5e5ae06bea8587c43c684633da84
|
|
BLAKE2b-256 checksum How to use checksums |
4c0c5f5b92ba45e5d805f80f02629fbed73633824d6df695dd4d9d21ff84b6f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
|
Security for AlphaAffixedNumericType 0.1.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.