Skip to main content

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 string
  • s2b : string to bytes
  • b2h : bytes to hex
  • h2b : hex to bytes
  • b2timestamp : bytes to timestamp
  • timestamp2b : timestamp to bytes
  • b2b64urlsafe : bytes to base64urlsafe
  • b64urlsafe2b : base64urlsafe to bytes
  • b2b64 : bytes to base64
  • b642b : 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

Metadata

Release files for type-utils 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for type-utils 1.0.2
File Size Uploaded
type_utils-1.0.2.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for type-utils 1.0.2
File Interpreter ABI Platform
type_utils-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / type_utils-1.0.2.tar.gz

Download URL type_utils-1.0.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5a51ad6b3158457e6acdc931a40cf1fdcd3f306594661aeb1e97ab31f709f48d
BLAKE2b-256 checksum
How to use checksums
ab9aa19664205a02339d86aaee78c494ac6d9f59654e11c498daa61f57dcd902
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release files / type_utils-1.0.2-py3-none-any.whl

Download URL type_utils-1.0.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
970a8f1ce4e7f4f8181e2b5c5a7dd59ffd3850e10866def0ae5d676b409f07c5
BLAKE2b-256 checksum
How to use checksums
49a95b6ae4009995e8743fe707a8ef09eba56a18fc94d79de16b9a7f35ab8d44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

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