{"filename":"python-flask-json-guide-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for Python Flask development with JSON guide.\"\nglobs: **/*\nalwaysApply: false\n---\nThis project is heavily reliant on our custom Drawscape Factorio python module.\n\nHere is code examples of how to use the module:\n\n```python\nfrom drawscape_factorio import create as createFactorio\nfrom drawscape_factorio import importFUE5\n\nwith open('/path/to/exported-entities.json', 'r') as file:\n    json_data = json.load(file)\n    data = importFUE5(json_data)\n    result = createFactorio(data, {\n        'theme_name': 'default',\n        'color_scheme': 'main',\n        'show_layers': ['assets', 'belts', 'walls', 'rails', 'electrical', 'spaceship']\n    })\n\nwith open(output_file_name, 'w') as f:\n    f.write(result['svg_string'])\n"}