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
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
saladpy-1.0.2a4.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for saladpy-1.0.2a4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d66310afda58e4a849f6eefe006f73dd0fe28be0daba6cdcecae5def379905 |
|
MD5 | f0daeac04ce1c83d56429aeeeeed0f38 |
|
BLAKE2b-256 | d5f4478ccbe19141dda5f226af3f24f28360c224b84cfa8ac6e79255856deea8 |