https://github.com/fayasnoushad/pixeldrain
A pixeldrain python package
https://github.com/fayasnoushad/pixeldrain
api pixeldrain python
Last synced: 2 months ago
JSON representation
A pixeldrain python package
- Host: GitHub
- URL: https://github.com/fayasnoushad/pixeldrain
- Owner: FayasNoushad
- License: mit
- Created: 2021-10-24T16:18:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-11T17:03:25.000Z (over 1 year ago)
- Last Synced: 2025-03-17T14:48:57.757Z (3 months ago)
- Topics: api, pixeldrain, python
- Language: Python
- Homepage: https://pypi.org/project/Pixeldrain
- Size: 27.3 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pixeldrain
A pixeldrain uploader and downloader made with pixeldrain api
## Installation
```sh
pip3 install Pixeldrain
```## Usage
```py
import pixeldrain# To get information about the file
info = pixeldrain.info(file_id)
# returns information as raw data# To get file link
file = pixeldrain.file(file_id)
# returns file link# To upload file
pixeldrain.upload_file(file_path)
# returns upload details# To download file
pixeldrain.download_file(file_id, file_name, file_path)
# returns file name
# "file_name" and "file_path" are optional# To get thumbnail
thumbnail = pixeldrain.thumbnail(file_id, width, height)
# returns thumbnail link
# width and height are optional
```---
## Thanks to
- [Pixeldrain API](https://pixeldrain.com/api)
- [Contributors](https://github.com/FayasNoushad/Pixeldrain/graphs/contributors)