Skip to main content

represent strings as ints and vice versa

Project description

https://travis-ci.org/DasIch/stringint.svg?branch=master https://readthedocs.org/projects/stringint/badge/?version=latest

stringint is a, BSD licensed, Python library that allows you to represent strings as ints and vice versa.

>>> from stringint import *
>>> string_to_int('stringint')
2644870996275670454816921315419928710306414234893680756
>>> int_to_string(_)
'stringint'
>>> bytes_to_int(b'stringint')
6852132936324890586740
>>> int_to_bytes(_)
b'stringint'

Currently stringint supports Python 3.5. It’s tested on CPython 3.5 and later.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for stringint, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size stringint-0.1.0-py2.py3-none-any.whl (3.2 kB) File type Wheel Python version 3.5 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page