semvec/pypi-packages huggingface dataset:
jlvandenhout-automaton 0.1.0
This package provides a simple automaton implementation for Python.

## Automaton

This package provides a simple automaton implementation for Python.

---
- [1. Installation](#1-installation)
  - [1.1. Using pip](#11-using-pip)
  - [1.2. From source](#12-from-source)
- [2. Basic usage](#2-basic-usage)
- [3. Support](#3-support)
- [4. Contributing](#4-contributing)
- [5. License](#5-license)
- [6. Changelog](#6-changelog)
---

### 1. Installation
#### 1.1. Using pip
Simply run the usual installation command for pip:

```
pip install jlvandenhout-automaton
```

#### 1.2. From source
To install from the latest source code, clone this repository and install from the repository:

```
git clone https://gitlab.com/jlvandenhout/automaton.git
cd automaton
pip install .
```

### 2. Basic usage
```python
from random import choices

from jlvandenhout.automaton import Automaton
from jlvandenhout.graph import Graph


graph = Graph()
graph.edges.set("ice", "water", "heat")
graph.edges.set("water", "vapor", "heat")
graph.edges.set("vapor", "vapor", "heat")
graph.edges.set("vapor", "water", "cool")
graph.edges.set("water", "ice", "cool")
graph.edges.set("ice", "ice", "cool")

def follow(edge, symbol=None):
    return symbol == edge.get()

automaton = Automaton(graph, choices(list(graph.nodes)), graph.nodes, follow)

print("We start with", automaton.nodes.pop())
for symbol in choices(list(automaton.symbols), k=10):
    automaton.update(symbol)
    print(f"After {symbol}ing we have", automaton.nodes.pop())
```

### 3. Support
If you have any questions, suggestions or found a bug, please open an issue in [the issue tracker](https://gitlab.com/jlvandenhout/automaton/issues).

### 4. Contributing
Refer to [CONTRIBUTING](https://gitlab.com/jlvandenhout/automaton/blob/master/CONTRIBUTING.md).

### 5. License
Refer to [GNU General Public License v3 (GPLv3)](https://choosealicense.com/licenses/gpl-3.0/).

### 6. Changelog
Refer to [CHANGELOG](https://gitlab.com/jlvandenhout/automaton/blob/master/CHANGELOG.md).
xzc-tools 0.0.9
A small example package

# tools-xzc

### 该工具是平时写代码过程中我经常用懂得一些功能，尤其是其中的函数装饰器以及错误处理，重命名文件等，函数的说明在代码中都有说明。代码还存在可以优化以及隐藏问题的地方，有问题可以随时联系我。(15510726991@163.com)
yt-lib 0.0.1
Young YouTube library

yt_lib: Young YouTube library
==========================
yt_lib is the unofficial library for YouTube, which supports operations with likes, subscriptions, comments.
```
>>> from yt_lib import states
>>> from yt_lib import YoutubeClient
>>> client = YoutubeClient(cookies=cookies)
>>> client.init_session()
>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)
<ActResult.SUCCESS: 1>
```
Feature Support
---------------
The library begins to take its first steps, so the list is small.
- Rates (like, dislikes and take back)
- Subscriptions (and unsubscribes)
- Writing comments

Installation
================================
To install yt_lib, simply run this simple command in your terminal of choice:

    $ pip install yt_lib


yt_lib is actively developed on GitHub, where the code is [always available](https://github.com/hairygeek/yt_lib).

You can either clone the public repository:

    $ git clone https://github.com/hairygeek/yt_lib.git

Quickstart
================================

First make sure thar yt_lib is installed.

Let's get started with some simple examples.

Subscribes
----------
Begin by importing the ``yt_lib`` and ``yt_lib.states`` modules:

```
>>> import yt_lib
>>> from yt_lib import states
```

Now let's create YouTubeClient, this requires youtube cookies. Cookies required to work: apisid,
consent, hsid, login_info, pref, sapisid, sid, sidcc, ssid, visitor_info1_live. Imagine that we already have them:

```
>>> client = YoutubeClient(cookies=cookies)
```

Now let's initialize the session. Nothing will work without it:

```
>>> client.init_session()
```

Now we can subscribe to the channel. for this we need a type of subscription (unsubscribe / subscription), we will take it from the module ``states``:

```
>>> client.subscribe('UCtinbF-Q-fVthA0qrFQTgXQ', states.SubscribeAction.SUBSCRIBE)
    <ActResult.SUCCESS: 1>
```

We got an response. In our case, this is SUCCESS, which means that the subscription was successful.

Rates
--------------------
In the same way we can like:

```
>>> client.rate('V6Y-ahQFQDA', states.LikeAction.LIKE)
    <ActResult.SUCCESS: 1>
```

or dislike:

```
>>> client.rate('V6Y-ahQFQDA', states.LikeAction.DISLIKE)
    <ActResult.SUCCESS: 1>
```

or take action back:

```
>>> client.rate('V6Y-ahQFQDA', states.LikeAction.TAKE_BACK)
    <ActResult.SUCCESS: 1>
```

That's not all, but l'm too lazy to describe the rest. See the description of methods.