Free unlimited file hosting using Discord server
Project description
pyscord-storage
Free unlimited file hosting using Discord server
Installation
pip install pyscord-storage --upgrade
Example
import pyscord_storage
filename = 'ynm.jpg'
# file = 'path/to/your/file' -> pyscord_storage v0.0.7+
file = 'https://github.com/animemoeus/pyscord-storage/raw/master/sample.jpg'
data = pyscord_storage.upload(filename,file)
Result
{
'status': 200,
'data':
{
'id': '860049950065819658',
'filename': 'ynm.jpg',
'size': 130407,
'url': 'https://cdn.discordapp.com/attachments/858938620425404426/860049950065819658/ynm.jpg',
'proxy_url': 'https://media.discordapp.net/attachments/858938620425404426/860049950065819658/ynm.jpg',
'width': 537,
'height': 954,
'content_type': 'image/jpeg'
}
}
API
About
- Max upload size limit is 8MB. Click here for detail.
- url vs proxy_url. Click here for detail.
- proxy_url. Click here for detail.
- Attachments URL. Click here for detail.
Example Implementation
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
pyscord-storage-0.0.7.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for pyscord_storage-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89cecde232e6b094021175f38bd18611c74e149a406d15aac006d056ce2e55ec |
|
MD5 | 9604bdc3c6b4a78f0de84b98ceb3ca92 |
|
BLAKE2b-256 | 89dc3a87a215009adff791cbada0024a0e0ec61894a5c0fb3f61c9379d6f7fe7 |