Skip to content

Commit

Permalink
Merge pull request #10 from psuedomagi/8-restructure-and-simplify-dep…
Browse files Browse the repository at this point in the history
…artment-status-management-and-delivery

CLOSED: issues 8 and 9 enhancements to calendar attributes (to dateoffsets) and simplified status delivery
  • Loading branch information
seekinginfiniteloop committed Jan 15, 2024
2 parents 7cdf9e0 + 145b817 commit f1e02aa
Show file tree
Hide file tree
Showing 22 changed files with 18,797 additions and 4,063 deletions.
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

0 comments on commit f1e02aa

Please sign in to comment.