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
Close
Hashes for django-business-days-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf6dfb13582a60432e5dea4470a78f54f943c4fc80f80c0ef0e62c7e17f8fbf |
|
MD5 | 072e98234ff1bda019bda5ce90c3d61d |
|
BLAKE2b-256 | 9be68c49f2a5f575c98163d8236f75d7b3ed392fc44e6ee7a0c5c916a6fd70fb |
Close
Hashes for django_business_days-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b7b9906fcc47bda0afed695dd8dd15edb467cf2458604b2ee42610e283dcfd3 |
|
MD5 | 426de50be321f6730043a0d9dccf6c25 |
|
BLAKE2b-256 | 389cda8b760af4333412eba879bbbee096e5d74428b5def1c6fe1909ca6d13e7 |