ethpm-types-0.5.0
توضیحات
ethpm_types: Implementation of EIP-2678
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | ethpm-types-0.5.0 |
| نام | ethpm-types |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ApeWorX Ltd. |
| ایمیل نویسنده | admin@apeworx.io |
| آدرس صفحه اصلی | https://github.com/ApeWorX/ethpm-types |
| آدرس اینترنتی | https://pypi.org/project/ethpm-types/ |
| مجوز | Apache-2.0 |
# Quick Start
EthPM is an Ethereum package manifest containing data types for contracts, deployments, and source code using [EIP-2678](https://eips.ethereum.org/EIPS/eip-2678).
The library validates and serializes contract related data and provides JSON schemas.
## Dependencies
- [python3](https://www.python.org/downloads) version 3.8 to 3.11.
## Installation
### via `pip`
You can install the latest release via [`pip`](https://pypi.org/project/pip/):
```bash
pip install ethpm-types
```
### via `setuptools`
You can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:
```bash
git clone https://github.com/ApeWorX/ethpm-types.git
cd ethpm-types
python3 setup.py install
```
## Quick Usage
Starting with a dictionary of attribute data, such as a contract instance, you can build an EthPM typed object.
```python
from ethpm_types import ContractInstance
contract = ContractInstance(contractType="ContractClassName", address="0x123...")
print(contract.contract_type)
```
نیازمندی
| مقدار | نام |
|---|---|
| <1,>=0.3.0 | hexbytes |
| <2,>=1.10.7 | pydantic |
| <3,>=2.1.0 | eth-utils |
| <0.4,>=0.3.0 | py-cid |
| <3,>=2.29.0 | requests |
| >=6.0 | pytest |
| - | pytest-xdist |
| - | pytest-cov |
| <7.0,>=6.2.0 | hypothesis |
| <2.0,>=1.54 | PyGithub |
| ==0.19.0 | hypothesis-jsonschema |
| <2.0.0,>=1.0.2 | pysha3 |
| <24,>=23.3.0 | black |
| <1,>=0.991 | mypy |
| - | types-setuptools |
| - | types-requests |
| <7,>=6.0.0 | flake8 |
| >=1.1.0 | flake8-breakpoint |
| >=4.0.0 | flake8-print |
| <5.11,>=5.10.1 | isort |
| - | setuptools |
| - | wheel |
| - | twine |
| <2.41,>=2.40 | commitizen |
| - | pre-commit |
| - | pytest-watch |
| - | IPython |
| - | ipdb |
| <0.18,>=0.17.0 | myst-parser |
| <4.0,>=3.1.0 | sphinx-click |
| <5.0,>=4.4.0 | Sphinx |
| <2,>=1.0.0 | sphinx-rtd-theme |
| >=0.7 | sphinxcontrib-napoleon |
| <24,>=23.3.0 | black |
| <1,>=0.991 | mypy |
| - | types-setuptools |
| - | types-requests |
| <7,>=6.0.0 | flake8 |
| >=1.1.0 | flake8-breakpoint |
| >=4.0.0 | flake8-print |
| <5.11,>=5.10.1 | isort |
| - | setuptools |
| - | wheel |
| - | twine |
| >=6.0 | pytest |
| - | pytest-xdist |
| - | pytest-cov |
| <7.0,>=6.2.0 | hypothesis |
| <2.0,>=1.54 | PyGithub |
| ==0.19.0 | hypothesis-jsonschema |
| <2.0.0,>=1.0.2 | pysha3 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4 | Python |
نحوه نصب
نصب پکیج whl ethpm-types-0.5.0:
pip install ethpm-types-0.5.0.whl
نصب پکیج tar.gz ethpm-types-0.5.0:
pip install ethpm-types-0.5.0.tar.gz