Files
coinbin.org/pyproject.toml
Claude 9ab60f21e6 Add plain-text/CSV formats, SVG price badges, and agent endpoints
Lean into coinbin's actual differentiator — ergonomics — since the data is now
a commodity. All additive; JSON stays the default so existing clients are
unaffected.

- Content negotiation: ?format=text returns a bare number (great for shells),
  ?format=csv returns CSV (great for Google Sheets IMPORTDATA); also honored
  via the Accept header. Applied to coin, value, and conversion endpoints;
  /coins gets a full CSV table.
- SVG price badges at /<coin>/badge.svg (shields.io-style, colored by 24h
  change, supports ?vs= and ?label=).
- LLM/agent support: /openapi.json spec, /llms.txt guide, and a standalone
  MCP server (mcp_server.py) exposing get_price/convert/list_coins behind a
  new optional `agent` extra.
2026-06-17 02:33:43 +00:00

39 lines
818 B
TOML

[project]
name = "coinbin"
version = "2.0.0"
description = "The Human-Friendly API Service for Crypto Currency Information."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"flask",
"flask-caching",
"flask-sslify",
"graphene>=3",
"requests",
"maya",
"crayons",
"records",
"psycopg2-binary",
"gunicorn",
"sentry-sdk[flask]",
]
[project.optional-dependencies]
# Optional, heavyweight forecasting stack used by the /forecast endpoints.
# Install with: uv sync --extra forecast (and run with FORECASTS_ENABLED=1)
forecast = [
"prophet",
"pandas",
"numpy",
"matplotlib",
"mpld3",
]
# MCP server (mcp_server.py) so LLM agents can use coinbin as a tool.
# Install with: uv sync --extra agent
agent = [
"mcp",
]
[tool.uv]
package = false