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 easyprojectstructure

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.1.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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for easyprojectstructure-1.0.1.tar.gz
Algorithm Hash digest
SHA256 01d5fae066f82bb2ec4331c8eb04c9b7a942d35b83eb2f48563dd9feaafb2247
MD5 05b8a3eda08d62703e375951e78aa163
BLAKE2b-256 3d4977f3111c3641903100ea28e525b166043f2d3899547e3b432c7f674ffdc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easyprojectstructure-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1411fc93bef73bb9408c296b06ea7e7d876e7332c280f8d5f5e9706187773800
MD5 b600cdf6d37c5a667f29d908782db195
BLAKE2b-256 b9d2a5aa9367f0f01b52e8d1f16900825fe679152f831709cd36e59123d02a6a

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