semvec/pypi-packages huggingface dataset:
splits 0.1.9
A library for dealing with splittable files
License: MIT
Keywords: split

# Splits

Splits is a library for reading and writing files in splittable chunks.
It works on any file-like object.
There is built in support for writing and reading split files from S3.
It also has built in support for gzip.

## Installation

```
  $ pip install splits
```

## Usage

```python
from splits import SplitWriter, SplitReader
from splits.s3 import S3File, GzipS3File

if __name__ == '__main__':

    with SplitWriter('s3://test-bucket/test-multifile',
                     suffix='.txt', lines_per_file=100,
                     fileClass=GzipS3File) as w:
        w.writelines([str(x) for x in range(0, 1000)])

    with SplitReader('s3://test-bucket/test-multifile',
                     fileClass=GzipS3File) as r:
        for line in r:
            print line

```

## Tests

```
 $ pip install tox
```

To run the tests in both Python2 and Python3 run,

```
 $ tox
```
asciifolder 0.1.0
pretty print folder structure to cli
License: MIT
Keywords: ascii folder structure

## asciifolder
pretty print folder structure to cli

```python
>>> asciifolder "Python/Lib/concurent"

>>>
concurrent/
â”œâ”€â”€ __pycache__/
â”‚   â””â”€â”€ __init__.cpython-36.pyc
â”œâ”€â”€ futures/
â”‚   â”œâ”€â”€ __pycache__/
â”‚   â”‚   â”œâ”€â”€ __init__.cpython-36.pyc
â”‚   â”‚   â”œâ”€â”€ _base.cpython-36.pyc
â”‚   â”‚   â”œâ”€â”€ process.cpython-36.pyc
â”‚   â”‚   â””â”€â”€ thread.cpython-36.pyc
â”‚   â”œâ”€â”€ __init__.py
â”‚   â”œâ”€â”€ _base.py
â”‚   â”œâ”€â”€ process.py
â”‚   â””â”€â”€ thread.py
â””â”€â”€ __init__.py
```