semvec/pypi-packages huggingface dataset:
prodos 0.0.1
Lightweight glob extensions with extended path joining.
License: MIT License
Keywords: glob product os.path.join join file sort make

# prodos
`os` and `glob` extensions with advanced path joining.


## Install

```bash
pip install prodos
```

## Usage

```python
from prodos import prodglob, pathprod, prodmake

print('pathprod: creating a product of path items.')
for f in pathprod('base', ('a', 'b'), 'something', ('c', 'd')):
    print(f)
print()

print('prodglob: globbing over the product of path items.')
for f in prodglob('base', ('a', 'b'), 'something', ('c', 'd')):
    print(f)
fs = pathprod('base', ('a', 'b'), 'something', ('c', 'd'))
print('how many files exist?', sum(os.path.exists(f) for f in fs))
print()

print('prodmake: making directories from the product of path items.')
fs = prodmake('base', ('a', 'b'), 'something', ('c', 'd'))
print('how many files exist?', sum(os.path.exists(f) for f in fs))
print()

print('prodglob: globbing over the product of path items.')
for f in prodglob('base', ('a', 'b'), 'something', ('c', 'd')):
    print(f)
```

Outputs:
```
pathprod: creating a product of path items.
base/a/something/c
base/a/something/d
base/b/something/c
base/b/something/d

prodglob: globbing over the product of path items.
how many files exist? 0

prodmake: making directories from the product of path items.
how many files exist? 4

prodglob: globbing over the product of path items.
base/a/something/c
base/a/something/d
base/b/something/c
base/b/something/d
```
os-docid 0.5.7
DocID for fun.
License: MIT License
Requires Python: >=2.7

# os-docid

[![Build Status](https://www.travis-ci.org/cfhamlet/os-docid.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-docid)
[![codecov](https://codecov.io/gh/cfhamlet/os-docid/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-docid)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-docid.svg)](https://pypi.python.org/pypi/os-docid)
[![PyPI](https://img.shields.io/pypi/v/os-docid.svg)](https://pypi.python.org/pypi/os-docid)

DocID for fun.

# Install

  `$ pip install os-docid`

# Usage

  * API

    ```
    >>> from os_docid import docid
  
    >>> docid('http://www.google.com/')
    1d5920f4b44b27a8-ed646a3334ca891f-ff90821feeb2b02a33a6f9fc8e5f3fcd
  
    >>> docid('1d5920f4b44b27a8-ed646a3334ca891f-ff90821feeb2b02a33a6f9fc8e5f3fcd')
    1d5920f4b44b27a8-ed646a3334ca891f-ff90821feeb2b02a33a6f9fc8e5f3fcd
  
    >>> docid('1d5920f4b44b27a8ed646a3334ca891fff90821feeb2b02a33a6f9fc8e5f3fcd')
    1d5920f4b44b27a8-ed646a3334ca891f-ff90821feeb2b02a33a6f9fc8e5f3fcd
  
    >>> docid('abc')  
    NotImplementedError: Not supported data format

    ```

  * Command line

    ```
    $ os-docid -h
    usage: os-docid [-h] [-v] [-f FILES [FILES ...]]

    Generate DocID.

    optional arguments:
      -h, --help            show this help message and exit
      -v, --version         show program's version number and exit
      -f FILES [FILES ...], --files FILES [FILES ...]
                            files to be process (default: stdin)
    ```

# Unit Tests
  `$ tox`

# License
  MIT licensed.