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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c2a2c8675729bdd4483c2cebbd7c88474ce7ce11d4ff415e2f5e5273d6405ad |
|
MD5 | 498f1950c7af13389119fa0d9ac50b3d |
|
BLAKE2b-256 | 45d4174c7e8a5a170616d68503dd6921aba2c5ea8b0f0f68a874ab44901a29ec |
Close
Hashes for fiscal_calendar_helper-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 243cd8ddf8025b06e6c2e7bfdeefc39403d809b5f174128b41a8de773f7bebd1 |
|
MD5 | 7396d36140dd788a9cc6ae33c04ec066 |
|
BLAKE2b-256 | 521fe7b5d1dbe3b91a0ad4bff0b36e2c1b3fae99cc20cf23892b8852377aedc9 |