auditless-py-solc-x-0.1.0
توضیحات
py-solc-x wrapper for Auditless
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | auditless-py-solc-x-0.1.0 |
| نام | auditless-py-solc-x |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Peteris Erins |
| ایمیل نویسنده | peteris@auditless.com |
| آدرس صفحه اصلی | https://github.com/auditless/auditless-py-solc-x |
| آدرس اینترنتی | https://pypi.org/project/auditless-py-solc-x/ |
| مجوز | MIT |
# py-solc-x wrapper for Auditless
This wrapper modifies `py-solcx-x` to produce output on every compilation that can be consumed by Auditless.
## Can I use this for my project
As long as you are using `py-solc-x` to compile Solidity files, you can use this wrapper.
## How to use
Add the the following snippet to your code:
```python
from pathlib import Path
from auditless_solcx import solcx_start_saving_debugging_output_to_path
path = Path(__file__).parent # This will save files in a folder ./artifacts/build-info
solcx_start_saving_debugging_output_to_path(path)
# This needs to appear before any modules consuming `py-solc-x` are loaded
# See below "Important note about patching"
```
## Important note about patching
The patching function `solcx_start_saving_debugging_output_to_path(<path>)` needs to be called either before
`solcx` is used directly or before any module that imports and uses `solcx`.
See [Python Mock Gotchas](https://alexmarandon.com/articles/python_mock_gotchas/) for more information about patching
order.
## License
MIT
نیازمندی
| مقدار | نام |
|---|---|
| >=1.1.0,<2.0.0 | py-solc-x |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl auditless-py-solc-x-0.1.0:
pip install auditless-py-solc-x-0.1.0.whl
نصب پکیج tar.gz auditless-py-solc-x-0.1.0:
pip install auditless-py-solc-x-0.1.0.tar.gz