An API wrapper for the wants-to.party API.
Project description
wantstoparty
An API wrapper for the wants-to.party API.
About
wantstoparty is a feature-rich API wrapper for the wants-to.party API which provides full API coverage, supporting blocking/non-blocking HTTP methods and much more.
Notable features:
- Blocking (sync) and non-blocking (async) support.
blocking example
non-blocking example
- Upload files by providing a local file path. (I.E, file stored on disk) or bytes-like file object. (see examples above)
- Get all files hosted on your wants-to.party account.
- Get account information associated with the given API key.
- Delete files by their given file ID.
- Set a maximum uploadable file size limit.
- Prevents files that exceed your specified limit being uploaded.
see example
- Prevents files that exceed your specified limit being uploaded.
- Validation for unsupported file types.
- User-friendly errors for handling status codes of failed HTTP requests.
Created by acatia#5378
Installation & Setup
-
Install the package:
pip install wantstoparty
-
Create a wants-to.party account.
-
On your dashboard, click the "View api key" button:
-
Import the
WantsToParty
class:from wantstoparty import WantsToParty # For async use, refer to the examples. wtp = WantsToParty("api key from dashboard")
Join the Motion Development server for extra help, here.
Examples
Some examples can be found in the examples/ folder.
Contributing
Contributions are welcome! Check out the contributing guidelines beforehand.
License
This is licensed under MIT. Read the license here.
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
wantstoparty-2.1.1.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for wantstoparty-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9131b875a115db8781fb78e859c35dc1f885fd4c4e2b5244fe0722659558b33c |
|
MD5 | 70451a8dba18ebf5664c106f7a1513ef |
|
BLAKE2b-256 | 32ebb7aea70a72a054bdec6e67e896498517d175e2050758324c9e09998ed14d |