MCPcopy Index your code
hub / github.com/CityGenerator/Megacosm-Generator

github.com/CityGenerator/Megacosm-Generator @megacosm-0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release megacosm-0.2 ↗ · + Follow
1,034 symbols 2,810 edges 165 files 464 documented · 45%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Coverage Status Bitdeli Badge

Megacosm-Generator

A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.

Set Up The Dev Environment

  • make sure you have python 2.7
  • make sure you have python's virtualenv installed
  • set up Redis or (have access to one, like redistogo).

On the first run, do the following:


    git clone https://github.com/CityGenerator/Megacosm-Generator.git

    # create a virtual env
    virtualenv env

    # activate the env
    source env/bin/activate

    # install the requirements
    pip install -r requirements.txt

    # copy the example config into place and configure it
    cp config.py.example config.py

    # Load your data
    python reimport_data.py

    # start the server
    python run.py
    # View the app in your browser at http://127.0.0.1:8000/

After that, you just need to use this:

    source env/bin/activate
    python run.py

To try your unit tests, run

    nosetests

Core symbols most depended-on inside this repo

render_template
called by 47
megacosm/generators/generator.py
feature_filter
called by 39
megacosm/__init__.py
builder_form_data
called by 38
megacosm/__init__.py
set_seed
called by 28
megacosm/util/Seeds.py
generate_features
called by 22
megacosm/generators/generator.py
valid_count
called by 17
megacosm/oneliners.py
render
called by 13
megacosm/generators/name.py
select_plural_adj
called by 12
megacosm/__init__.py

Shape

Method 581
Function 272
Class 96
Route 85

Languages

Python89%
TypeScript11%

Modules by API surface

megacosm/__init__.py98 symbols
tests/test_oneliners.py87 symbols
tests/test_megacosm.py84 symbols
megacosm/oneliners.py73 symbols
megacosm/static/js/threejs/three-r68.min.js49 symbols
tests/test_generator.py23 symbols
tests/test_city.py22 symbols
megacosm/generators/roguedungeon.py22 symbols
megacosm/static/js/city/city_env.js16 symbols
integration_tests/test_name.py16 symbols
megacosm/generators/geomorphdungeon.py14 symbols
tests/test_geomorphdungeon.py12 symbols

For agents

$ claude mcp add Megacosm-Generator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page