Skip to main content

A variable length integer implementation for the wspr project.

Project description

wspr-varint

https://img.shields.io/pypi/v/wspr_varint.svg

A variable length integer implementation for the wspr project.

API

VarInt

  • from_int

  • from_bytes

  • to_int

  • to_bytes

  • int

  • bytes

Example

from wspr_varint import VarInt
variable_integer = VarInt.from_int(-1)
variable_integer.to_int()
variable_integer.to_bytes()

History

1.3.0 (2020-06-24)

  • Add length agnostic initializer.

1.2.0 (2020-06-24)

  • Add shortcut to VarInt.

1.1.1 (2020-06-22)

  • Fix setup error.

1.1.0 (2020-06-18)

  • Add multiplication.

  • Add addition.

  • Add int property.

  • Add bytes property.

1.0.1 (2019-07-08)

  • Fix syntax error in example.

1.0.0 (2019-07-08)

  • Add API reference.

  • Add example.

0.2.0 (2019-07-07)

  • Update documentation references.

0.1.0 (2019-07-07)

  • First release on PyPI.

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

wspr_varint-1.3.0.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file wspr_varint-1.3.0.tar.gz.

File metadata

  • Download URL: wspr_varint-1.3.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for wspr_varint-1.3.0.tar.gz
Algorithm Hash digest
SHA256 30b6dc93417b7cb20d60a5c1b2ccb4fa5f75e4524806dd56097c3c6ab9938cbc
MD5 14fd26fb2e4ec21457daca2ee71e8ae0
BLAKE2b-256 484816c1df5ee028355831b334572eed3b7c0cf8c46a8c2a41435a70e2a8e54a

See more details on using hashes here.

Supported by

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