Uniswap / v3-polars

GNU General Public License v2.0
98 stars 16 forks source link

Package pip installable #18

Closed ankile closed 2 months ago

ankile commented 2 months ago

By adding a simple setup.py to the root of the repo, we can now easily install the repo into one's virtual env with pip install -e . that allows for simple use of the library in other repos as well by importing from this repo as a package, e.g.:

from v3.state import v3Pool

address = "0x448a70a160d6be76ec6cdf3a7ed9988d3eeebcd2"
eth = v3Pool(
    address,
    "ethereum",
    update=True,
    update_from="allium",
)