Skip to main content

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
  • Validation for unsupported file types.
  • User-friendly errors for handling status codes of failed HTTP requests.

Created by acatia#5378

Installation & Setup

  1. Install the package:

    pip install wantstoparty
    
  2. Create a wants-to.party account.

  3. On your dashboard, click the "View api key" button:

    image

  4. 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.

Release files for wantstoparty 2.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wantstoparty 2.1.3
File Size Uploaded
wantstoparty-2.1.3.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wantstoparty 2.1.3
File Interpreter ABI Platform
wantstoparty-2.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.4 kB

Release files / wantstoparty-2.1.3.tar.gz

Download URL wantstoparty-2.1.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1a876280f61274a176e5c1ac280a42f9ea58e37a134fd738d7bf5d230e22af45
BLAKE2b-256 checksum
How to use checksums
f910b69bc1f20c0500bdd04cca427db765ee343a71f7adf5e1563be63747729f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / wantstoparty-2.1.3-py3-none-any.whl

Download URL wantstoparty-2.1.3-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16c01620ee063c29e38f3eafb6c763c67a464c70e00a292e2ccdf7c5b2a8ca74
BLAKE2b-256 checksum
How to use checksums
e13681f161da2756351a990b248f787be6764c50fe749d47d2363de2aeb264a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page