
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 MidβYear Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
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 poetry
You 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
, routes
MVCS
: 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
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.