Skip to main content

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)

Source distribution for userprovided 0.5.0
File Size Uploaded
userprovided-0.5.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for userprovided 0.5.0
File Interpreter ABI Platform
userprovided-0.5.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

3.0.1

2 release files

3.0.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

This release

0.5.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page