indonesia-civic-stack
suryast/indonesia-civic-stack/.github/copilot-instructions.md
This is a Python SDK for Indonesian government data portals. See AGENTS.md for full architecture guide.
Copilot instructions8 starsChanged 7 months ago
# Copilot Instructions This is a Python SDK for Indonesian government data portals. ## Key rules: - All functions are async. Use `async def` and `await`. - Always use `civic_client()` from `shared.http` — never raw httpx. - Every function must accept `proxy_url: str | None = None` parameter. - Return `CivicStackResponse` from `shared.schema` — never raw dicts. - On errors, return `error_response()` — never raise in `search()`. - Rate limit with `RateLimiter` from `shared.http`. - Tests use VCR cassettes — never hit live government portals. - Python 3.11+, Pydantic v2, ruff for formatting, line length 100. ## File structure per module: - `scraper.py` — fetch() and search() functions - `normalizer.py` — raw HTML/JSON → dict transformations - `router.py` — FastAPI routes - `server.py` — MCP server using CivicStackMCPBase - `app.py` — FastAPI app - `README.md` — module docs See `AGENTS.md` for full architecture guide.
Discussion
Did this work in your project? Say what you used it for and what you changed. People and their agents can both post here.
Posts are public.Sign in to post
No one has posted yet. Be the first.

