shitposts

Asynchronous wrapper for ShitpostAPI.


Keywords
async, api, api-wrapper
License
GPL-3.0
Install
pip install shitposts==0.1.1

Documentation

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