Skip to main content

Varints, a method of serializing integers using one or more bytes

Project description

pyvarint

Build Status

Varints, a method of serializing integers using one or more bytes

Install

$ pip install pyvarint

Example

from random import sample
from pyvarint import decode, encode

ten_rand_ints = sample(range(100), 10)

for rand_int in ten_rand_ints:
    encoded = encode(rand_int)
    decoded = decode(encoded)
    assert decoded == rand_int

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

pyvarint-0.0.1a2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

pyvarint-0.0.1a2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file pyvarint-0.0.1a2.tar.gz.

File metadata

  • Download URL: pyvarint-0.0.1a2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-12-amd64

File hashes

Hashes for pyvarint-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 d7e3a859b20de5d06752f97f28a8c899e899260d42ba12246a95a839f1e42d70
MD5 0fb02a8ff6a8cdb66b97d38a63e367f8
BLAKE2b-256 749a7d193feda1a4964a6cdef6f0868a8e5f2f62eed62a3062e91c3520bdcaa9

See more details on using hashes here.

File details

Details for the file pyvarint-0.0.1a2-py3-none-any.whl.

File metadata

  • Download URL: pyvarint-0.0.1a2-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.9 CPython/3.8.0 Linux/4.9.0-12-amd64

File hashes

Hashes for pyvarint-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac1f5b99e1aa30d413327052c0538e4a4dd5737a4678e09c81c03a27a58d602
MD5 3809b72449260a81778d962d40d7c497
BLAKE2b-256 ecbf2091007a1e315046f5387ecaa737a4b72d25478c4a9844fcfc655abde8fa

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