A Python library for managing and organizing AI language model chains
Project description
API Reference
get_chain_info(chain_identifier: Union[int, str]) -> ChainInfo
Retrieves chain information based on the provided identifier.
chain_identifier
: Can be an integer (chain ID) or a string (chain name or alias)- Returns a
ChainInfo
object containing chain details - Raises
ChainNotFoundError
if the chain is not found
ChainInfo
A Pydantic model representing chain information. Key attributes include:
name
: Chain namechainId
: Chain IDnativeCurrency
: Native currency details (name, symbol, decimals)wrapperNativeCurrency
: Wrapper native currency details (name, symbol, decimals, contract)rpc
: List of RPC URLsexplorers
: List of block explorers
Development
To set up the development environment:
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]"
- Run tests:
pytest
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
This project uses data from the chainid.network project, which provides a comprehensive list of EVM-compatible chains.
Support
If you encounter any issues or have questions, please file an issue on the GitHub repository.
Changelog
See CHANGELOG.md for a detailed history of changes to this project.
Authors
- gmatrix - Initial work and maintenance
Disclaimer
This package is provided as-is, and while we strive for accuracy, we cannot guarantee the correctness of all chain information. Users should verify critical information independently.
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
Built Distribution
File details
Details for the file chain_index-0.1.6.tar.gz
.
File metadata
- Download URL: chain_index-0.1.6.tar.gz
- Upload date:
- Size: 136.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd95e6344d31a97afcac08bb2c026d34a9b9b1a5e63cf46ab42d14b1c2d539d |
|
MD5 | 548158c86fb21de2647ba3aa0969d268 |
|
BLAKE2b-256 | a1881d0aa00148eadd66021d186b44a7350f75d818528100cba466d7f6514d5b |
File details
Details for the file chain_index-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: chain_index-0.1.6-py3-none-any.whl
- Upload date:
- Size: 140.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30223badcbc45b9175802d3329cea6f11e820b4a1527f3530c83ac35317cbf13 |
|
MD5 | a489620cc23099ed373b96e74167041b |
|
BLAKE2b-256 | df28429810f48d339ce0a6f21f4def4ed40ccc7361983c124d4635dc23789512 |