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.0.tar.gz
(40.6 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.0.tar.gz.
File metadata
- Download URL: typed_alchemy-1.0.0.tar.gz
- Upload date:
- Size: 40.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1137efbc66a7d342e9021e6501088ac5ca7dca5f31fc96c8723c705f9d8f0e1d
|
|
| MD5 |
c14ec514c6033a7b28cc7c2684cfd9ab
|
|
| BLAKE2b-256 |
e095674628dbd656cc83aa2d257801f39981a7f47faa19497a3ed9f4c47f9cb7
|
File details
Details for the file typed_alchemy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: typed_alchemy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 73.8 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 |
27f07905898f5f1d76a056c434f21360cf6b0781aec30fa9fe4c476fd3ab1c85
|
|
| MD5 |
1980b5ee94ea4f4efe7c18ea16499d34
|
|
| BLAKE2b-256 |
ef2c5123226480f424020c6c733f5a51c2c87d26621e3dfdb691d28592c43201
|