{"id":13684015,"url":"https://github.com/makegov/procurement-tools","last_synced_at":"2025-10-05T07:22:54.895Z","repository":{"id":208335621,"uuid":"721330176","full_name":"makegov/procurement-tools","owner":"makegov","description":"Python tools for navigating federal contracting","archived":false,"fork":false,"pushed_at":"2024-05-02T20:56:34.000Z","size":1260,"stargazers_count":11,"open_issues_count":10,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-27T14:19:19.117Z","etag":null,"topics":["procurement-data"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/procurement-tools/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makegov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-20T20:49:05.000Z","updated_at":"2024-12-18T00:14:25.000Z","dependencies_parsed_at":"2023-12-05T21:25:58.947Z","dependency_job_id":"be1fd6e6-021c-484b-9478-916ec016d326","html_url":"https://github.com/makegov/procurement-tools","commit_stats":null,"previous_names":["tandemgov/procurement-tools","makegov/procurement-tools"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makegov%2Fprocurement-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makegov%2Fprocurement-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makegov%2Fprocurement-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makegov%2Fprocurement-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makegov","download_url":"https://codeload.github.com/makegov/procurement-tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251632293,"owners_count":21618625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["procurement-data"],"created_at":"2024-08-02T14:00:23.052Z","updated_at":"2025-10-05T07:22:54.873Z","avatar_url":"https://github.com/makegov.png","language":"HTML","funding_links":[],"categories":["Utilities and Client Libraries"],"sub_categories":[],"readme":"# procurement-tools\n\n[![PyPI version](https://img.shields.io/pypi/v/procurement-tools.svg)](https://pypi.org/project/procurement-tools/)\n\nA handy collection of python utilities and tools to navigate federal contracting.\n\n## Features\n\n- [x] UEI validation\n- [x] Get a URL for an entity from USASpending\n- [x] Get recent award data for an entity from USASpending\n- [x] Lookup a FAR provision by citation\n- [x] Get entity information from the SAM entity\n- [x] Access innovations from the Periodic Table of Acquisition Innovations\n\n## Usage\n\nFor full documentation, head to [the docs](https://procurement-tools.readthedocs.io/en/latest/).\n\n```py\nfrom procurement_tools import FAR, UEI, USASpending, PeriodicTable\nprint(UEI.is_valid(\"J7M9HPTGJ1S9\"))\n# True\n\nprint(USASpending.get_usaspending_URL(\"J7M9HPTGJ1S9\"))\n# 'https://www.usaspending.gov/recipient/bf1220c1-2373-042a-e8e1-33d5a29639d0-P/latest'\n\nprint(FAR.get_section(\"17.502-2\"))\n# Returns a pydantic model with the title, section number, url, and text of the section\n\nprint(PeriodicTable.get_random_innovation())\n# Returns a dict with an innovation from the FAI Periodic Table of Acquisition Innovations\n```\n\nAdditionally, we have the beginning of a SAM API client:\n\n```python\nfrom procurement_tools import SAM\nres = SAM.get_entity({\"ueiSAM\":\"XRVFU3YRA2U5\"})\nprint(res)\n# Returns a pydantic model with the latest SAM data for a given Entity\n```\n\n## CLI Usage\n\nOut of the box, there is a simple CLI, called `fargo`. You can use it to do things like:\n\n```sh\nfargo sam entity [UEI]\n# Dumps a json of an entity's information\n\nfargo sam opportunities --q \"machine\"\n# Dumps a json of active opportunities that match the keyword \"machine\"\n\nfargo usaspending [UEI] --awards\n# Dumps a json of an entity's 10 most recent awards (in the last 90 days)\n```\n\nCheck out [the docs](https://procurement-tools.readthedocs.io/en/latest/cli.html) for all of the CLI options\n\n## Installation\n\n```sh\npip install procurement-tools\n```\n\nThe SAM API client requires that the local environment variable `SAM_API_KEY` be set. See the [SAM API Docs](https://open.gsa.gov/api/entity-api/#individual-personal-accounts) for information on obtaining an API key.\n\n## License\n\nApache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakegov%2Fprocurement-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakegov%2Fprocurement-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakegov%2Fprocurement-tools/lists"}