Implicit type conversions for Python
Project description
typecasts
Convert from one Python type to another in a centralized way.
Features
from typecasts import casts
str_to_bytes_coder = casts[str, bytes]
str_to_bytes_coder('boo')
# b'boo'
Installation
pip install typecasts
Credits
This project was generated with wemake-python-package
. Current template version is: cf0afc42e6f5f3886be1d93b6c56b0f422b3a15a. See what is updated since then.
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
typecasts-0.1.6.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eda6fb6438779a0f8ee681b2a41cf05ed862ac248a183036cac8d109fa74af8 |
|
MD5 | 81b29ce784f07afbbd9037a8a0c064e6 |
|
BLAKE2b-256 | ccf39cb51635de1c4731e5404b63ff8d1aa540fa69fb750ed62ff2764e3cfaa1 |