smartpathlib 0.0.2
Cross-platform package for working with paths, files and folders.
License: BSD-3-Clause
Requires Python: >=3.6
Keywords: smartpathlib,path,file,folder,smartlegion

# smartpathlib

***

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/smartlegion/smartpathlib)](https://github.com/smartlegion/smartpathlib/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/smartpathlib?label=pypi%20downloads)](https://pypi.org/project/smartpathlib/)
[![GitHub top language](https://img.shields.io/github/languages/top/smartlegion/smartpathlib)](https://github.com/smartlegion/smartpathlib/)
[![GitHub](https://img.shields.io/github/license/smartlegion/smartpathlib?style=flat-square)](https://github.com/smartlegion/smartpathlib/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/smartpathlib)](https://pypi.org/project/smartpathlib)
[![PyPI - Format](https://img.shields.io/pypi/format/smartpathlib)](https://pypi.org/project/smartpathlib)
[![GitHub Repo stars](https://img.shields.io/github/stars/smartlegion/smartpathlib?style=social)](https://github.com/smartlegion/smartpathlib/)
[![GitHub watchers](https://img.shields.io/github/watchers/smartlegion/smartpathlib?style=social)](https://github.com/smartlegion/smartpathlib/)
[![GitHub forks](https://img.shields.io/github/forks/smartlegion/smartpathlib?style=social)](https://github.com/smartlegion/smartpathlib/)

***

## Help the project financially:

[<img src="https://img.shields.io/liberapay/patrons/smartlegion.svg?logo=liberapay">](https://liberapay.com/smartlegion/donate)
[![PayPal](https://img.shields.io/static/v1?label=PayPal&message=donate&color=green)](https://paypal.me/smartlegioner)
[![Yandex](https://img.shields.io/static/v1?label=Yandex&message=donate&color=yellow)](https://yoomoney.ru/to/4100115206129186)
[![Visa](https://img.shields.io/static/v1?label=Visa&message=4048-0250-0089-5923&color=blue)](https://yoomoney.ru/to/4100115206129186)
[![Donate](https://img.shields.io/static/v1?label=SmartLegion&message=donate&color=blue)](https://smartlegion.github.io/donate/)

- __Donate__: [https://smartlegion.github.io/donate/](https://smartlegion.github.io/donate/)
- __Yandex Money__: [https://yoomoney.ru/to/4100115206129186](https://yoomoney.ru/to/4100115206129186)
- __PayPal__: [https://paypal.me/smartlegioner](https://paypal.me/smartlegioner)
- __LiberaPay__: [https://liberapay.com/smartlegion/donate](https://liberapay.com/smartlegion/donate)
- __Visa__: 4048 0250 0089 5923

***

## Short description

___smartpathlib___ - Cross-platform package for working with paths, files and folders.

***

Author and developer: ___Aleksandr Suvorov (Smart Bear).___

[![mysmartlegion@ya.ru](https://img.shields.io/static/v1?label=email&message=mysmartlegion@ya.ru&color=blue)](mailto:mysmartlegion@ya.ru)
[![https://smartlegion.github.io/](https://img.shields.io/static/v1?label=Url:&message=smartlegion.github.io&color=blue)](https://smartlegion.github.io/)

***

## Supported:

- Linux: All.
- Windows: 7/8/10.
- Termux (Android).

***

## Requirements:

- [Python](https://python.org) 3.6+
  - [Download](https://python.org)

***

## What is news:

### ___smartpathlib v0.0.2___

- smartpathlib v0.0.2
- [shredi](https://github.com/smartlegion/shredi/) goes to use [smartpathlib](https://github.com/smartlegion/smartpathlib)

***

#### Warning!:
- All versions up to 0.1.0 are working,
but experimental.

***

## Description:

___smartpathlib___ - Cross-platform package for working with paths, files and folders.

***

## Help:

### Install and Use:

- `pip3 install smartpathlib`

```python
from smartpathlib.smartpath import PathManager
from smartpathlib.commons import len_iter

# Working with paths. Add, delete, get files, folders and their quantity.
path_man = PathManager()

numbers = (n for n in range(1000))
count = len_iter(numbers)

```

#### Run test:

- `pip3 install pytest`
- `pytest -v`

#### Tests coverage:
- `pip3 install pytest-cov`
- `pytest --cov --cov-report=html`
- open in browser


![Coverage Image](https://github.com/smartlegion/smartpathlib/raw/master/data/images/smartpathlib_cov.png)

***

## Links:

- ___Github___: [https://github.com/smartlegion/](https://github.com/smartlegion/)
- ___Url___: [https://smartlegion.github.io/](https://smartlegion.github.io/)
- ___PyPi___: [https://pypi.org/user/smartlegion/](https://pypi.org/user/smartlegion/)
- ___Donate___: [https://smartlegion.github.io/donate/](https://smartlegion.github.io/donate/)


***

## Disclaimer of liability:

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

***

## Information:

    =======================================================
    Copyright © 2021 Aleksandr Suvorov
    =======================================================