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.4.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a4472b19ba5d0b40c53e4d5c6969b49b90f73ab33c19018e296c04226e9f356 |
|
MD5 | dea7537c5e9677a2f097c43d72ac0d2e |
|
BLAKE2b-256 | 3b546170966db5535885a6e8921b8ecb546075f094379f16329d95d495b58084 |