DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add a new country generator to the Yowes codebase with Yowes

Extend Yowes with a country package that subclasses the base generator and registers itself.

Short answer: Install from source with pip install -e; then 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. All steps.

Who it is forA Python developer maintaining Yowes or a fork who wants to support a fourteenth country with its own document types.

The problemThe generator covers 13 countries, and a new country needs its own schools, names, positions, and document rendering.

The outcomeA new country package that the MCP tools list and use after registration.

What you need first

  • 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

Steps

  1. Install from source with pip install -e .
  2. Create countries/<country>/__init__.py with a class that inherits countries.base.CountryGenerator
  3. Implement get_country_name, get_country_code, get_schools_data, get_first_names, get_last_names, get_positions, get_document_types, and generate_document
  4. Register the class in countries/__init__.py with register_country
  5. Confirm the country appears in list_countries_tool by starting the server with uvx --from . yowes-mcp and calling it (inferred, check the README)

Prompt for your agent

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.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for hirotomasato/yowes and "Add a new country generator to the Yowes codebase"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer