Skip to main content

Django model for Japanese birthday.

Project description

django-jp-birthday

https://pypi.python.org/pypi/django_jp_birthday image https://img.shields.io:/pypi/djversions/django-jp-birthday https://django-jp-birthday.readthedocs.io/en/latest/?version=latest Updates Python 3 https://img.shields.io/github/repo-size/shimakaze-git/django-jp-birthday https://img.shields.io/github/languages/code-size/shimakaze-git/django-jp-birthday https://codecov.io/gh/shimakaze-git/django-jp-birthday/branch/master/graph/badge.svg https://img.shields.io/github/license/shimakaze-git/django-jp-birthday.svg image .github/workflows/test.yml

django-jp-birthday is a django's model for use Japanese birthdays and ages.

Based library is https://github.com/bashu/django-birthday .

Authored by shimakaze_soft and some great

contributors

Features

  • Get all user profiles within the next 30 days

  • Get all user profiles which have their birthday today

  • order the user profiles according to their birthday

  • Converting Birthdays to Japanese Style

  • Calculate age based on birthday

  • Get all birthdays in the specified Japanese calendar

Installation

$ pip install django-jp-birthday

$ python steup.py install

Usage

django-jp-birthday provides a jp_birthday.models.BirthdayModel model type which is a subclass of django.db.models.Model and thus has the same characteristics as that.

jp_birthday.managers.JpBirthdayManager is used as a manager for jp_birthday.models.BirthdayModel and provides various methods.

from jp_birthday.models import BirthdayModel

class ModelsTest(BirthdayModel):

    class Meta:
        app_label = 'jp_birthday'
        ordering = ('pk',)

Get all user profiles within the next 30 days:

ModelsTest.objects.get_upcoming_birthdays()

Get all user profiles which have their birthday today:

ModelsTest.objects.get_birthdays()

Or order the user profiles according to their birthday:

ModelsTest.objects.order_by_birthday()

Docs

License

django-jp-birthday is released under the MIT license.

====

HISTORY

Unreleased

Full Changelog

Merged pull requests:

v0.2.0 (2022-02-07)

Full Changelog

Closed issues:

  • Initial Update #30

v0.1.5 (2022-01-29)

Full Changelog

Merged pull requests:

v0.1.4 (2022-01-29)

Full Changelog

Merged pull requests:

v0.1.3 (2022-01-28)

Full Changelog

Merged pull requests:

* This Changelog was automatically generated bygithub_changelog_generator

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

django_jp_birthday-0.2.9.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

django_jp_birthday-0.2.9-py2.py3-none-any.whl (10.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django_jp_birthday-0.2.9.tar.gz.

File metadata

  • Download URL: django_jp_birthday-0.2.9.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for django_jp_birthday-0.2.9.tar.gz
Algorithm Hash digest
SHA256 d706428003b1dbbf5c73294c8a8ed5e603ee864ab2f5e0f549e1d578689dae51
MD5 984fb856850961c6a9f7bd51d837ba96
BLAKE2b-256 23d0b9466b37676bdce3a412eb8566c5a2af2da94a4016d7f002d1513b42bc23

See more details on using hashes here.

File details

Details for the file django_jp_birthday-0.2.9-py2.py3-none-any.whl.

File metadata

  • Download URL: django_jp_birthday-0.2.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for django_jp_birthday-0.2.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 63a85e98b6aa9218cf7df243dd15d5ec96c2335e8cb460f3f5f03ab1f413a231
MD5 5dc38b10541a856d56f2425dcea937b0
BLAKE2b-256 763c80572899f7fa206d5a0ed8351500fec7fda88c827a0698e865d9048f1632

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