semvec/pypi-packages huggingface dataset:
jaraco.ui 2.4.0
User-Interface tools (mainly command-line)
Requires Python: >=3.8

.. image:: https://img.shields.io/pypi/v/jaraco.ui.svg
   :target: https://pypi.org/project/jaraco.ui

.. image:: https://img.shields.io/pypi/pyversions/jaraco.ui.svg

.. image:: https://github.com/jaraco/jaraco.ui/actions/workflows/main.yml/badge.svg
   :target: https://github.com/jaraco/jaraco.ui/actions?query=workflow%3A%22tests%22
   :alt: tests

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Ruff

.. .. image:: https://readthedocs.org/projects/PROJECT_RTD/badge/?version=latest
..    :target: https://PROJECT_RTD.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2024-informational
   :target: https://blog.jaraco.com/skeleton
lightecho_stellar_oracle 2.0.0
Python SDK for the Lightecho Stellar Oracle
Requires Python: <4.0,>=3.10

**Python SDK for the Lightecho Stellar Oracle**

```
pip install lightecho_stellar_oracle
```

Example:
```
from lightecho_stellar_oracle import OracleClient, TESTNET_CONTRACT_XLM
from stellar_sdk.keypair import Keypair

oracle_client = OracleClient(
    contract_id=TESTNET_CONTRACT_XLM,
    signer=Keypair.from_secret("SAES4O3NXUE2CPIB7YH3O5ROAONADPZRXOEYFC4JPLNY6STOBM2RYLGH"),
    network="testnet",
)
# list the assets
print(oracle_client.assets())

# show the base Currency
print(oracle_client.base())

# get the last price
tx_id, result = oracle_client.lastprice("other", "USD")
print(tx_id)
print(result)

# Printing the updated result
print(result)

#RESULT
#{'price': 0.11, 'timestamp': 1698240296}
```

For more information see [https://github.com/bp-ventures/lightecho-stellar-oracle](https://github.com/bp-ventures/lightecho-stellar-oracle).