clicktypes
Additional types for the click module that I find useful.
For a list of available types check the README file from the module.
Installation
Install from PyPI:
## Python 3
python3 -m pip install clicktypes
## PyPy3
pypy3 -m pip install clicktypes
Examples
The following are some examples. For complete examples check the appropriate README.
Networking
If you accept an IP address parameter:
from clicktypes.network import IPAddressParam
@click.argument(
'ip',
nargs = -1,
required = True,
type = IPAddressParam(),
)
This will validate the IP or IP's provided are IPv4 or IPv6 addresses and return them as an IPv4Address or IPv6Address object.
Web
If you accept an email address parameter:
from clicktypes.web import EmailParam
@click.argument(
'email',
nargs = -1,
required = True,
type = EmailParam(),
)
This will validate the email address provided matches an approved regex and it will convert it to lowercase.
Metadata
Release files for clicktypes 0.0.7
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 |
|---|---|---|---|---|
| clicktypes-0.0.7.tar.gz | 6.1 kB | Without provenance | Details for clicktypes-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clicktypes-0.0.7-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for clicktypes-0.0.7-py2.py3-none-any.whl |
Total release size: 14.1 kB
Release files / clicktypes-0.0.7.tar.gz
| Download URL | clicktypes-0.0.7.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1927b37eff13501afd1649605bc74ba530ba1038d728e27977029a4163b035a
|
|
BLAKE2b-256 checksum How to use checksums |
fe07765047d98ec276aba9bfb9a10b227e30e3c7a7a0d1008faf7d671d2b7e29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
|
Release files / clicktypes-0.0.7-py2.py3-none-any.whl
| Download URL | clicktypes-0.0.7-py2.py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bef4dc37ca76e02d190c2af458ee3356aa42d8a6f055cbd734b9e3598915c258
|
|
BLAKE2b-256 checksum How to use checksums |
d1ede30af8566ddfb6e7105efd9c69f93396e5e52f4ab53a8eeb45da59d75c02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
|
Security for clicktypes 0.0.7
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.