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

Uploaded Source

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