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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file async_pycatbox-1.1.2.tar.gz
.
File metadata
- Download URL: async_pycatbox-1.1.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 203fc890df7b2127a4e8d3551ccae395c7903db152c6e4f0a468468783db81f4 |
|
MD5 | 80574642b7e699243eeb624feb78b70d |
|
BLAKE2b-256 | fa79c1251a4ab6d4009c871d7faf34efdca0683c2965f81abf3f60296e994666 |
File details
Details for the file async_pycatbox-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: async_pycatbox-1.1.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 067cefe688ca210437db97502c8327a738fbb22de92689c75c7f86f6d52acf50 |
|
MD5 | ea399243aa7d4dd27d5140166fd60e4a |
|
BLAKE2b-256 | 67ebf14e78846f0ce32144ca4b7c048be9c0a9c915c2622ada14d6369b44f4eb |