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.2.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e75f6836486bfe59f7535d39eedee875dacd2f3f3803b2b7076c626822dd9e0 |
|
MD5 | ec8ab557bd633f6bce2c78ed7f54512d |
|
BLAKE2b-256 | d2845b57043a652af88283dbae339442271de269d6f3ddc8670ca044cb1a1c32 |