Skip to main content

bin2(): get 2's complement form of an integer

The Python builtin function bin() gives the binary literal form of an integer. But Python uses 2's complement inside for integers. This module provide bin2() to produce 2's complement form of an integer.

>>> from bin2 import bin2
>>> bin2(-5)
0b1011

Metadata

Release files for bin2 0.0.1

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

Source distribution (sdist)

Source distribution for bin2 0.0.1
File Size Uploaded Provenance Actions
bin2-0.0.1.tar.gz 2.3 kB Without provenance Details for bin2-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bin2 0.0.1
File Interpreter ABI Platform Actions
bin2-0.0.1-py3-none-any.whl Python 3 none any Details for bin2-0.0.1-py3-none-any.whl

Total release size: 4.8 kB

Release files / bin2-0.0.1.tar.gz

Download URL bin2-0.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
31ae2fe6165d239e970e37b92b5db3965cadd567d0c94d7232416e593ddc3965
BLAKE2b-256 checksum
How to use checksums
13566b2f3d7c14a557ff9581f909c9bb7dc74600721de2d0982b2300473be6d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

Release files / bin2-0.0.1-py3-none-any.whl

Download URL bin2-0.0.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c97e91a7c433a5c5d02bc11f599a1a61826dc4da38f62e100e3bdaa7aa7e3bc3
BLAKE2b-256 checksum
How to use checksums
974a39ae9ed4c2a541d73453c8796658c1a875ba112bd1bb8c2ea852b49d78d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.2

Security for bin2 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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