Skip to main content

Split and Combine python bare code and docstrings

Project description

🐍✂️ Segmented Docstring: Split Your Python, Not Your Hairs!

PyPI version License: MIT Python Versions

Ever felt like your Python files were getting too chunky? Tired of scrolling through endless docstrings to find that one line of code? Say hello to Segmented Docstring, the tool that lets you have your cake and eat it too!

🎭 What's This Sorcery?

Segmented Docstring is a magical Python tool that:

  1. 🔪 Slices your Python files into two delicious pieces: bare code and docstrings
  2. 🧙‍♂️ Conjures them back together whenever you need
  3. 🎩 Does it all with style and panache!

🚀 Quick Start

pip install segmented-docstring

Now you're ready to split some Python!

segmented-docstring split your_chunky_file.py

Voila! You now have your_chunky_file.barecode.py and your_chunky_file.docstring.py.

Missing those docstrings? No problem!

segmented-docstring combine your_directory

And just like that, your files are whole again. It's like magic, but real!

🎨 Features

  • Split with Precision: Separate your code and docstrings faster than a ninja chopping vegetables.
  • Combine with Elegance: Merge your files back together smoother than a well-aged whiskey.
  • CLI that Speaks Your Language: Our command-line interface is so friendly, it might ask you out for coffee.
  • Configurable: Tweak it, tune it, make it sing your favorite song.

🛠 Installation

pip install segmented-docstring

Or if you're feeling adventurous:

git clone https://github.com/robin-collins/segmented_docstring.git
cd segmented_docstring
pip install -e .

📚 Documentation

For those who love to read (we know you're out there!), check out our full documentation.

🤝 Contributing

Found a bug? Want to add a feature that turns code into haiku? We're all ears! Check out our contributing guidelines and join the fun!

📜 License

This project is licensed under the MIT License - see the LICENSE file for details. It's so permissive, you could probably use it to open a lemonade stand.

🎉 Acknowledgments

  • Coffee ☕, for making this project possible
  • Python 🐍, for being awesome
  • You 👉, for reading this far!

Remember, with great power comes great responsibility. Use Segmented Docstring wisely, and may your code always be clean and your docstrings always informative!

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

segmented_docstring-0.4.29.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

segmented_docstring-0.4.29-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file segmented_docstring-0.4.29.tar.gz.

File metadata

  • Download URL: segmented_docstring-0.4.29.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for segmented_docstring-0.4.29.tar.gz
Algorithm Hash digest
SHA256 d1eed62550611110f2fb4cd9cff849e46b8b8d4ccb9503f4e1bcb8e466f385ea
MD5 34ab783ccfe93ca8e0ceecec57fc4aa8
BLAKE2b-256 cc683b38861f6df6a40b6c2140155f703118bbb923ea2120259ca0043d4ed028

See more details on using hashes here.

File details

Details for the file segmented_docstring-0.4.29-py3-none-any.whl.

File metadata

File hashes

Hashes for segmented_docstring-0.4.29-py3-none-any.whl
Algorithm Hash digest
SHA256 9d6241ef2e06c43a69155eb925419afd6e326b4cb383300407c89367423ea204
MD5 dfeb781f2c9b23a1974e277a08a41950
BLAKE2b-256 aa64008b722c71585c023238478d99f461123c66e3aaaf7e751636e4c4908b1d

See more details on using hashes here.

Supported by

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