{"id":26162490,"url":"https://github.com/balancer/balpy","last_synced_at":"2025-04-14T13:30:27.912Z","repository":{"id":37093869,"uuid":"376115703","full_name":"balancer/balpy","owner":"balancer","description":"Tools for interacting with Balancer Protocol V2 in Python. ","archived":false,"fork":false,"pushed_at":"2024-08-11T21:50:52.000Z","size":10515,"stargazers_count":66,"open_issues_count":12,"forks_count":46,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-22T14:06:03.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-11T18:48:37.000Z","updated_at":"2025-01-03T15:26:51.000Z","dependencies_parsed_at":"2025-03-11T13:54:46.152Z","dependency_job_id":"58910c7a-b8fc-4832-ab94-5848cd488848","html_url":"https://github.com/balancer/balpy","commit_stats":null,"previous_names":["balancer-labs/balpy"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balancer","download_url":"https://codeload.github.com/balancer/balpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248888521,"owners_count":21178074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T13:54:41.289Z","updated_at":"2025-04-14T13:30:27.849Z","avatar_url":"https://github.com/balancer.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"![balpy](images/balpy.png?raw=true \"balpy\")\n# balpy\n## Python tools for interacting with Balancer Protocol V2 in Python. \n\nDISCLAIMER: While balpy is intended to be a useful tool to simplify interacting with Balancer V2 Smart Contracts, this package is an ALPHA-build and should be considered as such. Use at your own risk! This package is capable of sending Ethereum (or EVM compatible) tokens controlled by whatever private key you provide. User assumes all liability for using this software; contributors to this package are not liable for any undesirable results. Users are STRONGLY encouraged to experiment with this package on testnets before using it on mainnet with valuable assets.\n\n## Usage\nbalpy has been tested on:\n- MacOS using Python 3.9.0\n- Linux using Python 3.9-dev\n- Windows using Python 3.9.5\n\n### Install\n#### Install from PiP\nLocal installation of the latest balpy release can be done simply using:\n```bash\npip install balpy\n```\nHowever, for reliability and isolation, we recommend creating a package through poetry\n```bash\n# If you do not have poetry installed, install it using the following commands:\n# pip install poetry\npoetry new package-name\ncd package-name\npoetry add balpy\n```\nSee release on PyPI: https://pypi.org/project/balpy/\n\n### Install from source\n```bash\n# Install in virtual environment using poetry\ngit clone https://github.com/balancer-labs/balpy.git\ncd balpy\npoetry install # Install dependencies and package\n# You can enter the virtual environment using\npoetry shell\n# You can run a file using the environment\npoetry run ./samples/misc/vaultWethRead.py\n```\n\n#### Locally building wheels\nYou can also create a wheel (.whl) file to build the library for platform-specific distribution\n```bash\ngit clone https://github.com/balancer-labs/balpy.git\ncd balpy\npoetry build\n# You can find the wheels here\ncd dist/\n# Wheel name will depend on version\npip install ./balpy-X.X.X.whl\n```\n\n### Environment Variables\nYou must set these two environment variables in order to use the balpy module\n- KEY_API_ETHERSCAN: \tAPI key for Etherscan for gas prices\n- KEY_PRIVATE: \t\t\tPlain text private key for signing transactions\n\nYou also must set AT LEAST one of these environment variables to connect to the network\n- KEY_API_INFURA: \t\tAPI key for Infura for sending transactions\n- BALPY_CUSTOM_RPC:   Custom RPC URL (like localhost or Polygon RPC)\n\n\n## Samples\nSee README.md in samples/ for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fbalpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalancer%2Fbalpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fbalpy/lists"}