A fully typed, validated async client for the Alchemy API.
Project description
A fully typed, validated async client for the Alchemy API.
- Documentation: https://alchemy.tribulnation.com
- Source Code: https://github.com/tribulnation/alchemy
from alchemy import Alchemy
async with Alchemy.new() as client:
prices = await client.prices.by_symbol(symbols=['ETH', 'BTC'])
transfers = await client.transfers('ethereum').get_asset_transfers({
'fromBlock': '0x0',
'toAddress': '0x5c43B1eD97e52d009611D89b74fA829FE4ac56b1',
'category': ['external'],
'maxCount': '0x2',
})
Why Typed Alchemy?
- 🎯 Precise Types: Typed endpoint inputs and responses.
- ✅ Runtime Validation: Validated responses by default.
- ⚡ Async First: Built for concurrent HTTP workflows.
- 📚 Full API Surface:
client.portfolio,client.prices, and network-scoped groups likeclient.nft('ethereum').
Installation
pip install typed-alchemy
How To
- API Keys Setup
- Look Up Token Prices
- Inspect Wallet Portfolio
- Query NFTs
- Get Asset Transfers
- Paginate Through Results
Reference
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
typed_alchemy-1.0.2.tar.gz
(43.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typed_alchemy-1.0.2.tar.gz.
File metadata
- Download URL: typed_alchemy-1.0.2.tar.gz
- Upload date:
- Size: 43.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a1613c4ceb7b4d0a0e0418004e1447b3e1538ec5bc7230b4f938697ac5fd84b
|
|
| MD5 |
5fe8b48225cb478c4ca53a915813975c
|
|
| BLAKE2b-256 |
2ad8f8180290d05cfcea102b8c5d79caab0852183d854be87fe8b21697fd8916
|
File details
Details for the file typed_alchemy-1.0.2-py3-none-any.whl.
File metadata
- Download URL: typed_alchemy-1.0.2-py3-none-any.whl
- Upload date:
- Size: 76.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a639f9ba039d6ed46ec30ddb9555262a7c2dcfc6ac901e37480d80588fdcf59f
|
|
| MD5 |
fd9c32e1ce2b068c64cbec1f87f91922
|
|
| BLAKE2b-256 |
e7221b8b155fff2738d811f94c9eb4cda8b62617ae02f267638402c1048b09f1
|