{"repo":"santiment/sanpy","free":true,"listed":false,"github":"https://github.com/santiment/sanpy","clone":"git clone https://github.com/santiment/sanpy.git","description":"Santiment API Python Client","language":"Python","stars":114,"topics":["blockchain","data-science","machine-learning","pandas","numpy","python"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"sanpy Python client library for the Santiment API — access on-chain, social, development, and price metrics for 3000+ crypto assets. Results are returned as pandas DataFrames with datetime indexing. For full API documentation and metric definitions, see Santiment Academy. Table of contents - Installation - Extra packages - CLI - Configuration - Programmatic (recommended) - Environment variable - .env files are not loaded automatically - Configure retries, timeouts, and connection pooling - Obtaining an API key - Fetching data - Single asset - Multiple assets - Using selectors - Legacy metric/slug format - Non-timeseries endpoints - Raw GraphQL queries - SQL queries (Santiment Queries) - Metric discovery - Available metrics - Available metrics for a slug - Metric/asset availability since - Versioned metrics - Metric metadata - Metric complexity - Batching queries - Transforms and aggregation - Include incomplete data - Rate limit tools - Assets discovery - Non-standard metrics - Extras - Development Installation Install from PyPI: Upgrade to the latest version: Extra packages There are a few utilities in the san/extras/ directory for backtesting and event studies. To install their dependencies: CLI Sanpy includes a command-line interface for quick data access without writing Python. Configuration The CLI reads the API key from (in order): --api-key flag, SANPY APIKEY env var, stored config file. Discovery Fetching data Rate limits & complexity The discovery ( metrics , project","default_branch":null,"files":null,"tree":[],"storefront":"/r/santiment","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/santiment/sanpy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}