Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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*