Python tools for navigating federal contracting
Project description
procurement-tools
A handy collection of python utilities and tools to navigate federal contracting.
Features
- UEI validation
- Get a URL for an entity from USASpending
- Get recent award data 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
CLI Usage
Out of the box, there is a simple CLI, called fargo
. You can use it to do things like:
fargo sam [UEI]
# Dumps a json of an entity's information
fargo usaspending [UEI] --awards
# Dumps a json of an entity's 10 most recent awards (in the last 90 days)
Check out the docs for all of the CLI options
Installation
pip install procurement-tools
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
procurement_tools-0.1.6b0.tar.gz
(37.2 kB
view hashes)
Built Distribution
Close
Hashes for procurement_tools-0.1.6b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644acf36bc8304411a55948da9f3a49eb5392bfd6036fcee6120a5567638fbdf |
|
MD5 | 69bc3bead29fa9bb215b993d782305df |
|
BLAKE2b-256 | 58da6673779789b995751d24146e6db19714e2e1d6499edeaa0f7c990d16faa8 |
Close
Hashes for procurement_tools-0.1.6b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 949cd7ebf3faef268435f29f6fef012f0641cdc515cce153980b2349d9266357 |
|
MD5 | 5c32aada1bdb8b57f261b3bedd9cc225 |
|
BLAKE2b-256 | a26645fdb9520eab9b7c2130bc88e2679a79aa0723a087d1b682ee9343be215c |