Skip to main content

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 :

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.

Metadata

Release files for create-struc 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-struc 1.0.2
File Size Uploaded
create_struc-1.0.2.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for create-struc 1.0.2
File Interpreter ABI Platform
create_struc-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / create_struc-1.0.2.tar.gz

Download URL create_struc-1.0.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0ee8c67432458ac425c53ec314a499bc7214e88bd60c79464ba136cf0a9d0a8f
BLAKE2b-256 checksum
How to use checksums
ff0700d28a4807906fb4aac8a2ad8cb25b933bc518b6d425000b2bb51d3329a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.0

Release files / create_struc-1.0.2-py3-none-any.whl

Download URL create_struc-1.0.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82c91c24dad8d7a9fa7d2a16f99e97c42112fd8d80fdd8699c03a420d7bf3bcf
BLAKE2b-256 checksum
How to use checksums
f04ee4696b58eb93635e857462e6b58f90104f7709c2d5c89b4f7bd640872c50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page