Uniswap Token Lists implementation in Python.
- python3 version 3.7.2 or greater, python3-dev
You can install the latest release via pip
:
pip install tokenlists
You can clone the repository and use setuptools
for the most up-to-date version:
git clone https://github.com/ApeWorX/py-tokenlists.git
cd py-tokenlists
python3 setup.py install
>>> from tokenlists import TokenListManager
>>> tlm = TokenListManager()
>>> tlm.available_tokenlists()
[]
>>> tlm.install_tokenlist("tokens.1inch.eth")
>>> tlm.available_tokenlists()
['1inch']
This project is in early development and should be considered an alpha. Things might not work, breaking changes are likely. Comments, questions, criticisms and pull requests are welcomed.
This project is licensed under the MIT license.