Skip to main content

py-solc-x

Pypi Status Build Status Coverage Status

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

Forked from 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.

Installation

via pip

pip install py-solc-x

from source

git clone https://github.com/ApeWorX/py-solc-x.git
cd py-solc-x
uv sync

Documentation

Documentation is hosted at Read the Docs.

Testing

Py-solc-x 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.

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 prior to opening a pull request, and join the Brownie Gitter channel if you have any questions.

License

This project is licensed under the MIT license.

Metadata

Release files for py-solc-x 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-solc-x 2.1.0
File Size Uploaded Provenance Actions
py_solc_x-2.1.0.tar.gz 77.6 kB With provenance Details for py_solc_x-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-solc-x 2.1.0
File Interpreter ABI Platform Actions
py_solc_x-2.1.0-py3-none-any.whl Python 3 none any Details for py_solc_x-2.1.0-py3-none-any.whl

Total release size: 95.8 kB

Release files / py_solc_x-2.1.0.tar.gz

Download URL py_solc_x-2.1.0.tar.gz
Size 77.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aa78ea0ae6df87729280532400d7529a3d881dbe4e77db27ea173a7ce6329a05
BLAKE2b-256 checksum
How to use checksums
df325f4a2fb3fe9859c7066557ac3eb6dcf32bf7f11a00ce5cb545f57a37d1eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / py_solc_x-2.1.0-py3-none-any.whl

Download URL py_solc_x-2.1.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf45aa96c29ed0a3654dcb6951f0f14c648d2be3f938260babbbd1ace6dde04
BLAKE2b-256 checksum
How to use checksums
8d6d3456e1c77b7efe9e277c5202bb8b879048117369f97c2b3dcefbc4c43071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for py-solc-x 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py_solc_x-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page