
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
structura-py
Advanced tools
Structura is a CLI tool that automates folder structure generation and dependency management for Python projects. It supports multiple architectures (MVC, MVCS, Hexagonal) and frameworks (Flask, FastAPI), using YAML configuration for flexibility.
Automated Folder Structure & Dependency Management for Python Projects
Structura is a powerful project scaffolding tool designed to automate the creation of consistent and standardized folder structures for Python projects. It supports multiple frameworks and architectures, making it easy to initialize production-ready projects with just a few commands.
Whether you're building a Flask or FastAPI project, Structura handles:
venv, pipenv, and poetryYou can install Structura using pip:
pip install structura-py
Create a new Python project with the desired architecture:
structura init myproject --framework flask
For FastAPI:
structura init myproject --framework fastapi
If you already have a project, you can simply generate the structure:
structura init
When you run structura-py init, it generates the following folder structure based on the chosen architecture (e.g., MVC):
/myproject
├── app
│ ├── __init__.py
│ ├── models
│ │ └── user.py
│ ├── services
│ │ └── user_service.py
│ ├── controllers
│ │ └── user_controller.py
│ ├── routes
│ │ └── user_routes.py
├── config
│ ├── settings.py
│ └── config.yaml
├── tests
│ ├── test_user.py
├── requirements.txt
├── .env
├── README.md
└── main.py
Architecture Variations:
MVC: models, services, controllers, routesMVCS: Adds services layer for business logic separationHexagonal: Adds adapters and ports folders for dependency inversionWe welcome contributions! To contribute:
Structura is licensed under the MIT License. Feel free to use, modify, and distribute it.
If you encounter any issues or have suggestions, feel free to open an issue on GitHub.
FAQs
Structura is a CLI tool that automates folder structure generation and dependency management for Python projects. It supports multiple architectures (MVC, MVCS, Hexagonal) and frameworks (Flask, FastAPI), using YAML configuration for flexibility.
We found that structura-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.