Skip to main content

Python wrapper and version management tool for ethereum-targeting compilers.

Project description

# py-solc-x

[![Pypi Status](https://img.shields.io/pypi/v/py-solc-x.svg)](https://pypi.org/project/py-solc-x/) [![Build Status](https://img.shields.io/github/workflow/status/iamdefinitelyahuman/py-solc-x/py-solc-x%20workflow)](https://github.com/iamdefinitelyahuman/py-solc-x/actions) [![Coverage Status](https://img.shields.io/codecov/c/github/iamdefinitelyahuman/py-solc-x)](https://codecov.io/gh/iamdefinitelyahuman/py-solc-x)

Python wrapper and version management tool for the solc Solidity compiler.

Forked from [py-solc](https://github.com/ethereum/py-solc).

## Features

  • Full support for Solidity >=0.4.11

  • Install Solidity on Linux, OSX and Windows

  • Compile Solidity from source on Linux and OSX

## Dependencies

Py-solc-x 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](https://solidity.readthedocs.io/en/latest/installing-solidity.html#building-from-source).

## Installation

### via pip

`bash pip install py-solc-x `

### via setuptools

`bash git clone https://github.com/iamdefinitelyahuman/py-solc-x.git cd py-solc-x python3 setup.py install `

## Documentation

Documentation is hosted at [Read the Docs](https://solcx.readthedocs.io/en/latest/).

## Testing

Py-solc-x is tested on Linux, OSX and Windows with solc versions >=0.4.11.

To run the test suite:

`bash 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.

## Contributing

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](CONTRIBUTING.md) prior to opening a pull request, and join the Brownie [Gitter channel](https://gitter.im/eth-brownie/community) if you have any questions.

## License

This project is licensed under the [MIT license](LICENSE).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ethcx-0.0.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

ethcx-0.0.1-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file ethcx-0.0.1.tar.gz.

File metadata

  • Download URL: ethcx-0.0.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ethcx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9d05b9fc061d831a976d77a7ddb8fcbdd1a2416702664e1a40c92d78e021522c
MD5 9a8869bd7b83e28ea0bec758d8d5e0e6
BLAKE2b-256 5adcf095c8320b3f90023dfbfd7ae5caa3ad1752c3dbc4ac522d5682088b45fc

See more details on using hashes here.

File details

Details for the file ethcx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ethcx-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ethcx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 123c204054d39078ac2fb2025ee2bf476916b099a40d1f64f0ecfa0fdd001d85
MD5 0eb6c85ea40d0716fb3c269536337874
BLAKE2b-256 a7fae470d5c17d80517430d1490e499376f0a900c465512f0ac85048f13cab05

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page