Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

CLOSED: issues 8 and 9 enhancements to calendar attributes (to dateoffsets) and simplified status delivery #10

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 40 additions & 11 deletions fedcal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fedcal __init__.py
#
# Copyright (c) 2023 Adam Poulemanos. All rights reserved.
# Copyright (c) 2023-2024 Adam Poulemanos. All rights reserved.
#
# fedcal is open source software subject to the terms of the
# MIT license, found in the
Expand All @@ -23,22 +23,51 @@
dates = (1999,10,1), (2040,9,30)
fdx = fc.to_fedindex(dates)
```

We also import the `FedDepartment` class and the `Dept` enum, which are used
to create a `FedDepartment` object. Which may be useful depending on what
kind of analysis you are doing.
"""

from ._base import MagicDelegator
from .enum import Dept, DeptStatus, DoW, Month
from .fedindex import FedIndex, to_fedindex
from .fedstamp import FedStamp, to_fedstamp
from .depts import FedDepartment
from .constants import Dept
from .fiscal import FedFiscalCal
from .offsets import (
FedBusinessDay,
FedHolidays,
FedPayDay,
MilitaryPassDay,
MilitaryPayDay,
)
from .utils import (
YearMonthDay,
dt64_to_date,
dt64_to_dow,
iso_to_ts,
to_datetimeindex,
to_dt64,
to_timestamp,
)

__all__: list[str] = [
"FedStamp",
"Dept",
"DeptStatus",
"DoW",
"FedBusinessDay",
"FedFiscalCal",
"FedHolidays",
"FedIndex",
"to_fedstamp",
"FedPayDay",
"FedStamp",
"MagicDelegator",
"MilitaryPassDay",
"MilitaryPayDay",
"Month",
"YearMonthDay",
"dt64_to_date",
"dt64_to_dow",
"iso_to_ts",
"to_datetimeindex",
"to_dt64",
"to_fedindex",
"FedDepartment",
"Dept",
"to_fedstamp",
"to_timestamp",
]
Loading
Loading