Django model for Japanese birthday.
Project description
django-jp-birthday
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
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
- Documentation: https://django-jp-birthday.readthedocs.io.
License
django-jp-birthday
is released under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_jp_birthday-0.2.1.tar.gz
.
File metadata
- Download URL: django_jp_birthday-0.2.1.tar.gz
- Upload date:
- Size: 19.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dc378810ccb987c6da0c573c1d0cc31833de051d513e4f9ae4e1b6f90377ae4 |
|
MD5 | 13897ce42022bfe94d69efc6bfcc7780 |
|
BLAKE2b-256 | c54af0fc0cbe9e83e829f27b121b9653cb49341a953543a57755ec95ef60cb20 |
File details
Details for the file django_jp_birthday-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_jp_birthday-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 9.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3cbd2246f1565ffcbdf620560a93aecc4de6f7e549a4dc5d47c6b87623de092 |
|
MD5 | 18377a5568592b73fcef42c3935b079d |
|
BLAKE2b-256 | 4e87c78bb8985b690ba9537d8180e0f8538a0c97ae808a264eac6a19058bdd7f |