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.1.tar.gz
(42.7 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.1.tar.gz.
File metadata
- Download URL: typed_alchemy-1.0.1.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e814e1d3e569efbc592857715379f6edc5f07d5c24323514c7a84ef0c6ca922
|
|
| MD5 |
bbfde302c9123f0cffb1c25642e81a10
|
|
| BLAKE2b-256 |
aa85e5831d7ee2d2fc296d6137c234833632e2be647312b3b9c33bd660d03dda
|
File details
Details for the file typed_alchemy-1.0.1-py3-none-any.whl.
File metadata
- Download URL: typed_alchemy-1.0.1-py3-none-any.whl
- Upload date:
- Size: 75.6 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 |
4c3de3bc46e553f775888e2cd1b5c6555fe97d5da913dbd4179a890decb81d6a
|
|
| MD5 |
fac657d915e37fd96d84074290434f7d
|
|
| BLAKE2b-256 |
2481deca91decc533399b99ffb7b41d597cc2e3914178d77458d2d5f0087871e
|