Wrapper around business-python to control days in django
Project description
django-business-days
Wrapper around business-python with days in your admin.
Installation
$ pip install django-business-days
Add django_business_days
to INSTALLED_APPS
How to use it
from django_business_days.calendar import get_calendar
from datetime import timedelta
# Note: django applications must be ready, because
# queries are made during initialization
calendar = get_calendar()
# Next just use class-API from `business-python`
calendar.is_business_day("Monday, 8 June 2020")
input_date = Calendar.parse_date("Saturday, 14 June 2014")
calendar.business_days_between(input_date, input_date + timedelta(days=7))
TODO:
- Add tests
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-business-days-0.2.0.tar.gz
.
File metadata
- Download URL: django-business-days-0.2.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: DepHell/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc5d2007f0f341988e18529abab0ec7e6b76921b801a5344866e2f382aa31c79 |
|
MD5 | ca4ab321e14cc5f7d77a04491cace420 |
|
BLAKE2b-256 | b53a390884af52d31048b86841040d9445567a834e6edf3236adf3baf106575c |
File details
Details for the file django_business_days-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_business_days-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: DepHell/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c55d87e411ae1c215f4256297ba8658d3c83ebdac66091112a888a62fa3e9f11 |
|
MD5 | dd8fed29563d80b8acfff17eb5573f12 |
|
BLAKE2b-256 | 09414e080708d97674260a30d4109f546ccf638766d56159bee5caca876c69bb |