
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
A feature-rich python package for interacting with the Federal Reserve Bank of St. Louis Economic Database: FRED
You can install the package using pip:
pip install fedfred
Or install from conda-forge:
conda install -c conda-forge fedfred
For type checking support, install with optional type stubs:
pip install fedfred[types]
For use with Polars DataFrames and GeoDataFrames, install with:
pip install fedfred[polars]
For use with Dask DataFrames and GeoDataFrames, install with:
pip install fedfred[dask]
We recommend using a virtual environment with either installation method.
I recommend consulting the documentation at: https://nikhilxsunder.github.io/fedfred/
Here is a simple example of how to use the package:
# FredAPI
import fedfred as fd
api_key = 'your_api_key'
fred = fd.FredAPI(api_key)
# Get Series Observations as a pandas DataFrame
gdp = fred.get_series_observations('GDP')
gdp.head()
# Get Series Observations as a pandas DataFrame (async)
import asyncio
async def main():
fred = fd.FredAPI(api_key).Async
gdp = fred.get_series_observations('GNPCA')
print(observations.head())
asyncio.run(main())
FedFred uses GitHub Actions for continuous integration. The following workflows run automatically:
These checks ensure that all contributions maintain code quality and don't introduce regressions.
Status badges at the top of this README reflect the current state of our CI pipelines.
FedFred uses standard Python packaging tools:
To set up the development environment:
# Install Poetry
curl -sSL https://install.python-poetry.org | python3 -
# Clone the repository
git clone https://github.com/nikhilxsunder/fedfred.git
cd fedfred
# Install dependencies
poetry install
# Run tests
poetry run pytest
The project uses pytest as its testing framework. Tests are located in the tests/
directory.
To run the complete test suite:
poetry run pytest
For running tests with coverage reports:
poetry run pytest --cov=fedfred tests/
To run a specific test file:
poetry run pytest tests/test_specific_module.py
We aim to maintain a minimum of 80% code coverage across the codebase. This includes:
Continuous integration automatically runs tests on all pull requests and commits to the main branch.
FedFred requires tests for all new functionality. When contributing:
tests/
directoryFor information about reporting security vulnerabilities in FedFred, please see our Security Policy.
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE file for details.
FAQs
A feature-rich python package for interacting with the Federal Reserve Bank of St. Louis Economic Database: FRED
We found that fedfred demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.