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.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d68143985186c05923130739573ea21890b207542f6476fde2a74d2b1d77081 |
|
MD5 | be3ce8cc13d4e5a4f3817bf0b87351b3 |
|
BLAKE2b-256 | 7158e30f801bddf33c0558a627fec73a7ab3bc25cacb0e7fa363fa9651b94261 |