Skip to main content

A tool to create directory structures from text files

Project description

AutoStruct

Tagline

Organize. Scaffold. Develop.

Motto

From Blueprint to Code in One Command.

Overview

AutoStruct is a powerful command-line tool that transforms a simple text file into a complete directory structure for your project. Designed for developers who value efficiency and organization, AutoStruct automates the tedious task of manual project scaffolding, so you can focus on what truly matters—coding!

Core Features

Quick Setup

  • Generate complex directory trees with a single command.

Flexible Formatting

  • Define both directories and files using an intuitive, plain text format.

Cross-Platform

  • Works seamlessly on any operating system with Python 3.6+.

No External Dependencies

  • Built entirely with Python's standard libraries, ensuring hassle-free installation.

Benefits

  • Time Saving: Automate repetitive folder and file creation to start coding faster.
  • Consistency: Maintain a standardized project structure across all your projects.
  • Simplified Workflow: Easily set up new projects with a predefined scaffold.
  • Error Reduction: Minimize manual mistakes in creating directories and files.
  • Enhanced Productivity: Focus on development instead of spending time on setup.

Getting Started

Installation

Install AutoStruct from PyPI:

pip install autostruct-tool==0.1.1

Note: The package is named autostruct-tool on PyPI, but the command-line tool is accessed via the autostruct command.

How It Works

  1. Plan: Create a structure file (e.g., structure.txt) that defines your project’s layout.
  2. Generate: Run the command in your terminal to generate the directories and files.
  3. Develop: Open your newly created project structure and start coding!

Example Structure File

my_project/
│── my_project/
│   │── __init__.py
│   │── main.py
│   │── utils.py
│── tests/
│── docs/
│── README.md
│── requirements.txt
│── LICENSE

Generated Project Structure

my_project/
│── my_project/
│   │── __init__.py
│   │── main.py
│   │── utils.py
│── tests/
│── docs/
│── README.md
│── requirements.txt
│── LICENSE

Development

Interested in contributing or modifying AutoStruct? Follow these steps to set up your development environment:

Clone the Repository:

git clone https://github.com/amandeepsingh29/autostruct.git
cd autostruct

Set Up a Virtual Environment: (optional)

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

Run Tests:

(When tests are added in the future, run them with your preferred test runner, e.g., pytest.)

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions, suggestions, or issues, please open an issue on GitHub or contact the project maintainer, Amandeep Singh.

🚀 Happy Coding!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autostruct_tool-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autostruct_tool-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file autostruct_tool-0.1.1.tar.gz.

File metadata

  • Download URL: autostruct_tool-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for autostruct_tool-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec5851a13feda2e9dd5fdeac489d602c12bb4f290580066993827ca6d822b9f1
MD5 8b2bc6dd33bf99e12af215364de4fefe
BLAKE2b-256 4ec04c4eebd7f1404ea3d6b171e12ee0ab5e02535bf41de59110895e66b6d335

See more details on using hashes here.

File details

Details for the file autostruct_tool-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autostruct_tool-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ea1dac42c53fadd0c2919203ed42facd202df27d07bdef91a412a704368782b
MD5 e0ccdf2cb4633623fb894c2ba814915f
BLAKE2b-256 f263e3a2dd2b98e56c0aefcd08a5752a4de2f5b3e320c93c3589f44c90bffffe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page