semvec/pypi-packages huggingface dataset:
newchanic 1.0.2
Simulate a universe powered by Newton's mechanic
License: MIT

# Newchanic
This package allows you to easily develop simulators based on Newton's mechanic.  
See [here](http://www.ac-nice.fr/clea/lunap/html/MecaNewton/MecNewEnBref.html) (in french) to better understand it.  
Define laws, create particles & bind them to the simulator engine : they will evolute in a 2D graphical interface.   
You can zoom-in using the mouse's scroll and move in the window using arrow keys.
PyProbe 0.1.2
Extract metadata from video files using ffprobe or mediainfo
License: MIT
Requires Python: >=3
Keywords: ffprobe,mediainfo,parser,video

## Features
 
* Formatted data from ffprobe/mediainfo
* Fallback data in case ffprobe/mediainfo cannot get data
* Identical data structure
* Full compatability with Python 3

## Install
 
 ```
 pip install PyProbe
 ```

## Usage

```python
import pyprobe
parser = pyprobe.VideoFileParser(ffprobe="/usr/bin/ffprobe", includeMissing=True, rawMode=False)
data = parser.parseFfprobe(inputFile)
```

This code will return a dictionary of values (as described below).

* **includeMissing** Will remove values where ffprobe/mediainfo does not return data
* **rawMode** Will make each value the raw output from ffprobe/mediainfo, which will be a string (except resolution, which is a tuple of strings).


There are also two helper functions provided to create more nicely formatted data -

```python
>>> import pyprobe
>>> pyprobe.timeToTuple(12345.44)
(3, 25, 45, 440)
>> pyprobe.sizeStr(12345678.99)
'11.8 MB'
```

# Data format

```python
{
    "path": str,
    "bit_rate": int,
    "duration": float,
    "size": int,
    "videos": [
        {
            "aspect_ratio": str,
            "bit_rate": int,
            "codec": str,
            "format": str,
            "framerate": float,
            "pixel_format": str,
            "resolution": (
                int # Width,
                int # Height
            )
        }
    ],
    "audios": [
        {
            "bit_rate": int,
            "channel_count": int,
            "channel_layout": str,
            "codec": str,
            "format": str,
            "sample_rate": int # Hz
        }
    ],
    "subtitles": [
        {
            "codec": str,
            "language": str
        }
    ],
    "chapters": [
        {
            "title": str,
            "start": float,
            "end": float,
        }
    ]
}
```
semver-git-hook 1.0.5
Enforce semver management in git repositories
License: MIT
Keywords: utility,productivity,tool,versionning,git,semver

# Semver Git Hook

## Install

Works with python 3.6+

First, install the tool using python ecosystem :

```bash
pip install --user  semver-git-hook
```


## Use

Then set the hook in your current folder git repository :

```bash
semver-git-hook --init
```

That is all. Now on commit a release version type is asked interactively.

![Prompt wich is new version for package on commit](https://raw.githubusercontent.com/eregnier/semver-git-hook/master/sample-command.jpg)

![Interactively select new version](https://raw.githubusercontent.com/eregnier/semver-git-hook/master/sample-update.jpg)

On commit some version change will be saved in a **.version** file. It is automatically added to the current commit.

With this enabled you have your project version set in the `.version` file that it is possible to dynamically load to your dev environment versionning settings.

For exemple in python the `setup.py` can look like

```python
# setup.py
with open('.version') as f:
    version = f.read()

setup(
    #...
    version=version,
    #...
)
```

and javascript


```javascript
//That can be a version.js file that is triggered in .git/hooks/pre-commit
const f = require('fs')
const version = f.readFileSync('.version', 'utf-8')
const package = JSON.parse(f.readFileSync('package.json', 'utf-8'))
package.version = version
f.writeFileSync('package.json', JSON.stringify(package, null, 4))
```

## Options

It is possible to change ``.version`` file location by setting a prefix in it's path. The file will be located at `SEMVER_HOOK_PATH_PREFIX.version` where `SEMVER_HOOK_PATH_PREFIX` is an environment variable.
workfl 19.6.15.0
A lightweight markup language for simple workflow diagrams.
License: MIT

![PyPI](https://img.shields.io/pypi/v/workfl.svg)

# workfl

***Workf**low Markup **L**anguage*

## Introduction

workfl is a lightweight markup language for simple workflow diagrams. It's designed to be quick to write and easy to read.

Example:

```workfl
A
B
D

A
C
D
```

![Example](https://raw.githubusercontent.com/Dullage/workfl/master/docs/example.png)

You can try it out for yourself at [workfl.ws](https://workfl.ws).

The workfl python package can convert workfl markup into dictionaries of nodes and connections. There is also a method to export the workflow into [mermaid](https://mermaidjs.github.io/) syntax.

## Installation

`pip install workfl`

## Usage
```python
import workfl

markup = "A\nB"
flow = workfl.ws(markup)

print(flow.nodes)  # A dictionary of nodes
print(flow.connections)  # A dictionary of connections

mermaid = flow.to_mermaid()
print(mermaid)
```

By default `to_mermaid()` will render a chart flowing from Top to Bottom. This can be changed by declaring a `direction` e.g. `to_mermaid(direction="LR")` (Left to Right). There are 4 options:

| Option | Direction |
| -- | -- |
| TB | Top to Bottom (Default) |
| BT | Bottom to Top |
| LR | Left to Right |
| RL | Right to Left |

## Syntax

A full guide can be found here <https://workfl.ws/?help=true>.

## To Do

* Test scripts.
manhuagui 0.0.1
manhuagui.com comics downloader
License: MIT
Keywords: manhuagui,comics

==========
manhuagui
==========
manhuagui 漫画下载

|travis|
|pypi|
|license|

=====
Usage
=====
TODO：目前只实现了下载第 i 话

下载 别当欧尼酱了 第一话 https://www.manhuagui.com/comic/23552

.. code-block:: python

    manhuagui --id=23552 [--vol=1] # 默认只下载第一话

.. code-block:: python

    manhuagui --id=23552 --vol=1 # 下载第一话

.. code-block:: python

    manhuagui --id=23552 --vol=i # 下载第 i 话

.. code-block:: python

    manhuagui --id=23552 --vol=1,2,3,4 # 下载（1,2,3,4）前 4 话

注意：不要作死下载过多话，虽然提供下载所有话的命令，但这样容易被封 ip

.. code-block:: python

    manhuagui --id=23552 --vol=all # 下载所有话

====
webp
====

webp 是 Google 的图像存储格式，Google Chrome 等浏览器可以识别和浏览。

TODO feature: 漫画图片文件夹下自动生成了 index.html 模板，可以直接打开，里面实现了简单的图片浏览器。

===============
Acknowledgement
===============

Thanks to [RicterZ@Github](https://github.com/RicterZ)'s code in [nhentai](https://github.com/RicterZ/nhentai), his code is very pretty and inspiring, and, very useful.

And thanks to this repository [manhuagui-dl](https://github.com/ysc3839/manhuagui-dl)

.. |travis| image:: https://travis-ci.org/KellyHwong/manhuagui.svg?branch=master
    :target: https://travis-ci.org/KellyHwong/manhuagui

.. |pypi| image:: https://img.shields.io/pypi/dm/manhuagui.svg
    :target: https://pypi.org/project/manhuagui/

.. |license| image:: https://img.shields.io/github/license/kellyhwong/manhuagui.svg
    :target: https://github.com/KellyHwong/manhuagui/blob/master/LICENSE