{"id":47686609,"url":"https://github.com/adanos-software/adanos-python-sdk","last_synced_at":"2026-04-02T14:52:46.588Z","repository":{"id":344650036,"uuid":"1182513951","full_name":"adanos-software/adanos-python-sdk","owner":"adanos-software","description":"Python SDK for the Adanos Finance Sentiment API","archived":false,"fork":false,"pushed_at":"2026-03-27T06:49:36.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T18:43:29.581Z","etag":null,"topics":["api","finance","sentiment-analysis","stock-market"],"latest_commit_sha":null,"homepage":"https://adanos.org","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/adanos-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-15T16:15:04.000Z","updated_at":"2026-03-27T06:49:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/adanos-software/adanos-python-sdk","commit_stats":null,"previous_names":["adanos-software/adanos-python-sdk"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/adanos-software/adanos-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adanos-software","download_url":"https://codeload.github.com/adanos-software/adanos-python-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adanos-software%2Fadanos-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31308447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","finance","sentiment-analysis","stock-market"],"created_at":"2026-04-02T14:52:46.022Z","updated_at":"2026-04-02T14:52:46.580Z","avatar_url":"https://github.com/adanos-software.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adanos\n\n[![PyPI version](https://img.shields.io/pypi/v/adanos.svg)](https://pypi.org/project/adanos/)\n\n`adanos` is the public Python SDK for the [Adanos Market Sentiment API](https://api.adanos.org/docs).\n\nIt gives you typed access to:\n- Reddit stock sentiment\n- News sentiment and source-filtered rankings\n- X/Twitter stock sentiment\n- Polymarket stock activity and market attention\n- Reddit crypto sentiment\n\nLinks:\n- Source: https://github.com/adanos-software/adanos-python-sdk\n- PyPI: https://pypi.org/project/adanos/\n- API docs: https://api.adanos.org/docs\n- Homepage: https://adanos.org\n\nPackage and import:\n- PyPI package: `adanos`\n- Python import: `adanos`\n\n## Install\n\n```bash\npython3 -m pip install adanos\n```\n\n## Quick Start\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\ntrending = client.reddit.trending(days=7, limit=10)\ntsla = client.reddit.stock(\"TSLA\", days=14)\nexplanation = client.reddit.explain(\"TSLA\")\n\nprint(trending[0].ticker)\nprint(tsla.buzz_score)\nprint(explanation.explanation)\n```\n\n## What You Can Do\n\n- Rank trending stocks across Reddit, News, X, and Polymarket\n- Pull service-level market sentiment snapshots across every public namespace\n- Pull detailed ticker reports for a fixed lookback window\n- Search and compare tickers across datasets\n- Generate AI-written explanations for Reddit and News stock trends\n- Track Reddit crypto tokens via the same client\n- Use sync or async methods without changing the namespace structure\n\n## Namespaces\n\n- `client.reddit.*` for Reddit Stocks\n- `client.news.*` for News Stocks\n- `client.x.*` for X/Twitter Stocks\n- `client.polymarket.*` for Polymarket Stocks\n- `client.crypto.*` for Reddit Crypto\n- `client.reddit_crypto.*` is an alias for `client.crypto.*`\n\n## Examples\n\n### Reddit Stocks\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\ntrending = client.reddit.trending(days=7, limit=10)\nsectors = client.reddit.trending_sectors(days=7, limit=10)\ncountries = client.reddit.trending_countries(days=7, limit=10)\ntsla = client.reddit.stock(\"TSLA\", days=14)\nexplanation = client.reddit.explain(\"TSLA\")\nresults = client.reddit.search(\"Tesla\", days=7, limit=10)\ncomparison = client.reddit.compare([\"TSLA\", \"AAPL\", \"MSFT\"], days=7)\nmarket = client.reddit.market_sentiment(days=7)\n```\n\n### News\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\nnews_trending = client.news.trending(days=7, source=\"reuters\")\nsectors = client.news.trending_sectors(days=7, source=\"reuters\")\ncountries = client.news.trending_countries(days=7, source=\"reuters\")\nnvda = client.news.stock(\"NVDA\", days=7)\nexplanation = client.news.explain(\"NVDA\")\nresults = client.news.search(\"Nvidia\", days=7, limit=10)\ncomparison = client.news.compare([\"NVDA\", \"AAPL\"], days=7)\nmarket = client.news.market_sentiment(days=7)\nstats = client.news.stats()\nhealth = client.news.health()\n```\n\n### X/Twitter\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\nx_trending = client.x.trending(days=1, limit=20)\nsectors = client.x.trending_sectors(days=1, limit=10)\ncountries = client.x.trending_countries(days=1, limit=10)\nnvda = client.x.stock(\"NVDA\")\nresults = client.x.search(\"Nvidia\", days=7, limit=10)\ncomparison = client.x.compare([\"NVDA\", \"AMD\"], days=7)\nmarket = client.x.market_sentiment(days=7)\nstats = client.x.stats()\nhealth = client.x.health()\n```\n\n### Polymarket\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\npm_trending = client.polymarket.trending(days=7, limit=20, type=\"stock\")\nsectors = client.polymarket.trending_sectors(days=7, limit=10)\ncountries = client.polymarket.trending_countries(days=7, limit=10)\naapl = client.polymarket.stock(\"AAPL\")\nresults = client.polymarket.search(\"Apple\", days=7, limit=10)\ncomparison = client.polymarket.compare([\"AAPL\", \"TSLA\"], days=7)\nmarket = client.polymarket.market_sentiment(days=7)\nstats = client.polymarket.stats()\nhealth = client.polymarket.health()\n```\n\nPolymarket semantics:\n- `buzz_score` is activity-first and optimized for current market attention\n- `total_liquidity` is a windowed signal over the selected `days`\n- `top_mentions` on `stock()` are relevance-sorted by trading activity first\n\n### Reddit Crypto\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(api_key=\"sk_live_...\")\n\ntrending = client.crypto.trending(days=7, limit=20)\nbtc = client.crypto.token(\"BTC\", days=14)\nresults = client.crypto.search(\"bitcoin\", days=7, limit=10)\ncomparison = client.crypto.compare([\"BTC\", \"ETH\"], days=7)\nmarket = client.crypto.market_sentiment(days=7)\nstats = client.crypto.stats()\nhealth = client.crypto.health()\n```\n\n## Available Methods\n\n### `client.reddit.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending(days, limit, offset, type)` | Trending stocks by buzz score |\n| `trending_sectors(days, limit, offset)` | Trending sectors |\n| `trending_countries(days, limit, offset)` | Trending countries |\n| `stock(ticker, days)` | Detailed sentiment for a ticker |\n| `explain(ticker)` | AI-generated trend explanation |\n| `search(query, days, limit)` | Search stocks by name or ticker with a summary block |\n| `compare(tickers, days)` | Compare up to 10 stocks |\n| `market_sentiment(days)` | Service-level Reddit market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n### `client.news.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending(days, limit, offset, type, source)` | Trending stocks from news |\n| `trending_sectors(days, limit, offset, source)` | Trending sectors from news |\n| `trending_countries(days, limit, offset, source)` | Trending countries from news |\n| `stock(ticker, days)` | Detailed news sentiment for a ticker |\n| `explain(ticker)` | AI-generated explanation from news context |\n| `search(query, days, limit)` | Search stocks in the news dataset with a summary block |\n| `compare(tickers, days)` | Compare up to 10 stocks in news |\n| `market_sentiment(days)` | Service-level News market sentiment snapshot |\n| `stats()` | News dataset statistics |\n| `health()` | Public news service health |\n\n### `client.x.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending(days, limit, offset, type)` | Trending stocks on X/Twitter |\n| `trending_sectors(days, limit, offset)` | Trending sectors |\n| `trending_countries(days, limit, offset)` | Trending countries |\n| `stock(ticker, days)` | Detailed X/Twitter sentiment |\n| `search(query, days, limit)` | Search stocks with a summary block |\n| `compare(tickers, days)` | Compare stocks |\n| `market_sentiment(days)` | Service-level X/Twitter market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n### `client.polymarket.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending(days, limit, offset, type)` | Trending stocks on Polymarket with activity-first buzz and windowed liquidity |\n| `trending_sectors(days, limit, offset)` | Trending sectors |\n| `trending_countries(days, limit, offset)` | Trending countries |\n| `stock(ticker, days)` | Detailed Polymarket activity, sentiment, and relevance-sorted market questions |\n| `search(query, days, limit)` | Search stocks with a summary block |\n| `compare(tickers, days)` | Compare stocks with windowed Polymarket activity signals |\n| `market_sentiment(days)` | Service-level Polymarket market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n### `client.crypto.*`\n\n| Method | Description |\n|--------|-------------|\n| `trending(days, limit, offset)` | Trending Reddit crypto tokens |\n| `token(symbol, days)` | Detailed token sentiment and buzz |\n| `search(query, days, limit)` | Search tokens by symbol or name with a summary block |\n| `compare(symbols, days)` | Compare multiple tokens |\n| `market_sentiment(days)` | Service-level Reddit Crypto market sentiment snapshot |\n| `stats()` | Dataset statistics |\n| `health()` | Public service health |\n\n## Async Usage\n\nEvery namespace method also has an `_async` variant.\n\n```python\nimport asyncio\n\nfrom adanos import AdanosClient\n\n\nasync def main() -\u003e None:\n    async with AdanosClient(api_key=\"sk_live_...\") as client:\n        trending = await client.reddit.trending_async(days=7)\n        tsla = await client.reddit.stock_async(\"TSLA\")\n        explanation = await client.news.explain_async(\"NVDA\")\n        print(trending[0].ticker)\n        print(tsla.trend)\n        print(explanation.explanation)\n\n\nasyncio.run(main())\n```\n\n## Authentication and Configuration\n\nGet an API key at https://api.adanos.org/docs\n\n```python\nfrom adanos import AdanosClient\n\nclient = AdanosClient(\n    api_key=\"sk_live_...\",\n    base_url=\"https://api.adanos.org\",\n    timeout=60.0,\n)\n```\n\nNotes:\n- `api_key` is required for protected endpoints\n- `base_url` lets you target another deployment or staging environment\n- `timeout` is passed through to the underlying `httpx` client\n- the SDK does not auto-load local CLI profiles or env-specific config files\n\nContext management:\n\n```python\nfrom adanos import AdanosClient\n\nwith AdanosClient(api_key=\"sk_live_...\") as client:\n    print(client.reddit.health())\n```\n\n## Errors and Responses\n\n- Most SDK methods return typed models from the generated OpenAPI client\n- `market_sentiment()` methods return the live JSON payload directly so the new endpoint family is available before the next full generated refresh\n- Documented API errors are returned as typed error models\n- Undocumented statuses raise `UnexpectedStatus`\n- For long-lived processes, use `with`, `async with`, `close()`, or `aclose()` to release HTTP resources\n\n## Rate Limits\n\nTypical platform limits:\n\n| Tier | Monthly Requests | Burst Limit |\n|------|------------------|-------------|\n| Free | 250 | 100/min |\n| Paid | Unlimited | 1000/min |\n\nSee the live API docs for the current contract and plan details.\n\n## Migration from `social-stock-sentiment`\n\nVersion `1.0.0` starts the new `adanos` package line and renames both the PyPI package and the Python import path.\n\nOld:\n\n```bash\npython3 -m pip install social-stock-sentiment\n```\n\n```python\nfrom stocksentiment import StockSentimentClient\n```\n\nNew:\n\n```bash\npython3 -m pip install adanos\n```\n\n```python\nfrom adanos import AdanosClient\n```\n\nThe client API and namespace layout stay the same. Most upgrades only need a dependency rename and an import rewrite.\n\n`AdanosClient` is now the primary public client name. `StockSentimentClient` remains available as a compatibility alias.\n\nIf you adopted the pre-release `adanos-python-sdk` naming locally, switch that install/import pair too:\n\n```bash\npython3 -m pip uninstall adanos-python-sdk\npython3 -m pip install adanos\n```\n\n```python\nfrom adanos import AdanosClient\n```\n\n## Development\n\n```bash\npython3 -m pip install -e \".[dev]\"\npython3 -m pytest tests -q\npython3 -m build\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadanos-software%2Fadanos-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadanos-software%2Fadanos-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadanos-software%2Fadanos-python-sdk/lists"}