Skip to main content

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

Metadata

Release files for django-business-days 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-business-days 0.2.0
File Size Uploaded
django-business-days-0.2.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-business-days 0.2.0
File Interpreter ABI Platform
django_business_days-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / django-business-days-0.2.0.tar.gz

Download URL django-business-days-0.2.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dc5d2007f0f341988e18529abab0ec7e6b76921b801a5344866e2f382aa31c79
BLAKE2b-256 checksum
How to use checksums
b53a390884af52d31048b86841040d9445567a834e6edf3236adf3baf106575c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via DepHell/0.8.3

Release files / django_business_days-0.2.0-py3-none-any.whl

Download URL django_business_days-0.2.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c55d87e411ae1c215f4256297ba8658d3c83ebdac66091112a888a62fa3e9f11
BLAKE2b-256 checksum
How to use checksums
09414e080708d97674260a30d4109f546ccf638766d56159bee5caca876c69bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via DepHell/0.8.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page