semvec/pypi-packages huggingface dataset:
ethpm-types 0.6.30
ethpm_types: Implementation of EIP-2678
License: Apache-2.0
Requires Python: <4,>=3.10
Keywords: ethereum

# 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.9 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)
```

### Contract Type

Perhaps the most common artifact type from `ethmp_types` is `ContractType`.
`ContractType` represents components of a compiled contract, such as the `.abi` or the `.runtime_bytecode`.

```python
from ethpm_types import ContractType

contract = ContractType(abi=[], runtimeBytecode="0x...")
```

For convenience, you can also initialize a `ContractType` using the `.from_signature()` classmethod:

```python
from ethpm_types.abi import MethodABI, EventABI

MethodABI.from_signature("function_name(uint256 arg1)")
# => MethodABI(type='function', name='function_name', inputs=[...], ...)

EventABI.from_signature("Transfer(address indexed from, address indexed to, uint256 value)")
# => EventABI(type='event', name='Transfer', inputs=[...], ...)
```

#### ABI JSON

To easily acquire the ABI JSON for a `ContractType` artifact, `.model_dump_json()` the `.abi` property:

```python
from ethpm_types import ContractType

contract_type = ContractType(abi=[], runtimeBytecode="0x...")

# Use the ABI in other application requiring ABI JSON.
abi = contract_type.abi.model_dump_json()
```
caso 5.2.1
cASO is an OpenStack Accounting extractor.
License: Apache-2.0
Requires Python: <4.0,>=3.10



<img src="https://github.com/IFCA/caso/raw/master/doc/source/static/caso.png" width="300">

[![Python TestingTravis](https://img.shields.io/github/actions/workflow/status/IFCA/caso/python-test.yml)](https://github.com/IFCA/caso/actions/workflows/python-test.yml)
[![Coveralls](https://img.shields.io/coveralls/IFCA/caso.svg)](https://coveralls.io/github/IFCA/caso)
[![PyPI](https://img.shields.io/pypi/v/caso.svg)](https://pypi.python.org/pypi/caso)
[![Python versions](https://img.shields.io/pypi/pyversions/caso.svg)](https://pypi.python.org/pypi/caso)

cASO is an OpenStack Accounting extractor.

* Free software: Apache license
* Source: https://github.com/IFCA/caso
* Bugs: https://github.com/IFCA/caso/issues

<img src="https://github.com/IFCA/caso/raw/master/doc/source/static/caso-diagram.png" width="500">

Documentation (the source is in ``doc/source/``) is online at
[caso documentation](https://caso.readthedocs.org/en/latest/).

## Acknowledgement

<img src="https://raw.githubusercontent.com/IFCA-Advanced-Computing/caso/refs/heads/fix-logos/doc/source/static/eu-co-funded.png" height="48">

This work is has received funding from European Union through the following projects:

 - [EOSC-hub project](http://eosc-hub.eu/) (Horizon 2020) under grant number 777536.
 - [GreenDIGIT](https://greendigit-project.eu/) (Horizon Europe) under grant number 101131207.