userprovided
The package "userprovided" checks input for plausibility. For example it can check whether a string is a valid email address or an URL.
There are plenty of validators out there. The reasons to write another one:
- It's sister-project exoskeleton needs some special features. This would be for example not only to check whether a string is an URL, but to also check whether the scheme is http or https.
- Extensive testing (unittests and automatic test generation with the hypothesis package)
- Modularity
Installation and Use
Please take note that the development status of "userprovided" is "beta". This means it may still contain some bugs and some commands could change with one of the next releases.
Install exoskeleton using pip or pip3. For example:
pip install userprovided
You may consider using a virtualenv.
Examples
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import userprovided
### Mailadresses ###
userprovided.mail.is_email(None)
# => False
userprovided.mail.is_email('example@example.com')
# => True
### Cloud ###
userprovided.cloud.is_aws_s3_bucket_name('foobar')
# => True
### URLs ###
print(userprovided.url.is_url('https://www.example.com'))
# => True
print(userprovided.url.is_url('https://www.example.com', ('ftp')))
# => False (Schema does not match permitted)
Metadata
Release files for userprovided 0.5.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 |
|---|---|---|---|---|
| userprovided-0.5.0.tar.gz | 3.4 kB | Without provenance | Details for userprovided-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| userprovided-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for userprovided-0.5.0-py3-none-any.whl |
Total release size: 11.9 kB
Release files / userprovided-0.5.0.tar.gz
| Download URL | userprovided-0.5.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d888e1da5bc74a2daef82ee8b693d685920a55b78261907151c4629c82d46cc0
|
|
BLAKE2b-256 checksum How to use checksums |
7471d2363a8082cd7ccd5a4e8748fe07c0b5532b6385e6d7db77f1b4e913cf65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
|
Release files / userprovided-0.5.0-py3-none-any.whl
| Download URL | userprovided-0.5.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b18bc0039da1664523624211c54bc09d9f0d00c4a4ec2683da4346bd2545acd2
|
|
BLAKE2b-256 checksum How to use checksums |
f750a0a8ad601bf8fa2c4aecb9a23462854a7d003c9b914c7cbb7ac925ac28a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.9
|
Security for userprovided 0.5.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.