django-bsdatetime
Django model fields for Bikram Sambat (Nepali) dates built on the bsdatetime core.
Documentation: https://rajendra-katuwal.github.io/bsdatetime.docs/
Install
pip install django-bsdatetime
Installs bsdatetime automatically.
Quick model example
from django.db import models
from django_bsdatetime import BikramSambatDateField
class Person(models.Model):
name = models.CharField(max_length=100)
birth_date_bs = BikramSambatDateField(null=True, blank=True)
person = Person.objects.create(name="राम बहादुर", birth_date_bs=(2050, 5, 15))
print(person.birth_date_bs) # (2050, 5, 15)
Data is stored internally as Gregorian; you work with BS tuples.
Provided fields
- BikramSambatDateField (aliases: BSDateField, NepaliDateField)
- BikramSambatDateTimeField
Input format:
- Date: (year, month, day)
- DateTime: (year, month, day, hour, minute, second)
Why use it
- Clean separation of storage (AD) vs domain (BS)
- Validation & conversion handled in one place
- Admin friendly
Need pure functions only? Use core:
pip install bsdatetime
License
MIT
Metadata
Release files for django-bsdatetime 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_bsdatetime-1.0.1.tar.gz | 5.5 kB | Without provenance | Details for django_bsdatetime-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_bsdatetime-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for django_bsdatetime-1.0.1-py3-none-any.whl |
Total release size: 10.6 kB
Release files / django_bsdatetime-1.0.1.tar.gz
| Download URL | django_bsdatetime-1.0.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fb3ca93932679cb32f13ccc11b2ce7f6371027679c32ef22dba14e52f6a0c44
|
|
BLAKE2b-256 checksum How to use checksums |
87607534693510ebf8fc4a14a1238fddbe45cd73776d8a4cb934b6befab94a85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / django_bsdatetime-1.0.1-py3-none-any.whl
| Download URL | django_bsdatetime-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
50b1b60cf19ad5387db005934b8c87153193efa3da4e2f03943272716ad86bc9
|
|
BLAKE2b-256 checksum How to use checksums |
0b829a873eed1e4b223939943229957f81887321c97e74f64303e2598f6e6be7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Security for django-bsdatetime 1.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.