Skip to main content

Simple library to help with bit manipulations.

Project description

Description

Bittle is a simple module to help me to things with bits.

Installation

New versions will be updated to PyPI pretty regularly so it should be as easy as:

pip install bittle

Examples

from bittle import FlagWord

Status = FlagWord(["pending", "approved", "actioned"])

status = Status()
status.set(status.approved)
status.has(Status.approved)  # True
status.has("actioned")  # False

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

bittle-0.2.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file bittle-0.2.1.tar.gz.

File metadata

  • Download URL: bittle-0.2.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for bittle-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ef0bf04083ba17fed90457b08b880d51afba88ffa49c9eb25c23ff964898c612
MD5 6c91ca8b8df363be3af34233b78e39e8
BLAKE2b-256 16f5215b3bf953f93aac603d19e5045dc647678a8719a6c04a7d8d32f5f5ab0f

See more details on using hashes here.

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