Type Utils
Project description
Type Utils
This python module provides some basic type utilities.
Installation
You can install Type Utils from this Github repository with python3 setup.py install
, or just install it directly from pypi with pip3 install type-utils
.
API
Conversions
b2s
: bytes to strings2b
: string to bytesb2h
: bytes to hexh2b
: hex to bytesb2timestamp
: bytes to timestamptimestamp2b
: timestamp to bytesb2b64urlsafe
: bytes to base64urlsafeb64urlsafe2b
: base64urlsafe to bytesb2b64
: bytes to base64b642b
: base64 to bytes
Requires
the require_* functions ensure the given argument is from a specify type and try to convert them if possible.
require_bytes
require_timestamp_bytes
require_string
require_int
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
type_utils-1.0.2.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file type_utils-1.0.2.tar.gz
.
File metadata
- Download URL: type_utils-1.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a51ad6b3158457e6acdc931a40cf1fdcd3f306594661aeb1e97ab31f709f48d |
|
MD5 | 9517516b9b7e55ddb2ed8ae4545dd727 |
|
BLAKE2b-256 | ab9aa19664205a02339d86aaee78c494ac6d9f59654e11c498daa61f57dcd902 |
File details
Details for the file type_utils-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: type_utils-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 970a8f1ce4e7f4f8181e2b5c5a7dd59ffd3850e10866def0ae5d676b409f07c5 |
|
MD5 | 8d46ed8ddc61eff0e84a717cf3fd1511 |
|
BLAKE2b-256 | 49a95b6ae4009995e8743fe707a8ef09eba56a18fc94d79de16b9a7f35ab8d44 |