call_report.fca.catalog.parse_fca_release_filename#
- call_report.fca.catalog.parse_fca_release_filename(name: str) ReportingPeriod | None[source]#
Return the period an FCA release zip filename names, or None.
A name is read only if it is the name fca_release_stem gives a quarter, followed by
.zip. Letter case does not matter, and September may beSepas well asSept. Any other name givesNone, including a name in the other era’s convention, such as"Mar2020.zip"for a 2020 quarter.- Parameters:
- namestr
A filename, such as
"2026March.zip"or"Sept2014.zip", with no folder.
- Returns:
- ReportingPeriod or None
The period the file holds, or
Noneif the name is not an FCA release zip.
See also
fca_release_stemReturn the name of a period’s release zip.
construct_fca_download_urlBuild the FCA URL of a period’s release zip.
Examples
>>> parse_fca_release_filename("2026March.zip").label '2026Q1' >>> parse_fca_release_filename("sep2014.ZIP").label '2014Q3' >>> parse_fca_release_filename("Mar2020.zip") is None True >>> parse_fca_release_filename("instructions.pdf") is None True