Skip to main content

Async version of pycatbox, a Python API wrapper for catbox.moe.

Project description

async_pycatbox

A simple Python library for uploading files to catbox.moe, and based off of cazqew's pycatbox, with the only significant change being that it's now supports asynchronous uploading.

API documentation https://catbox.moe/tools.php

Install the current version with PyPI:

pip install async_pycatbox

Or from Github:

https://github.com/challos/async_pycatbox

Example

from async_pycatbox import Uploader
import asyncio

uploader = Uploader()

async def main():
    upload = await uploader.upload('py', open('test.py', 'rb').read())
    print(upload)

asyncio.run(main())
# https://files.catbox.moe/bav6l3.py

Contributing

Bug reports and/or pull requests are welcome. I also copied most of this with minor changes/additions from cazqew's pycatbox (I was unable to make a pull/fork request due to being unable to find his Github page).

License

The module is available as open source under the terms of the Apache License, Version 2.0

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

async_pycatbox-1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

async_pycatbox-1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file async_pycatbox-1.1.tar.gz.

File metadata

  • Download URL: async_pycatbox-1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for async_pycatbox-1.1.tar.gz
Algorithm Hash digest
SHA256 99f1f19544f4bdfc93344fb33159ef1436a2ba4392c75faafaa846405f7e9b4e
MD5 580efe25ab6c24478495ef6645803c83
BLAKE2b-256 46787c5a7417b56c51306e4874e0b64e3724144aa39b7790a5d94bad4f02b8a7

See more details on using hashes here.

File details

Details for the file async_pycatbox-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for async_pycatbox-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cf9e505906365f24e5cdf014c749f99f660327234f0b41a4749b832c92f64d1
MD5 5a7df5168d3cb8a84955b600ef71d2e8
BLAKE2b-256 628be40116ca33cc15b1c6524e5b4bd1776201ab17526d253b12df0d036e3548

See more details on using hashes here.

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