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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f970f512df30cd1975b3afced3dc71544e9588d3a62552277ba79ee30aa6396 |
|
MD5 | 8629ca4bf2e7e32760180ed51b81dada |
|
BLAKE2b-256 | b5aac53f28c32be1ef8bab9537ddc8f64c62099101860031682616af8fe670c8 |
Close
Hashes for fiscal_calendar_helper-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b7d3a2f2a404e3f45a3e54f002252caf0e5bb0912db44afbf10129f16f716ce |
|
MD5 | cdb59bcdd7e92a4238005e2886bb56ec |
|
BLAKE2b-256 | 19be41e7ee8c6a45ce7d92e51140c9c90f06165a6c195f1e8f218294047664a2 |