Skip to main content

A script to output the directory structure of a Python project.

Project description

Easy Project Structure

Easy Project Structure is a handy Python package that makes it super easy to generate and view the folder layout of your Python projects right from your terminal. It's perfect for when you want to see how your project is organized, and it's also great for documentation, planning, or just sharing your project's structure with others.

Features

  • View Project Structure: Get a clear, simple text representation of all the folders and files in your project.
  • Choose How Deep You Go: Set how many folder levels you want to see.
  • Skip Over Common Files: It automatically ignores files like build artifacts and temp files (just like a .gitignore would).
  • Easy to Use: Just run the getprojectstructure command to view your project layout.
  • Check Out Subfolders: Want to see what's inside subfolders? Just point the tool to the path you need.

Table of Contents

Installation

You can quickly install Easy Project Structure using pip:

pip install git+https://github.com/seregatipich/easyprojectstructure.git

This will grab the package and set up any basic requirements you need.

Usage

Here's how you can use Easy Project Structure to take a look at your project's folder layout.

Basic Usage

Want to see the structure of your current directory? Just type:

getprojectstructure

Example Output:

your_project/
    setup.py
    README.md
    src/
        __init__.py
        main.py
    tests/
        test_main.py

Specify a Directory

To view the structure of a different directory, just provide the path:

getprojectstructure path/to/your/directory

Example:

getprojectstruct src/

Example Output:

src/
    __init__.py
    module1.py
    module2.py

Help Command

Need some help or want to see more options? Just run:

getprojectstructure -h

Output:

usage: getprojectstructure [-h] [path]

Outputs the directory structure of the given path.

positional arguments:
  path        Relative path to the project root. Defaults to current directory.

optional arguments:
  -h, --help  show this help message and exit

Dependencies

This tool uses Python's built-in libraries, so there are no extra packages to install.

Running Tests

If you want to make sure everything is working fine, you can run the included unit tests. Just go to the root folder of the project and use this command:

python -m unittest discover tests

It will run all the tests and make sure everything's running smoothly.

Contributing

We'd love your help to make Easy Project Structure even better! If you'd like to contribute:

  1. Fork the repo.
  2. Create a new branch for your feature: git checkout -b feature/YourFeature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to your branch: git push origin feature/YourFeature.
  5. Open a pull request and we'll review it.

License

This package is available under the MIT License, so feel free to use, modify, and share it as you see fit.

Contact

If you have any questions or run into any issues, don't hesitate to reach out:

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

easyprojectstructure-1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

easyprojectstructure-1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file easyprojectstructure-1.0.tar.gz.

File metadata

  • Download URL: easyprojectstructure-1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for easyprojectstructure-1.0.tar.gz
Algorithm Hash digest
SHA256 d8b9cbc55c85ebd1080c2e259e9e05fc9b0804e25e3eef0b48cd582a4bc8158d
MD5 8c600b1a889f84b4eb92eea0a5c23297
BLAKE2b-256 99ee35cd123f64b8d0004fe18b75adadf4bfe9baa2af5dc3dc63bf3f71ec4b2b

See more details on using hashes here.

File details

Details for the file easyprojectstructure-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for easyprojectstructure-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1d0208034e3ac73f1e6a75138d261652a0a2f365beddec2667b53346dd3c023
MD5 2d3bbbea83d793c2f33b4ba6a4cbe624
BLAKE2b-256 09bd003e0a07bcb243034cf43b99a9d7b5a1315eb231ddb2889d6a4b7de4baa2

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