Metadata-Version: 2.1
Name: y2mate
Version: 1.0.0
Summary: An unofficial API wrapper for Y2Mate.com
Home-page: https://github.com/zrekryu/y2mate
Author: Zrekryu
Author-email: zrekryu@gmail.com
Keywords: y2mate,y2mate-api,youtube
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: httpx

An unofficial Python API wrapper for [Y2Mate.com](https://y2mate.com)

## Features

- Fetch video metadata
- Get download links for videos in different formats and qualities
- Search for videos on Y2Mate

## Installation
```bash
pip install y2mate
```

## Example
```py
import asyncio

from y2mate import Y2MateClient

client = Y2MateClient()

async def main() -> None:
    # Search for videos
    search_result = await client.search("The Girl I Like Forgot Her Glasses OP")
    print(search_result)
    
    # Get video metadata from url
    video_metadata = await client.from_url("https://youtu.be/mpWnhkMLIu4?feature=shared")
    print(video_metadata)
    
    # Get video download info with download link
    download_info = await client.get_download_info(video_metadata.video_id, video_metadata.video_links[0].key)
    print(download_info)

asyncio.run(main())
```
