$ show RomelTorres/alpha_vantage
This repository is a Python client library for the Alpha Vantage financial data API. It provides synchronous and asynchronous wrappers for accessing stock/cryptocurrency time series, technical indicators, foreign exchange rates, commodities, economic indicators, fundamental data, options, and news sentiment. The library is designed as a straightforward SDK with a decorator-based architecture that handles API key injection, URL construction, and output formatting (JSON, pandas DataFrame, CSV). The codebase includes a comprehensive test suite with mock data and integration tests. However, it exhibits technical drift: declared support for Python 2.7 (EOL), an outdated CI configuration (Travis on Ubuntu Xenial), a hardcoded version number in documentation that differs from the library version, and duplication of core logic between synchronous and async modules. The library is functional and widely used, but not exemplary in terms of modern Python practices or maintainability.
The LLM identified 1 files worth highlighting for reuse:
Base class implementing a decorator-based architecture for calling the Alpha Vantage API. The `_call_api_on_func` decorator dynamically builds API URLs from function arguments and handles API key injection. The `_output_format` decorator converts JSON responses to pandas DataFrame or CSV. This pattern is cleanly separated from specific API endpoints and could be extracted as a generic base class for any REST API client that requires flexible output formatting and parameter mapping.