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 SAM
res = SAM.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 entity [UEI]
# Dumps a json of an entity's information
fargo sam opportunities --q "machine"
# Dumps a json of active opportunities that match the keyword "machine"
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
Metadata
Release files for procurement-tools 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| procurement_tools-0.2.2.tar.gz | 39.3 kB | Without provenance | Details for procurement_tools-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| procurement_tools-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for procurement_tools-0.2.2-py3-none-any.whl |
Total release size: 82.4 kB
Release files / procurement_tools-0.2.2.tar.gz
| Download URL | procurement_tools-0.2.2.tar.gz |
|---|---|
| Size | 39.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d36c372ef0904088de7dc82fc0bfc2cd67a2d795817a5a790fc37a490b040d82
|
|
BLAKE2b-256 checksum How to use checksums |
99d52e877ab75b91aa1aa8a8f25bd942833c48062a98e8812f93c4400b8ae6eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
|
Release files / procurement_tools-0.2.2-py3-none-any.whl
| Download URL | procurement_tools-0.2.2-py3-none-any.whl |
|---|---|
| Size | 43.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef53147015e7cb71514b5c74c68b49e84830d1439925a70eb794d34616e40c31
|
|
BLAKE2b-256 checksum How to use checksums |
a17e398fc1a5bd8819e09f8822148a69d8375876e7377cbd5ecb04671f9e1750
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.3.0
|
Security for procurement-tools 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.