{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "hirotomasato-yowes--add-country-generator-to-yowes",
 "repo": "hirotomasato/yowes",
 "repo_url": "https://github.com/hirotomasato/yowes",
 "repo_slug": "hirotomasato-yowes",
 "title": "Add a new country generator to the Yowes codebase",
 "page_title": "How to add a new country generator to the Yowes codebase with Yowes",
 "summary": "Extend Yowes with a country package that subclasses the base generator and registers itself.",
 "who": "A Python developer maintaining Yowes or a fork who wants to support a fourteenth country with its own document types.",
 "problem": "The generator covers 13 countries, and a new country needs its own schools, names, positions, and document rendering.",
 "outcome": "A new country package that the MCP tools list and use after registration.",
 "steps": [
  "Install from source with `pip install -e .`",
  "Create countries/<country>/__init__.py with a class that inherits countries.base.CountryGenerator",
  "Implement get_country_name, get_country_code, get_schools_data, get_first_names, get_last_names, get_positions, get_document_types, and generate_document",
  "Register the class in countries/__init__.py with register_country",
  "Confirm the country appears in list_countries_tool by starting the server with `uvx --from . yowes-mcp` and calling it (inferred, check the README)"
 ],
 "agent_prompt": "In the hirotomasato/yowes repo, add a country package for <country name> by subclassing countries.base.CountryGenerator and registering it in countries/__init__.py. Expected output: a working package and a registered country code. Verify that list_countries_tool returns the new code after the server restarts.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README gives the abstract method list but no example country implementation, so expect to read the existing country packages for the expected data shape.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 or newer",
  "pip, or uv for the uvx route",
  "An MCP client that speaks stdio, such as the clients named in the README",
  "A test environment with synthetic data only"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hirotomasato-yowes/add-country-generator-to-yowes/",
 "md": "https://dedupedai.com/use-cases/hirotomasato-yowes/add-country-generator-to-yowes/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/hirotomasato-yowes--add-country-generator-to-yowes.json",
 "api_version": "v1"
}
