Skip to main content

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.

Metadata

Release files for wspr-varint 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wspr-varint 1.3.0
File Size Uploaded Provenance Actions
wspr_varint-1.3.0.tar.gz 6.8 kB Without provenance Details for wspr_varint-1.3.0.tar.gz

Release files / wspr_varint-1.3.0.tar.gz

Download URL wspr_varint-1.3.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
30b6dc93417b7cb20d60a5c1b2ccb4fa5f75e4524806dd56097c3c6ab9938cbc
BLAKE2b-256 checksum
How to use checksums
484816c1df5ee028355831b334572eed3b7c0cf8c46a8c2a41435a70e2a8e54a
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for wspr-varint 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page