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.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_pycatbox-1.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.1.tar.gz
Algorithm Hash digest
SHA256 901348c84fb063c5ab81a98008ef9e8af6c19cfd26cd7b1159f0b6637c1184d3
MD5 68a3e1cfd2ccc3a2641335bbb5646db8
BLAKE2b-256 35f77d424c5472d6041480ee8ad821f4a981c09a692db21882f00f069a7c4cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_pycatbox-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c56c06ac19d8411af8812ea9136f0f8b7a3a5386a7f17faa6bfbfec90e48d7f
MD5 3b03e67987a6824570fcbd077970166c
BLAKE2b-256 92ef3601ede07bf8d2b3cb94283c456feff4d7ed227042928d5c02c3f7cc287e

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