Are you tired of wrapping everything in parentheses for quick and dirty prototyping? Annoyed by those pesky prefix prints that get in the way of your workflow? If you're still here, congratulations! You're in for a treat with quicktail operators.
Quicktail operators are here to make your Python coding experience smoother and more efficient. They are designed for those times when printing is an afterthought and you just want to get things done without cluttering your code.
- Tailprint Operator: Easily print the result of an expression at the end of a line, without the need for parentheses.
Useful when you want a quick result without the hassle of wrapping everything in print statements.
2 + 2 | tailprint # printed: 4
from quicktail import tailprint
# Instead of:
# pprint(json.dumps(function(some_class.raw_data())),width=3)
json.dumps(function(some_class.raw_data())) | tailprint(width=3)
# Get immediate formatting without interrupting your code flow!
```python
### Define Your Own End of Line Operator
With Quicktail Operators, you can define your custom end-of-line operator to fit your needs:
```python
toFile = TailOp(file.write)
"username" | toFilepip install quicktailContributions are welcome! If you have any ideas, suggestions, or bug reports, feel free to open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.