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.5.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19ab0cb0c36e2cd380204d98ccdc66635c3d9e71b7ba1ad9eae9e6fbb5937671 |
|
MD5 | 4b2142b16eb5c29daba2981374ee260e |
|
BLAKE2b-256 | 3eebb9072b581f2130e586fb304c2c6a534bf2edbda97182823e138d29453e01 |