Mobile#python#flask#json
Python Flask Json Guide
Cursor rules for Python Flask development with JSON guide.
Use it with Cursor, or export as AGENTS.md / CLAUDE.md for other AI coding agents — pick a format below.
This project is heavily reliant on our custom Drawscape Factorio python module.
Here is code examples of how to use the module:
```python
from drawscape_factorio import create as createFactorio
from drawscape_factorio import importFUE5
with open('/path/to/exported-entities.json', 'r') as file:
json_data = json.load(file)
data = importFUE5(json_data)
result = createFactorio(data, {
'theme_name': 'default',
'color_scheme': 'main',
'show_layers': ['assets', 'belts', 'walls', 'rails', 'electrical', 'spaceship']
})
with open(output_file_name, 'w') as f:
f.write(result['svg_string'])How to use: save the file at your project root (e.g.
.cursorrules or AGENTS.md) and your AI editor picks it up automatically.Related rules
Mobile→
TypeScript Shadcn UI Nextjsmpt Fil
Cursor rules for TypeScript development with shadcn/ui and Next.js integration.
#typescript#shadcn#ui#nextjsmpt
Mobile→
TypeScript Zod Tailwind Nextjsmpt
Cursor rules for TypeScript development with Zod, Tailwind, and Next.js integration.
#typescript#zod#tailwind#nextjsmpt
Mobile→
React Native Expo
Cursor rules for React Native Expo development.
#react#native#expo