Skip to main content

django-bitmask-field

BitmaskField implementation for Django ORM

https://travis-ci.org/renskiy/django-bitmask-field.svg?branch=master https://coveralls.io/repos/github/renskiy/django-bitmask-field/badge.svg?branch=master

Requirements

  • Python 2.7 or Python 3.4+

  • Django 1.8+

Example

from django.db import models
from django_bitmask_field import BitmaskField


class MyModel(models.Model):

    bitmask = BitmaskField(
        choices=[(1, 'bit0'), (2, 'bit1'), (4, 'bit2')],  # available choices
        default=1 | 4,  # bit0 and bit2 are enabled by default
    )

Install

pip install django-bitmask-field

Metadata

Release files for django-bitmask-field 0.1.3

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

Source distribution (sdist)

Source distribution for django-bitmask-field 0.1.3
File Size Uploaded Provenance Actions
django-bitmask-field-0.1.3.tar.gz 4.1 kB Without provenance Details for django-bitmask-field-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-bitmask-field 0.1.3
File Interpreter ABI Platform Actions
django_bitmask_field-0.1.3-py3-none-any.whl Python 3 none any Details for django_bitmask_field-0.1.3-py3-none-any.whl

Total release size: 8.5 kB

Release files / django-bitmask-field-0.1.3.tar.gz

Download URL django-bitmask-field-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
063318d46c5a4824c6b62067db38600a1297cd93ee984ef07cd8e8f2ba9c8293
BLAKE2b-256 checksum
How to use checksums
3cfa68adaf1a06ec3efe3d04095caf2ebb854284dcaca2f395be98415e86dae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / django_bitmask_field-0.1.3-py3-none-any.whl

Download URL django_bitmask_field-0.1.3-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5de68029eaa2bbb3cac4681f7649cf8c9189e5ecf14b8bdfb01d5012ea9e1b7
BLAKE2b-256 checksum
How to use checksums
759f1ed60f8cab37639b9c3d7a896ed1a82f37f376a90fd0018378179f3a69b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for django-bitmask-field 0.1.3

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