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.3.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for typecasts-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dab25bc9c362807085b19471096cc15199557367b1051a40c1a3aca4b03b15e6 |
|
MD5 | 545d4c6d28bfe8225501055c6cec80bb |
|
BLAKE2b-256 | 8482f91d64b516ba26c679c5e13d34f32977b954c5cb8c8ad3c734d4b819bed3 |