Kraken datatype
Project description
kraken datatype
Overview
Library to extract, validate and normalize datatypes.
datatypes:
- url
- date
- country
- address
- telephone
- bool
- currency
- domain
functions:
- validate: returns True false if validate
- normalize: returns normalized value or None
- guess: return best guess or None of datatype
How to use:
import kraken_datatype as dt
result = dt.validate('email', 'name@test.com')
print(result)
result = dt.normalize('email', 'name@test.com')
print(result)
result = dt.guess('name@test.com')
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kraken-datatype-0.0.12.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for kraken_datatype-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af9af420cd3fb2211db34b75cc37933fc59413d9941468689275cc98e9277b5 |
|
MD5 | a872dda658df8ed2fa4f8581a2141a80 |
|
BLAKE2b-256 | 845a89ba6f58106547e2844304df567dab06a74e5999582bb97da9c7d75e2510 |