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 <https://github.com/shimakaze-git>
__ and
some great
contributors <https://github.com/shimakaze-git/django-jp-birthday/CONTRIBUTING.rst>
__
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
pypi <https://pypi.org/project/django-jp-birthday/>
__
.. code:: bash
$ 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.
.. code:: python
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:
.. code:: python
ModelsTest.objects.get_upcoming_birthdays()
Get all user profiles which have their birthday today:
.. code:: python
ModelsTest.objects.get_birthdays()
Or order the user profiles according to their birthday:
.. code:: python
ModelsTest.objects.order_by_birthday()
Docs
- Documentation: https://django-jp-birthday.readthedocs.io.
License
django-jp-birthday
is released under the MIT license.
.. |https://pypi.python.org/pypi/django_jp_birthday| image:: https://img.shields.io/pypi/v/django_jp_birthday.svg .. |image| image:: https://img.shields.io/pypi/pyversions/django-jp-birthday.svg :target: https://pypi.org/project/django-jp-birthday .. |https://img.shields.io:/pypi/djversions/django-jp-birthday| image:: https://img.shields.io:/pypi/djversions/django-jp-birthday .. |https://django-jp-birthday.readthedocs.io/en/latest/?version=latest| image:: https://readthedocs.org/projects/django-jp-birthday/badge/?version=latest .. |Updates| image:: https://pyup.io/repos/github/shimakaze-git/django-jp-birthday/shield.svg :target: https://pyup.io/repos/github/shimakaze-git/django-jp-birthday/ .. |Python 3| image:: https://pyup.io/repos/github/shimakaze-git/django-jp-birthday/python-3-shield.svg :target: https://pyup.io/repos/github/shimakaze-git/django-jp-birthday/ .. |https://img.shields.io/github/repo-size/shimakaze-git/django-jp-birthday| image:: 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| image:: 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| image:: 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:: https://img.shields.io/github/license/shimakaze-git/django-jp-birthday.svg .. |image| image:: https://img.shields.io/pypi/dm/django-jp-birthday :target: https://img.shields.io/pypi/dm/django-jp-birthday .. |.github/workflows/test.yml| image:: https://github.com/shimakaze-git/django-jp-birthday/actions/workflows/test.yml/badge.svg :target: https://github.com/shimakaze-git/django-jp-birthday/actions/workflows/test.yml
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.5.tar.gz
.
File metadata
- Download URL: django_jp_birthday-0.2.5.tar.gz
- Upload date:
- Size: 20.5 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 | ecb112eeb2b39d732d8d0102ec50e2c9586df86b9066a25a31e4348353a42ade |
|
MD5 | 6b7a7e09d6da6213ea33c8328f9152b0 |
|
BLAKE2b-256 | 74de2eb752282ce3e425c3157d5a272b04fa22a4c225c4efee5313ded28a4980 |
File details
Details for the file django_jp_birthday-0.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: django_jp_birthday-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 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 | a26c2199bb85c78924cb596bbb836f589cf51d2341c09eff79165107c6d426c8 |
|
MD5 | 69230b5c7d6629dedffe675826c13c4c |
|
BLAKE2b-256 | e3e2900fcdd0c538193002c1d95f1ea3c4b2273a23ef412f51cd51433682c239 |