Python wrapper and version management tool for compilers targetting the ethereum platform.
Currently supports the solc
Solidity compiler and the vyper
compiler.
Forked from py-solc-x
.
- Full support for Solidity
>=0.4.11
and Vyper - Install Solidity and Vyper on Linux, OSX and Windows
- Compile Solidity from source on Linux and OSX
ethcx
allows the use of multiple versions of solc, and can install or compile them as needed. If you wish to compile from source you must first insall the required solc dependencies.
For Vyper, ethcx
can download and install all released versions of the vyper
compiler binaries from Github Releases.
pip install ethcx
git clone https://github.com/ethpwn/ethcx.git
cd ethcx
pip install -e .
Documentation is hosted at Read the Docs.
ethcx is tested on Linux, OSX and Windows with solc versions >=0.4.11
.
To run the test suite:
pytest tests/
By default, the test suite installs all available solc
versions for your OS. If you only wish to test against already installed versions, include the --no-install
flag.
Help is always appreciated! Feel free to open an issue if you find a problem, or a pull request if you've solved an issue.
Please check out our Contribution Guide prior to opening a pull request.
This project is licensed under the MIT license.