django-bsdatetime


Namedjango-bsdatetime JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/Rajendra-Katuwal/django-bsdatetime
SummaryDjango model fields for Bikram Sambat (Nepali) dates (built on bsdatetime)
upload_time2025-09-07 10:16:39
maintainerNone
docs_urlNone
authorRajendra Katuwal
requires_python>=3.9
licenseMIT
keywords django bikram sambat nepali calendar date datetime fields
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # django-bsdatetime

Django model fields for Bikram Sambat (Nepali) dates built on the `bsdatetime` core.

Documentation: https://rajendra-katuwal.github.io/bsdatetime.docs/

## Install
```bash
pip install django-bsdatetime
```
Installs `bsdatetime` automatically.

## Quick model example
```python
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:
```bash
pip install bsdatetime
```

## License
MIT

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Rajendra-Katuwal/django-bsdatetime",
    "name": "django-bsdatetime",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "django, bikram sambat, nepali, calendar, date, datetime, fields",
    "author": "Rajendra Katuwal",
    "author_email": "Rajendra Katuwal <raj.katuwal2061@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/89/93/55ec2e77c7df7fa44e311bf7708bfdf3aef60117e000ad2bd4d9acf7720e/django_bsdatetime-1.0.0.tar.gz",
    "platform": null,
    "description": "# django-bsdatetime\r\n\r\nDjango model fields for Bikram Sambat (Nepali) dates built on the `bsdatetime` core.\r\n\r\nDocumentation: https://rajendra-katuwal.github.io/bsdatetime.docs/\r\n\r\n## Install\r\n```bash\r\npip install django-bsdatetime\r\n```\r\nInstalls `bsdatetime` automatically.\r\n\r\n## Quick model example\r\n```python\r\nfrom django.db import models\r\nfrom django_bsdatetime import BikramSambatDateField\r\n\r\nclass Person(models.Model):\r\n    name = models.CharField(max_length=100)\r\n    birth_date_bs = BikramSambatDateField(null=True, blank=True)\r\n\r\nperson = Person.objects.create(name=\"\u0930\u093e\u092e \u092c\u0939\u093e\u0926\u0941\u0930\", birth_date_bs=(2050, 5, 15))\r\nprint(person.birth_date_bs)  # (2050, 5, 15)\r\n```\r\nData is stored internally as Gregorian; you work with BS tuples.\r\n\r\n## Provided fields\r\n* BikramSambatDateField (aliases: BSDateField, NepaliDateField)\r\n* BikramSambatDateTimeField\r\n\r\nInput format:\r\n* Date: (year, month, day)\r\n* DateTime: (year, month, day, hour, minute, second)\r\n\r\n## Why use it\r\n* Clean separation of storage (AD) vs domain (BS)\r\n* Validation & conversion handled in one place\r\n* Admin friendly\r\n\r\nNeed pure functions only? Use core:\r\n```bash\r\npip install bsdatetime\r\n```\r\n\r\n## License\r\nMIT\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Django model fields for Bikram Sambat (Nepali) dates (built on bsdatetime)",
    "version": "1.0.0",
    "project_urls": {
        "Documentation": "https://rajendra-katuwal.github.io/bsdatetime.docs/",
        "Homepage": "https://github.com/Rajendra-Katuwal/django-bsdatetime",
        "Issues": "https://github.com/Rajendra-Katuwal/django-bsdatetime/issues",
        "Source": "https://github.com/Rajendra-Katuwal/django-bsdatetime"
    },
    "split_keywords": [
        "django",
        " bikram sambat",
        " nepali",
        " calendar",
        " date",
        " datetime",
        " fields"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0d362612cb67101ee8252135cf2df3cc64bc54ba2ee934e7c2fb3a41efa0a8d4",
                "md5": "6a9eb1798ead7034e0b93f775d71cc62",
                "sha256": "c8155cc0b3d666e50254dae6c2fdd9990d0321fb1283e116b5276f0a6982f1ff"
            },
            "downloads": -1,
            "filename": "django_bsdatetime-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a9eb1798ead7034e0b93f775d71cc62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4981,
            "upload_time": "2025-09-07T10:16:38",
            "upload_time_iso_8601": "2025-09-07T10:16:38.202769Z",
            "url": "https://files.pythonhosted.org/packages/0d/36/2612cb67101ee8252135cf2df3cc64bc54ba2ee934e7c2fb3a41efa0a8d4/django_bsdatetime-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "899355ec2e77c7df7fa44e311bf7708bfdf3aef60117e000ad2bd4d9acf7720e",
                "md5": "31bedeb85eb2046b6dd23c1bae865ce3",
                "sha256": "2326ec3127e034ea821e1e4640eba6aaa0923fa76ab7af862794d6981913a2d2"
            },
            "downloads": -1,
            "filename": "django_bsdatetime-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "31bedeb85eb2046b6dd23c1bae865ce3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5271,
            "upload_time": "2025-09-07T10:16:39",
            "upload_time_iso_8601": "2025-09-07T10:16:39.506417Z",
            "url": "https://files.pythonhosted.org/packages/89/93/55ec2e77c7df7fa44e311bf7708bfdf3aef60117e000ad2bd4d9acf7720e/django_bsdatetime-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-07 10:16:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Rajendra-Katuwal",
    "github_project": "django-bsdatetime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-bsdatetime"
}
        
Elapsed time: 0.74245s