1
0
Fork 0
mirror of synced 2026-12-06 18:22:25 +00:00
No description
Find a file
2022-01-16 14:11:32 -05:00
.github/workflows fix dependencies && cleanup 2022-01-16 14:07:09 -05:00
evb re add setup.py for testing 2022-01-16 14:11:32 -05:00
.gitattributes Better Handling? 2021-08-25 18:42:20 -04:00
.gitignore Should all be ready? Causes 500s 2021-06-04 09:25:33 -04:00
LICENSE Initial commit 2021-06-03 19:31:00 -04:00
pyproject.toml Should all be ready? Causes 500s 2021-06-04 09:25:33 -04:00
README.md fix dependencies && cleanup 2022-01-16 14:07:09 -05:00
setup.cfg fix dependencies && cleanup 2022-01-16 14:07:09 -05:00
setup.py re add setup.py for testing 2022-01-16 14:11:32 -05:00

evb.py

Asynchronous wrapper for the EditVideoBot API https://pigeonburger.xyz/api/docs/

Example

import asyncio
from evb import AsyncEditVideoBotSession, EditResponse


async 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())