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 = 'https://github.com/animemoeus/pyscord-storage/raw/master/sample.jpg'
# file = 'path/to/your/file' -> pyscord_storage v0.0.7+
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.
Increase Upload Limit
- I don't know if this will work, but I think if the server gets a boost with Nitro, we can increase the upload limit up to 50 MB or 100MB.
- https://discord.com/nitro
- Discord Server https://discord.gg/kZuWeKzgkq
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.8.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for pyscord_storage-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73cc7e0655f0fea6ca69b5ac99a088bd79dfb28082570b101da20db878af9ccc |
|
MD5 | 712dbe60fe803c857f8e4abf916ccd3f |
|
BLAKE2b-256 | 2fc610f311f5766487733e686a2a3019fa85c805fa919fc3c89c62b8ee10c63a |