Skip to main content

Asynchronous wrapper for ShitpostAPI.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shitposts-0.1.1.tar.gz (15.3 kB view hashes)

Uploaded Source

Built Distribution

shitposts-0.1.1-py3-none-any.whl (15.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page