infinityplusone / procurement-tools

Python tools for navigating federal contracting

Home Page:https://pypi.org/project/procurement-tools/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

procurement-tools

PyPI version

A handy collection of python utilities and tools to navigate federal contracting.

Features

  • UEI validation
  • Get a URL for an entity from USASpending
  • Lookup a FAR provision by citation
  • Get entity information from the SAM entity
  • Access innovations from the Periodic Table of Acquisition Innovations

Usage

For full documentation, head to the docs.

from procurement_tools import FAR, UEI, USASpending, PeriodicTable
print(UEI.is_valid("J7M9HPTGJ1S9"))
# True

print(USASpending.get_usaspending_URL("J7M9HPTGJ1S9"))
# 'https://www.usaspending.gov/recipient/bf1220c1-2373-042a-e8e1-33d5a29639d0-P/latest'

print(FAR.get_section("17.502-2"))
# Returns a pydantic model with the title, section number, url, and text of the section

print(PeriodicTable.get_random_innovation())
# Returns a dict with an innovation from the FAI Periodic Table of Acquisition Innovations

Additionally, we have the beginning of a SAM API client:

from procurement_tools import get_entity
res = get_entity({ueiSAM:"XRVFU3YRA2U5"})
print(res)
# Returns a pydantic model with the latest SAM data for a given Entity

Installation

pip install procurement-tools

License

Apache 2.0

About

Python tools for navigating federal contracting

https://pypi.org/project/procurement-tools/

License:Apache License 2.0


Languages

Language:HTML 91.1%Language:Python 8.9%Language:Just 0.1%