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.9.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file typecasts-0.1.9.tar.gz
.
File metadata
- Download URL: typecasts-0.1.9.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.3 Linux/5.4.0-77-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d96ba97cc17e8e38b91da7c6048288a7d0c803a84d4617b3b428ee8a2fada82e |
|
MD5 | 7c63f836bec6ddf71ac185f2d4390c14 |
|
BLAKE2b-256 | b1fe01ea17023bd73261b536fefa48085524cb717b613efa3446850be13be6f9 |
File details
Details for the file typecasts-0.1.9-py3-none-any.whl
.
File metadata
- Download URL: typecasts-0.1.9-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.3 Linux/5.4.0-77-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b443985f61bb5abf15d3142d94f8d6b648bac5f6a1e48f044d1eafafba2b246 |
|
MD5 | e38351d5f5a6d71cd9763202641169c5 |
|
BLAKE2b-256 | ab95dc5da92c1df4b19053540739cedb6b0e4c2b2a9237865619db9d9be52167 |