Skip to content

yujinlim/alchemy-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alchemy Python SDK

A Python SDK for the Alchemy API, built with requests and pydantic for type-safe API interactions.

Installation

pip install alchemy-python-sdk

Or install from source:

pip install -e .

Quick Start

from alchemy import Client

client = Client(api_key="your_api_key_here", network=Network.ETH)

balances = client.token.get_token_balances("address")
print(balances)

Features

  • Type-safe models: All request and response models are defined using Pydantic for automatic validation
  • Error handling: Proper exception handling for common API errors (401, 404, 400, etc.)
  • Bearer token authentication: Simple API key-based authentication

Usage Examples

Development

TODO

  • Token API
  • NFT API
  • Portfolio API
  • Transfers API
  • Prices API
  • Simulation API
  • Utility API

Install development dependencies

pip install -e ".[dev]"

Run tests

pytest

License

Apache License 2.0

About

alchemy api sdk in python (https://www.alchemy.com/docs/reference/api-overview)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages