https://github.com/andcool-systems/fileuploader-python
A Python package for working with fu.andcool.ru API
https://github.com/andcool-systems/fileuploader-python
aiohttp file-sharing file-upload python-package
Last synced: about 1 month ago
JSON representation
A Python package for working with fu.andcool.ru API
- Host: GitHub
- URL: https://github.com/andcool-systems/fileuploader-python
- Owner: Andcool-Systems
- License: mit
- Created: 2024-02-07T20:55:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-05T10:18:09.000Z (5 months ago)
- Last Synced: 2025-03-25T16:23:36.710Z (about 2 months ago)
- Topics: aiohttp, file-sharing, file-upload, python-package
- Language: Python
- Homepage: https://pypi.org/project/fileuploader/
- Size: 296 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File uploader package
Asynchronous Python package for working with the API [fu.andcool.ru](https://fu.andcool.ru). The package is currently in beta.
## Installing
Run `pip install fileuploader` in the console.## Simple example
Use the `upload` method to upload the file to the server.
```python
import fileuploader
import asyncioasync def run():
f = open("tests/logo.png", "rb") # Open file as bytes
response = await fileuploader.upload(f.read(), f.name) # Upload file to a fu
print(response.file_url_full) # Print file urlasyncio.run(run())
```
## More examples
You can find more usage examples [here](https://github.com/Andcool-Systems/FileUploader-python/tree/main/fileuploader/tests).