Split and Combine python bare code and docstrings
Project description
🐍✂️ Segmented Docstring: Split Your Python, Not Your Hairs!
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:
- 🔪 Slices your Python files into two delicious pieces: bare code and docstrings
- 🧙♂️ Conjures them back together whenever you need
- 🎩 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file segmented_docstring-0.4.25.tar.gz
.
File metadata
- Download URL: segmented_docstring-0.4.25.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a368133eec44a4bb88e4b11c050cc3b83bb79716ad6c68210e936e55be5a6d04 |
|
MD5 | e8afeb9a0d3e783dc25f6762ef99ee0d |
|
BLAKE2b-256 | da060f6d34e16b50e5e2919aad6085518901b691548e71c6728f943b74fdc5ce |
File details
Details for the file segmented_docstring-0.4.25-py3-none-any.whl
.
File metadata
- Download URL: segmented_docstring-0.4.25-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80150c03d1edf702b01e271b0351ba9bc56e86b74537fdcb4f27063ae3a9f4f8 |
|
MD5 | a8ee45cbae3131e82818486de59a9e9d |
|
BLAKE2b-256 | 8affae7a4203b37a28399a94b46f08ef93714327ada244ed7522b42633b2d659 |