# 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.12.
## 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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ApeWorX/ethpm-types",
"name": "ethpm-types",
"maintainer": null,
"docs_url": null,
"requires_python": "<4,>=3.8",
"maintainer_email": null,
"keywords": "ethereum",
"author": "ApeWorX Ltd.",
"author_email": "admin@apeworx.io",
"download_url": "https://files.pythonhosted.org/packages/d2/b6/1b66bbf1682f8894c589d25f2e6d0c1af66691449f1d24e7dee8c33283b4/ethpm-types-0.6.11.tar.gz",
"platform": null,
"description": "# Quick Start\n\nEthPM is an Ethereum package manifest containing data types for contracts, deployments, and source code using [EIP-2678](https://eips.ethereum.org/EIPS/eip-2678).\nThe library validates and serializes contract related data and provides JSON schemas.\n\n## Dependencies\n\n- [python3](https://www.python.org/downloads) version 3.8 to 3.12.\n\n## Installation\n\n### via `pip`\n\nYou can install the latest release via [`pip`](https://pypi.org/project/pip/):\n\n```bash\npip install ethpm-types\n```\n\n### via `setuptools`\n\nYou can clone the repository and use [`setuptools`](https://github.com/pypa/setuptools) for the most up-to-date version:\n\n```bash\ngit clone https://github.com/ApeWorX/ethpm-types.git\ncd ethpm-types\npython3 setup.py install\n```\n\n## Quick Usage\n\nStarting with a dictionary of attribute data, such as a contract instance, you can build an EthPM typed object.\n\n```python\nfrom ethpm_types import ContractInstance\n\ncontract = ContractInstance(contractType=\"ContractClassName\", address=\"0x123...\")\nprint(contract.contract_type)\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "ethpm_types: Implementation of EIP-2678",
"version": "0.6.11",
"project_urls": {
"Homepage": "https://github.com/ApeWorX/ethpm-types"
},
"split_keywords": [
"ethereum"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9abebdd88b8ef57171b2c1bfeea3a12bf503f966e2d34ab5700cf62527deb154",
"md5": "6b8e8982d5dc58343a286fcb017720c4",
"sha256": "2292989ab636528aecb96f64d3136deee52c4edc9384ee70020252f3a01fa329"
},
"downloads": -1,
"filename": "ethpm_types-0.6.11-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6b8e8982d5dc58343a286fcb017720c4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4,>=3.8",
"size": 33019,
"upload_time": "2024-04-28T16:55:05",
"upload_time_iso_8601": "2024-04-28T16:55:05.187843Z",
"url": "https://files.pythonhosted.org/packages/9a/be/bdd88b8ef57171b2c1bfeea3a12bf503f966e2d34ab5700cf62527deb154/ethpm_types-0.6.11-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d2b61b66bbf1682f8894c589d25f2e6d0c1af66691449f1d24e7dee8c33283b4",
"md5": "fe4d61d8bde244a52e38c61ed1705db2",
"sha256": "adf00bed0917739c55ead8a4c81173292fffdb56fe00a9c2db8d255f85e59f5b"
},
"downloads": -1,
"filename": "ethpm-types-0.6.11.tar.gz",
"has_sig": false,
"md5_digest": "fe4d61d8bde244a52e38c61ed1705db2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4,>=3.8",
"size": 1217147,
"upload_time": "2024-04-28T16:55:07",
"upload_time_iso_8601": "2024-04-28T16:55:07.743464Z",
"url": "https://files.pythonhosted.org/packages/d2/b6/1b66bbf1682f8894c589d25f2e6d0c1af66691449f1d24e7dee8c33283b4/ethpm-types-0.6.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-28 16:55:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ApeWorX",
"github_project": "ethpm-types",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ethpm-types"
}