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
Built Distribution
File details
Details for the file kraken-datatype-0.0.13.tar.gz
.
File metadata
- Download URL: kraken-datatype-0.0.13.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5f746887b1279d6428684ecb8a770cf57d3ee0f8082924868683b5f77df05f9 |
|
MD5 | 49f44734282f1134d8da9408ad55cc9d |
|
BLAKE2b-256 | b363790e97a1d2526c8953970995b7384ba16ffa743b59a3257001ce2966ecbe |
File details
Details for the file kraken_datatype-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: kraken_datatype-0.0.13-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a369965e3085d87a4694c08720a80e0689be263f69037cfb8640c0dd4b02deea |
|
MD5 | 540c7c8370481e6bbef2810e98b6e73f |
|
BLAKE2b-256 | 877a08ebdaddac7dd7e549890f450ca4f99356759a17e13fb26288f400b4ad92 |