Python Flask JSON 指南
用于 Python Flask 开发的 Cursor 规则,结合 JSON 指南。
awesome-cursorrules 社区·↓ 2k 次复制·
4 条规则
.cursorrules
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'])内容来源:awesome-cursorrules(CC0-1.0 许可)