semvec/pypi-packages huggingface dataset:
sshexpect 1.0.6
pexpect for asyncssh and paramiko
License: MIT

# sshexpect

## Overview

This library adapts `pexpect` to work with `asyncssh` and `paramiko`

See [wiki](https://github.com/amadxx/sshexpect/wiki) for more information.

## asyncssh example

```python
import asyncssh
import sshexpect

connection = await asyncssh.connect(...)

child = await sshexpect.spawn(connection, "bash")

await child.expect(...)
print(child.before)
child.sendline(...)

child.terminate()
```

## paramiko example

```python
import paramiko
import sshexpect

connection = paramiko.SSHClient()
connection.connect(...)

child = sshexpect.spawn(connection, "bash")

child.expect(...)
print(child.before)
child.sendline(...)

child.terminate()
```

## Installation 
```shell
pip install sshexpect
```

## License

The MIT License (MIT)

Copyright (c) 2022 Dmytro Pavliuk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
datek-async-fsm 0.2.0
Asynchronous Finite State Machine
License: MIT
Requires Python: >=3.9,<4.0

[![codecov](https://codecov.io/gh/DAtek/datek-async-fsm/branch/master/graph/badge.svg?token=4OHS9GMM5D)](https://codecov.io/gh/DAtek/datek-async-fsm)
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://github.com/psf/black/blob/main/LICENSE"><img alt="License: MIT" src="https://black.readthedocs.io/en/stable/_static/license.svg"></a>

# Asynchronous Finite State Machine
For an example see [`tests/example.py`](https://gitlab.com/DAtek/datek-async-fsm/-/blob/master/tests/example.py)
niconico-dl 2.2.8
ニコニコ動画ダウンローダー NicoNico Video Downloader
License: MIT
Keywords: niconico video download

![PyPI](https://img.shields.io/pypi/v/niconico-dl) ![PyPI - Downloads](https://img.shields.io/pypi/dm/niconico_dl)
# niconico_dl
ニコニコ動画にある動画をダウンロードするためのPython用のライブラリです。  

**警告！**  
このniconico_dlは開発が停止して、アップデートもこれからありません。  
代わりに[こちら](https://github.com/tasuren/niconico.py)を使用してください。

リファレンス：https://tasuren.github.io/niconico_dl/  
Github：https://github.com/tasuren/niconico_dl/

## Install
`pip install niconico_dl`

## Examples
### Normal
```python
url = "https://www.nicovideo.jp/watch/sm38533566"

with niconico_dl.NicoNicoVideo(url, log=True) as nico:
    data = nico.get_info()
    nico.download(data["video"]["title"] + ".mp4")

print("Downloaded!")
```
### Async
```python
async def start_async():
    url = "https://www.nicovideo.jp/watch/sm9664372"
    async with niconico_dl.NicoNicoVideoAsync(url, log=True) as nico:
        data = await nico.get_info()
        await nico.download(data["video"]["title"] + ".mp4")
    print("Downloaded!")


asyncio.run(start_async())
```
### Command Line
使用方法：`niconico_dl [URL]`  
ダウンロードした動画は`output.mp4`という名前で実行したディレクトリに保存されます。

## Notes
もしDiscordのボイスチャットにニコニコ動画を流したい人は`NicoNicoVideoAsync.download`ではなく`NicoNicoVideoAsync.get_download_link`を使用して取得したダウンロードリンクで流すことを推奨します。  
`download`は動画をダウンロードするため時間がかかります。
なので`get_download_link`でダウンロードリンクを取得してそれを使い直接流すのを推奨します。  
注意：`close`をお忘れなく、詳細はリファレンスを見てください。