Skip to main content

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 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

Project details


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.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

type_utils-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file type_utils-1.0.0.tar.gz.

File metadata

  • Download URL: type_utils-1.0.0.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

Hashes for type_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b36430fc039799f0bba512df4a0faeeea1cb04b4c00132f143762773d1c71cc4
MD5 f5fa2130a5c1e7846f5d9e42f402b18d
BLAKE2b-256 aef48c0c05ab3f325cf381b34dff9ed1bc079f2ad45411671d7f05ffec75c951

See more details on using hashes here.

File details

Details for the file type_utils-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: type_utils-1.0.0-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

Hashes for type_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a79f519c1bdabb614ef9a4a97cf71f2cc0a7da782885b885806102aa7f38ef7
MD5 63a0867173d5f1b38742585c64d285dc
BLAKE2b-256 ff666fa55b6f6a35e552707dfe148381c254921d77cfcbd44aa700add0f50a10

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page