Skip to content

Commit 45a7148

Browse files
committed
Add period of report to filing
1 parent df4be96 commit 45a7148

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

edgar/_filings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,6 +1307,13 @@ def primary_documents(self):
13071307
"""
13081308
return self.homepage.primary_documents
13091309

1310+
@property
1311+
def period_of_report(self):
1312+
"""
1313+
Get the period of report for the filing
1314+
"""
1315+
return self.homepage.period_of_report
1316+
13101317
@property
13111318
def attachments(self):
13121319
# Return all the attachments on the filing

edgar/attachments.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,12 @@ def get_filers(self):
627627

628628
return filer_infos
629629

630+
@property
631+
def period_of_report(self)-> Optional[str]:
632+
"Get the period of report"
633+
_,_, period = self.get_filing_dates()
634+
return period
635+
630636
@lru_cache(maxsize=None)
631637
def get_filing_dates(self)-> Optional[Tuple[str,str, Optional[str]]]:
632638
# Find the form grouping divs

tests/test_filing_metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ def test_get_filing_period_from_homepage():
55
home = f.homepage
66
filing_date, acceptance, period = home.get_filing_dates()
77
assert (filing_date, acceptance, period) == ('2025-01-03', '2025-01-03 16:28:38', '2025-01-02')
8+
assert home.period_of_report == '2025-01-02'
9+
assert f.period_of_report == '2025-01-02'

0 commit comments

Comments
 (0)