Skip to main content

A simple Create Structure tool.

Project description

Create Structure Tool

Python License Version

About the Project

Create Structure is a Python tool designed to help developers quickly generate file and folder structures based on an outline provided in a text file. It simplifies the process of organizing projects, creating Python classes, and generating __init__.py files automatically.

With this tool, you can easily:

  • Generate a project structure with folders and files.
  • Automatically create Python class files with a basic class template.
  • Generate __init__.py files that import classes for easier module management.
  • Creating a setup.py file.
  • Creating a README.md file.
  • Creating a LICENSE file.

Features

  • Flexible Input: Provide a text file that outlines the structure of your project.
  • Automatic Class Creation: Automatically creates Python class templates in .py files.
  • Init File Generation: Automatically generates __init__.py files for importing modules.
  • Setup File Generation: Automatically generates setup.py file, The file is generated with ready-to-use content for installation.
  • Cross-Platform: Works on Windows, Linux, and macOS.

Installation

You can install the tool directly from source or by using pip.

From Source:

git clone https://github.com/hemaabokila/create_structure.git
cd create_structure
python install .

From PyPI (Coming Soon):

pip install create-struc

Usage

After installing the tool, you can run it directly from the command line.

Syntax:

ceartes <path_to_outline_file>

1- Example: Create a text file, e.g., structure.txt:

src/
    main.py
    utils.py
tests/
    test_main.py
    test_utils.py

2- Run the command:

ceartes structure.txt

3- The tool will generate the following structure:

├── src/
│   ├── main.py
│   ├── utils.py
│   └── __init__.py
├── tests/
│   ├── test_main.py
│   ├── test_utils.py
│   └── __init__.py
├── README.md
├── setup.py
└── LICENSE

Arguments

file (Required): Path to the outline text file that specifies the project structure.

Example Command:

ceartes my_structure.txt

How It Works

1- Reads the outline from a text file.

2- Creates directories and files based on the provided structure.

3- For Python files:

  • Adds a basic class template.
  • Generates init.py files for importing classes in submodules.

File Structure

If you clone or download the repository, here’s what the directory structure looks like:

create_structure/
├── structure/                # Core functionality of the tool   ├── main.py               # Main entry point of the tool   └── __init__.py
├── setup.py                  # Setup script for packaging
├── LICENSE                   # MIT License file
├── README.md                 # Documentation file
└── tests/                    # Unit tests for the tool

License

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

Author

Developed by Ibrahem abo kila.

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

create_struc-1.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

create_struc-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file create_struc-1.0.1.tar.gz.

File metadata

  • Download URL: create_struc-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for create_struc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a87f034d84555c9e81cc5bb1ebe7db0ef0ff768521e631cd2c735eb8b56f2492
MD5 a8c6e148a18db1d5053513817f2f1f93
BLAKE2b-256 acba1bc50bab1c804bc5d444f63011755aeaa4fcd237fd63694297eea2c861f7

See more details on using hashes here.

File details

Details for the file create_struc-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: create_struc-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for create_struc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40e0e015c8bae39d8495ccb3c5c7e2d4bfa639b4ece1138f6fbc865a95d41d2c
MD5 fdd9e93888aeca07771d2847085a5f98
BLAKE2b-256 4700e822ae5288843801a47565d4a71bbc5457f5ddd8a326013c8feb041a9192

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