1
0
Fork 0
mirror of synced 2026-12-06 18:42:25 +00:00
No description
Find a file
Parker Wahle 983e432811
Bump
2021-06-18 10:11:32 -04:00
.github/workflows Initial Commit 2021-06-08 14:41:25 -04:00
shitposts Bump 2021-06-18 10:11:32 -04:00
.gitignore Initial Commit 2021-06-08 14:41:25 -04:00
LICENSE Initial Commit 2021-06-08 14:41:25 -04:00
pyproject.toml Initial Commit 2021-06-08 14:41:25 -04:00
README.md Update README.md 2021-06-10 17:29:39 -04:00
setup.cfg Extra Endpoint 2021-06-09 11:01:25 -04:00

shitposts

Asynchronous wrapper for ShitpostAPI.

Example

import asyncio
from shitposts import AsyncShitpostingSession


async def main():
    with open("input.mp4", "rb") as input_media:
        input_bytes = input_media.read()

    async with AsyncShitpostingSession() as session:
        output_bytes = await session.edit(input_bytes, "video/mp4", frame={"bottom": "Text"})

    with open("output.mp4", "xb") as output_media:
        output_media.write(output_bytes)

asyncio.run(main())