semvec/pypi-packages huggingface dataset:
PyThermalAnalysis 0.1.0
A Python library for a basic exergy analysis in thermodynamic systems
Requires Python: >=3.6

# PyThermalAnalysis
Advanced Thermal Analysis Library

# PyThermalAnalysis

PyThermalAnalysis is a Python library for performing exergy analysis in thermodynamic systems.

## Features

- Calculate exergy of various thermodynamic states
- Analyze exergy destruction in components like heat exchangers and turbines

## Installation

You can install the library using pip:

```bash
pip install PyThermalAnalysis
```

**use**

```python
from PyThermalAnalysis import ExergyAnalysis, ThermodynamicState

# Define ambient conditions
T0 = 298.15  # K
h0 = 0.0     # kJ/kg
s0 = 0.0     # kJ/kg-K

# Create a thermodynamic state
state = ThermodynamicState(500, 101325, 2800, 6.8)

# Perform exergy analysis
exergy_analyzer = ExergyAnalysis(T0, h0, s0)
exergy = exergy_analyzer.calculate_exergy(state)
print(f"Exergy: {exergy} kJ/kg")
```
pyil2 0.1.2
Python client to the InterlockLedger Node REST API
Requires Python: >=3.11

# InterlockLedger REST Client in Python

This package is a python client to the InterlockLedger Node REST API. It connects to InterlockLedger nodes, allowing the creation of chains, interlocks, and storage of records and documents.

This library replaces the original client,
[interlockledger-rest-client-python](https://github.com/interlockledger/interlockledger-rest-client-python),
that is now deprecated.

## The InterlockLedger

An InterlockLedger network is a peer-to-peer network of nodes. Each node runs the InterlockLedger software. All communication between nodes is point-to-point and digitally signed, but not mandatorily encrypted. This means that data is shared either publicly or on a need-to-know basis, depending on the application.

In the InterlockLedger, the ledger is composed of myriads of independently permissioned chains, comprised of blockchained records of data, under the control of their owners, but that are tied by Interlockings, that avoid them having their content/history being rewritten even by their owners. For each network the ledger is the sum of all chains in the participating nodes.

A chain is a sequential list of records, back chained with signatures/hashes to the previous records, so that no changes in them can go undetected. A record is tied to some enabled Application, that defines the metadata associate with it, and the constraints defined in this public metadata, forcibly stored in the network genesis chain, is akin to validation that each correct implementation of the node software is able to enforce, but more
importantly, any external logic can validate the multiple dimensions of validity for records/chains/interlockings/the ledger.

## Dependencies

-   Python 3.11.3

    -   pydantic 2.6.1
    -   requests 2.32.2
    -   pyOpenSSL 24.1.0
    -   pyilint 0.2.2
    -   pyiltags 0.1.1

-   InterlockLedger:
    -   API 14.2.2

## How to install

This library has been published on [pypi.org](https://pypi.org/project/pyil2/),
thus you can install it using pip directly:

```
pip install pyil2
```

## Documentation

The documentation for this library can be found at [here](https://interlockledger.github.io/py-interlockledger-rest-client/).

## Example

How to use the interlockledger rest client. This example will show how to list the chains in a node and store an encrypted JSON document in the first chain:

```python
from pyil2 import IL2Client

client = IL2Client(
    host='https://il2.node:32032/',
    cert_filepath='rest.api.pfx',
    cert_password='Str0ngPassword'
)

chain_api = client.api('chain')
chains = chain_api.list_chains()
chain_id = chains[0].id

json_api = client.api('json')
encrypted_json = json_api.add_json_document(
    chain_id,
    {
        'attribute': "value"
    }
)
```

## License

This program is licensed under the **BSD 3-Clause License**.

## Contributions

We are not actively looking for contributions but if you want to help, feel free
to do so via the [project's gitHub page](https://github.com/interlockledger/py-interlockledger-rest-client).