Skip to main content

Overview

named_bitfield lets you define fixed width bit fields within an integer, and address those fields as class attributes, while still providing access to the backing integer representation. The original use case for this is “intellignet IDs”. Essentially, this is a unique numeric id, sutiable for use as a database primary key, which encodes some information about the object it identifies. Obviously, this should be immutable information so your IDs don’t change or (worse) get out of sync with reality. Some suggestions are the object type, the create time, or the data source. Saving a few bits for a serial counter is also advisable, as timestamps aren’t reliable as unique ids.

Metadata

Release files for named-bitfield 0.1.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 named-bitfield 0.1.0
File Size Uploaded Provenance Actions
named_bitfield-0.1.0.tar.gz 4.1 kB Without provenance Details for named_bitfield-0.1.0.tar.gz

Release files / named_bitfield-0.1.0.tar.gz

Download URL named_bitfield-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae1c75096b0b49bdbf9e57dac315375f5c00aa28ea8ada4e4a55be131b5700d6
BLAKE2b-256 checksum
How to use checksums
378cf934c6e5f10e61a769b7c6a16da712b6522173fcf4c415f4826a54c8624e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for named-bitfield 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file 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