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.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa31198e7ddfa95394298cb63f650a46be215fe6645626de93dae0675c1c1219 |
|
MD5 | 0ce9a0abe58777856555a6139d756ee1 |
|
BLAKE2b-256 | dfe47a6daa2bc4c8a4e2d1346ea08a9661ba199a96fd4e7a4703237ba448554f |