{"id":18005598,"url":"https://github.com/areed1192/us-federal-treasury-python-api","last_synced_at":"2025-03-26T10:32:10.304Z","repository":{"id":62586772,"uuid":"369397874","full_name":"areed1192/us-federal-treasury-python-api","owner":"areed1192","description":"A Python application which is used to pull data from the United States Federal Treasury API.","archived":false,"fork":false,"pushed_at":"2021-07-15T18:41:30.000Z","size":46,"stargazers_count":15,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T15:42:29.513Z","etag":null,"topics":["api","api-wrapper","federal-treasury","financial-data","python","united-states-data"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/areed1192.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["areed1192"],"patreon":"sigmacoding"}},"created_at":"2021-05-21T03:01:34.000Z","updated_at":"2025-02-25T05:25:40.000Z","dependencies_parsed_at":"2022-11-03T22:39:10.174Z","dependency_job_id":null,"html_url":"https://github.com/areed1192/us-federal-treasury-python-api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"areed1192/sigma-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/areed1192%2Fus-federal-treasury-python-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/areed1192%2Fus-federal-treasury-python-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/areed1192%2Fus-federal-treasury-python-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/areed1192%2Fus-federal-treasury-python-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/areed1192","download_url":"https://codeload.github.com/areed1192/us-federal-treasury-python-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245637137,"owners_count":20648099,"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":["api","api-wrapper","federal-treasury","financial-data","python","united-states-data"],"created_at":"2024-10-30T00:20:45.337Z","updated_at":"2025-03-26T10:32:10.011Z","avatar_url":"https://github.com/areed1192.png","language":"Python","funding_links":["https://github.com/sponsors/areed1192","https://patreon.com/sigmacoding","https://www.patreon.com/sigmacoding"],"categories":[],"sub_categories":[],"readme":"# United States Federal Treasury API\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Setup](#setup)\n- [Usage](#usage)\n- [Support These Projects](#support-these-projects)\n\n## Overview\n\nVersion: **0.1.0**\n\nThe U.S. Department of the Treasury is building a suite of open-source tools to deliver\nstandardized information about federal finances to the public. We are working to centralize\npublicly available financial data, and this website will include datasets from the Fiscal\nService on topics including debt, revenue, spending, interest rates, and savings bonds.\n\nOur API is based on Representational State Transfer, otherwise known as a RESTful API.\nOur API accepts GET requests, returns JSON responses, and uses standard HTTP response\ncodes. Each endpoint on this site is accessible through unique URLs that respond with\ndata values and metadata from a single database table.\n\n## Setup\n\n**Setup - Requirements Install:**\n\nFor this particular project, you only need to install the dependencies, to use the project. The dependencies\nare listed in the `requirements.txt` file and can be installed by running the following command:\n\n```console\npip install -r requirements.txt\n```\n\nAfter running that command, the dependencies should be installed.\n\n**Setup - Local Install:**\n\nIf you are planning to make modifications to this project or you would like to access it\nbefore it has been indexed on `PyPi`. I would recommend you either install this project\nin `editable` mode or do a `local install`. For those of you, who want to make modifications\nto this project. I would recommend you install the library in `editable` mode.\n\nIf you want to install the library in `editable` mode, make sure to run the `setup.py`\nfile, so you can install any dependencies you may need. To run the `setup.py` file,\nrun the following command in your terminal.\n\n```console\npip install -e .\n```\n\nIf you don't plan to make any modifications to the project but still want to use it across\nyour different projects, then do a local install.\n\n```console\npip install .\n```\n\nThis will install all the dependencies listed in the `setup.py` file. Once done\nyou can use the library wherever you want.\n\n**Setup - PyPi Install:**\n\nTo **install** the library, run the following command from the terminal.\n\n```console\npip install us-federal-treasury-python-api\n```\n\n**Setup - PyPi Upgrade:**\n\nTo **upgrade** the library, run the following command from the terminal.\n\n```console\npip install --upgrade us-federal-treasury-python-api\n```\n\n## Usage\n\nHere is a simple example of using the `treasury` library.\n\n```python\nfrom pprint import pprint\nfrom treasury.client import FederalTreasuryClient\n\n# Initialize the client.\ntreasury_client = FederalTreasuryClient()\n\n# Initialize the `DailyTreasuryStatements` service.\ndaily_treasury_service = treasury_client.daily_treasury_statements()\n\n# Grab Public Debt Transactions.\npprint(\n    daily_treasury_service.public_debt_transactions()\n)\n\n# Grab Adjusted Public Debt Transactions.\npprint(\n    daily_treasury_service.adjusted_public_debt_transactions()\n)\n```\n\n## Support These Projects\n\n**Patreon:**\nHelp support this project and future projects by donating to my [Patreon Page](https://www.patreon.com/sigmacoding). I'm\nalways looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me to\npay monthly fees.\n\n**YouTube:**\nIf you'd like to watch more of my content, feel free to visit my YouTube channel [Sigma Coding](https://www.youtube.com/c/SigmaCoding).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fareed1192%2Fus-federal-treasury-python-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fareed1192%2Fus-federal-treasury-python-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fareed1192%2Fus-federal-treasury-python-api/lists"}