Skip to main content

Implicit type conversions for Python

Project description

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.

Project details


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 hashes)

Uploaded Source

Built Distribution

typecasts-0.1.9-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page