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.33.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: segmented_docstring-0.4.33.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.33.tar.gz
Algorithm Hash digest
SHA256 5143e7f7647e6df02cbcb4eef1ef25aee728383a4fe4e5bb8fa67b782f1c9d61
MD5 573961aa3d783b37085a4303c7653ba4
BLAKE2b-256 74945117a1f5809340d970750dd71d323b248ac70bb7a94dbda3d498a40da8e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for segmented_docstring-0.4.33-py3-none-any.whl
Algorithm Hash digest
SHA256 3017be5a3c1ad298ec13762b8dabf43e1d8dec1f83c9a7a7134125157c5549d7
MD5 ff3f8deb03ae4439b784dec8040bcc59
BLAKE2b-256 93c2e7200eba5ea777b50b3c5ff0e393483bb1892b5eba3a7cdf73583feaca6a

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