makegov / procurement-tools

Python tools for navigating federal contracting
https://pypi.org/project/procurement-tools/
Apache License 2.0
10 stars 2 forks source link

Adding in FAR clause #2

Closed vdavez closed 10 months ago

vdavez commented 10 months ago

See Issue #1.

Current functionality includes:

from procurement_tools.far import FAR
section = FAR.get_section("17.502-2")
# `section` is now a pydantic model
print(section.model_dump())
# Returns a dict with the title, section number, url, and text of the section

# subpart = FAR.get_subpart("17.5")
print(subpart.model_dump())
# Returns a dict with the title, subpart number, url, and a list of sections in the subpart