Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fiscal_calendar_helper-0.0.4.tar.gz (43.6 kB view hashes)

Uploaded Source

Built Distribution

fiscal_calendar_helper-0.0.4-py3-none-any.whl (43.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page