https://github.com/regulad/evb.py
Asynchronous wrapper for the EditVideoBot API https://pigeonburger.xyz/api/docs/
https://github.com/regulad/evb.py
api api-wrapper edit-videos
Last synced: 3 months ago
JSON representation
Asynchronous wrapper for the EditVideoBot API https://pigeonburger.xyz/api/docs/
- Host: GitHub
- URL: https://github.com/regulad/evb.py
- Owner: regulad
- License: gpl-3.0
- Created: 2021-06-03T23:30:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T19:11:44.000Z (over 3 years ago)
- Last Synced: 2025-01-23T01:17:53.131Z (5 months ago)
- Topics: api, api-wrapper, edit-videos
- Language: Python
- Homepage:
- Size: 214 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# evb.py
Asynchronous wrapper for the EditVideoBot API https://pigeonburger.xyz/api/docs/
### Example
```python
import asyncio
from evb import AsyncEditVideoBotSession, EditResponseasync def main():
with open("input.mp4", "rb") as input_file:
input_bytes = input_file.read()async with AsyncEditVideoBotSession.from_api_key("your_api_key") as evb_session:
output_bytes: EditResponse = await evb_session.edit(input_bytes, "tt=smell")with open("output.mp4", "xb") as output_media:
output_media.write(await output_bytes.download())asyncio.run(main())
```