
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
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
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.