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.8.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9ec851c254dfb21df6a4be8dda6a6e3967bcbad4a31814be3122f91aaa2bd26 |
|
MD5 | 5e354f44c0311f911f421089120551b8 |
|
BLAKE2b-256 | 3762063e1d3859d66db1a0926162e5093090471d94a737f40f23b689451cf77a |