Metadata-Version: 2.1
Name: iytdl
Version: 0.3.1
Summary: Asynchronous Standalone Inline YouTube-DL Module
Home-page: https://github.com/iytdl/iytdl
License: GPLv3
Keywords: iytdl,package
Author: Leorio Paradinight
Author-email: 62891774+code-rgb@users.noreply.github.com
Requires-Python: >=3.8,<4
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: License :: Other/Proprietary License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Pillow (>=8.3.1,<9.0.0)
Requires-Dist: Pyrogram (>=1.2.9,<2.0.0)
Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
Requires-Dist: aiosqlite (>=0.17.0,<0.18.0)
Requires-Dist: hachoir (>=3.1.2,<4.0.0)
Requires-Dist: html-telegraph-poster (>=0.4.0,<0.5.0)
Requires-Dist: mutagen (>=1.45.1,<2.0.0)
Requires-Dist: youtube-search-python (==1.4.6)
Requires-Dist: youtube_dl (>=2021.6.6,<2022.0.0)
Project-URL: Repository, https://github.com/iytdl/iytdl
Description-Content-Type: text/markdown

<p align="center">
<img src="https://i.imgur.com/Q94CDKC.png" width=250px>

# iYTDL

<a href="https://github.com/iytdl/iytdl/blob/main/LICENSE"><img alt="License: GPLv3" src="https://img.shields.io/badge/License-GPLv3-blue.svg"></a>
<a href="https://github.com/iytdl/iytdl/actions"><img alt="Actions Status" src="https://github.com/iytdl/iytdl/actions/workflows/pypi-publish.yaml/badge.svg"></a>
<a href="https://pypi.org/project/iytdl/"><img alt="PyPI" src="https://img.shields.io/pypi/v/iytdl"></a>
<a href="https://pepy.tech/project/iytdl"><img alt="Downloads" src="https://pepy.tech/badge/iytdl"></a>
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>

</p>

<h2 align="center"> Asynchronous Standalone Inline YouTube-DL Module</h2>

## ⬇️ Installing

> Install

```bash
pip3 install iytdl
```

> Upgrade

```bash
pip3 install -U iytdl
```

## ⭐️ Features

- Fully Asynchronous
- Fast and Memory Efficient (uses Aiosqlite for Caching)
- Uses search query based sha1 hashes to store results to avoid storing duplicate data
- Supports Context Manager
- [Supported Sites](https://ytdl-org.github.io/youtube-dl/supportedsites.html)

## Requirements

- [Python](https://www.python.org/) >=3.8,<4
- [Pyrogram](https://docs.pyrogram.org/) based Bot
- [FFmpeg](http://ffmpeg.org/)

## Supported Callbacks

- Back and Next

```python
r"^yt_(back|next)\|(?P<key>[\w-]{5,11})\|(?P<pg>\d+)$"
```

- List View

```python
r"^yt_listall\|(?P<key>[\w-]{5,11})$"
```

- Extract Info

```python
r"^yt_extract_info\|(?P<key>[\w-]{5,11})$"
```

- Download

```python
r"yt_(?P<mode>gen|dl)\|(?P<key>[\w-]+)\|(?P<choice>[\w-]+)\|(?P<dl_type>a|v)$"
```

- Cancel

```python
r"^yt_cancel\|(?P<process_id>[\w\.]+)$"
```

## Usage:

### Example Plugin

### [iytdl_example.py](https://github.com/iytdl/iytdl/blob/master/example/iytdl_example.py)

