All databases

Cursor rule

Python Flask Json Guide Cursorrules Prompt File

Cursor rules for Python Flask development with JSON guide.

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'])

More Backend & Full-Stack rules

Frequently asked questions

What is the Python Flask Json Guide Cursorrules Prompt File Cursor rule?

Cursor rules for Python Flask development with JSON guide. It is a Backend & Full-Stack rule, stored as python-flask-json-guide-cursorrules-prompt-file.mdc.

How do I use the Python Flask Json Guide Cursorrules Prompt File rule in Cursor?

Copy the rule from this page and save it as python-flask-json-guide-cursorrules-prompt-file.mdc in your project's .cursor/rules folder, or paste it into Cursor's project rules settings.