Skip to main content

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
django-bitmask-field-0.1.3.tar.gz 4.1 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

1 release file

0.1

1 release file

0.0.2

1 release file

0.0.1

1 release file

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