Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 436 Bytes

README.md

File metadata and controls

29 lines (21 loc) · 436 Bytes

lazyme

Lazy python recipes.

Install

pip install -U lazyme

Usage

$ cat test.txt 
This is a text block start
This is the end

And this is another
with more than one line
and another line.

$ python
>>> from lazyme import per_section
>>> list(per_section(open('test.txt')))
[['This is a text block start', 'This is the end'], ['And this is another', 'with more than one line', 'and another line.']]