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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

stringint-0.1.0-py2.py3-none-any.whl (3.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file stringint-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for stringint-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1541816540b54f4101fb1912b021d3b081a193bccb52364b4bb087001e9d2b2a
MD5 325268bb3cd74d25898df1d2d216c586
BLAKE2b-256 ca1c709c8429deb4e52f18f7c6c8451927b91018b4b78ebb5bcdabe04c531ab3

See more details on using hashes here.

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