Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeman99/pyless
Page the output of anything using less.
https://github.com/codeman99/pyless
Last synced: about 1 month ago
JSON representation
Page the output of anything using less.
- Host: GitHub
- URL: https://github.com/codeman99/pyless
- Owner: CodeMan99
- Created: 2015-01-01T02:46:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-02T04:44:31.000Z (almost 10 years ago)
- Last Synced: 2023-08-09T21:48:50.371Z (over 1 year ago)
- Language: Python
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pyless
======Page the output of anything using `less`.
Example
-------This will create a pager, and on exit send its own content to `less`.
```python
>>> from pyless import Pager
>>> with Pager() as p:
... print("Hello", file=p)
```This will create a pager that sets itself to sys.stdout.
```python
>>> from pyless import StdoutPager
>>> with StdoutPager():
... print("Hello")
```###Lisense###
[LGPL v3](http://www.gnu.org/licenses/lgpl-3.0.txt)*Disclaimer: Only tested on python 3.4*