Text Blob and Object Dumper
bod
, short for Blob and Object Dumper, is a Python module designed to help with analyzing, dumping, and handling
text blobs and objects (HTML/XML/JSON - for now!)
- Quick function, just import and throw data at the import.
- Options for customizing output/etc.
Install the package via pip:
pip install bod
Here's a quick example to get started:
import bod
import requests
import logging
resp = requests.get("https://www.google.com")
bod(resp)
# prints formatted html response
bod(resp, output=logging.warning)
# same text, now sent through logging.warning instead of print.
my_var = bod(resp, output=None)
# put output in my_var instead of printing.
bod.detailed(resp)
# headers and request/response info printed.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature/fix.
- Submit a pull request with a detailed description of the changes.
MIT License.
Stay tuned for more updates and features!