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.7.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93eaa0a6f00467a0dfc539809d00b48609d5dfa51753a93fec1862aa3083789d |
|
MD5 | 2af4f571e0e206c4d264631c556ee23b |
|
BLAKE2b-256 | 0a5df344c8c2e814111e5206b07d26deb3e3efb560ea56eda9a64c608e4bf766 |