typecasts

Implicit type conversions for Python


License
MIT
Install
pip install typecasts==0.1.9

Documentation

typecasts

Build Status Coverage Python Version wemake-python-styleguide PyPI - License

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.