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

Uploaded Source

Built Distribution

async_pycatbox-1.1.3-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for async_pycatbox-1.1.3.tar.gz
Algorithm Hash digest
SHA256 c0f0926d7e821cf19a0bdf0f2d828bd105193f7027d1f60da7b7df43f2da024b
MD5 e936eb59dda13666d1fb34e80ab6ae23
BLAKE2b-256 79520e3e838e14a0049a33cfac3e04620adf4fd8ffb76d524b2729b130a9f381

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_pycatbox-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 92c0661655d96d1393a562fcb7a01338db856d43bfa340efb6ddd02a9f6f32a3
MD5 8b4f3dd9b94cc6374aa17762b5031459
BLAKE2b-256 13bc010ac745c679c4912071626b1e700af21e541619b232b1681e6659af8aa3

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