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.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file type_utils-1.0.1.tar.gz
.
File metadata
- Download URL: type_utils-1.0.1.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 | 76a18b44da6a2cb76745e1261fe1d8a7af0f306df769c19cdfa1e12839de46b4 |
|
MD5 | 4694ee4822a1ae9768b258a8e5c3451b |
|
BLAKE2b-256 | dfaa44af58317e670a10b0d791e023655e69f91f7e2fcf21d799768f5fbda9b0 |
File details
Details for the file type_utils-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: type_utils-1.0.1-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 | 9a5c6af002fab2d1bbef602eb4358762f0160edaeebc296f01d31d4a29dcbacb |
|
MD5 | 99e8614c68a3be36f1a51d93cbfbfa4b |
|
BLAKE2b-256 | 5b44a3f72de7f6d29fc69be0570116ee5d8e52b71af5eac6d66457fedd9af07e |