A fiscal helper for retail calendars
Project description
Fiscal Calendar Helper
This helper function is based on the National Retail Federations 4-5-4 calendar for Python 3.
Key features:
- Offset a date or week
- Translate a date to the fiscal week and vice versa
To install
pip install git+https://github.com/Growthsayer/fiscal-helper.git
To start a new fiscal helper:
import Fiscal_Helper from fiscal_helper
fiscal = Fiscal_Helper()
Fiscal Offsets
>>> fiscal.offset('2022_31', 4)
'2022_35'
Fiscal next / previous
Returns the next or previous week or date
>>> fiscal.next('2022_31')
'2022_32'
>>> fiscal.previous('2022_31')
'2022_30'
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 fiscal_calendar_helper-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d0bf5aa4c87171fb16a0c62c598e0da26d2c6b95d79cbd9b4211a7fe770a1d |
|
MD5 | 9bad4c246aaafb9e24caea12a75a0476 |
|
BLAKE2b-256 | 2eb5c328220b87efbbd068f78b5fdc80970dba4ad0c8fb2c0838a7ebe5a84fab |
Close
Hashes for fiscal_calendar_helper-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 767218a5c34e0ef07a6cbb12e5cd682370448645f743cada3eb2c5fc4e652f58 |
|
MD5 | 8de0011e5b505fa621cc3305e466283b |
|
BLAKE2b-256 | 7be657760e0e291468e6a3b8e45e1bde8d3a4462838489c22c12d357493c8576 |