Skip to main content

A Python wrapper for the Salad Web API

Project description

SaladPy

Key Features

  • Modern async API using asyncio.
  • Allows you to access all the Salad web API endpoints
  • Supports token caching

Installing

To install the library, you can just run the following command:

# Linux/macOS
python3 -m pip install -U saladpy

# Windows
py -3 -m pip install -U saladpy

Quick Example

import saladpy
import asyncio

async def main():
    client = saladpy.SaladClient()
    verify = await client.login("john.doe@example.com")

    # Verify using the OTP sent to your email
    await verify(input("Enter OTP: "))

    # Get Balance
    balance = await client.balance()
    print("Your Salad balance is", balance)

    # Safely close SaladClient (Highly Recommended)
    await client.close()

asyncio.run(main())

Docs

The docs are available at https://saladpy.gitbook.io/saladpy-docs/.

Contact

You can contact me at Coddo#3210 on Discord! Ensure to first send me a friend request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saladpy-1.0.2a5.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

saladpy-1.0.2a5-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file saladpy-1.0.2a5.tar.gz.

File metadata

  • Download URL: saladpy-1.0.2a5.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for saladpy-1.0.2a5.tar.gz
Algorithm Hash digest
SHA256 1b25df602a687799411a468266a65a7237a7ad66040bfcc21d432531ab56c4de
MD5 0038d00db4577abff2f5a3c3783ea80f
BLAKE2b-256 03bb2c691bd278e10b3b47693ca10c3bde790bc86dec75cfee0936160af84203

See more details on using hashes here.

File details

Details for the file saladpy-1.0.2a5-py3-none-any.whl.

File metadata

  • Download URL: saladpy-1.0.2a5-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for saladpy-1.0.2a5-py3-none-any.whl
Algorithm Hash digest
SHA256 0264e0be3c131b6a632e939b162e5c87b7262544142dacca96409f1a14b266b7
MD5 718f18acadf7eb9a355760ac3d53ba9b
BLAKE2b-256 5ec5ab5515d4e8e9eab533d6bea655de2d8cbe9f0a1349b1a93d043a34e20946

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page