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

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.2a2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

saladpy-1.0.2a2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: saladpy-1.0.2a2.tar.gz
  • Upload date:
  • Size: 7.8 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.2a2.tar.gz
Algorithm Hash digest
SHA256 9c3a696b2e3f9bfa4d30ffe6fc3adece633c1732f772f4f0076b3bcf49dc6f45
MD5 325d742ff7eff6ad9428c4247d9f85a5
BLAKE2b-256 e79b2af6d609626b7fc34b52d22a8149d12d0ecc5bd53a143bb2fb55354d38ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: saladpy-1.0.2a2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 30b8a0a785296204b605c9075078e09f9e425fa0e67aae1f68ffc6cbf63cf3d0
MD5 143adb2ee9738fca3df4f7b604bf1d86
BLAKE2b-256 2bb02a2886c970e0184cc04d88cb4bcea6ec663253d53ffe41ba14f1cac84a6c

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