semvec/pypi-packages huggingface dataset:
tronapinet 0.0.1
tronapinet library for Python
License: MIT

## How to use

```python
from tronpy import Tron
from tronpy.keys import PrivateKey

client = Tron(network='nile')
# Private key of TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3
priv_key = PrivateKey(bytes.fromhex("8888888888888888888888888888888888888888888888888888888888888888"))

txn = (
    client.trx.transfer("TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3", "TVjsyZ7fYF3qLF6BQgPmTEZy1xrNNyVAAA", 1_000)
    .memo("test memo")
    .build()
    .inspect()
    .sign(priv_key)
    .broadcast()
)

print(txn)
# > {'result': True, 'txid': '5182b96bc0d74f416d6ba8e22380e5920d8627f8fb5ef5a6a11d4df030459132'}
print(txn.wait())
# > {'id': '5182b96bc0d74f416d6ba8e22380e5920d8627f8fb5ef5a6a11d4df030459132', 'blockNumber': 6415370, 'blockTimeStamp': 1591951155000, 'contractResult': [''], 'receipt': {'net_usage': 283}}
```

### Async Client

```python
import asyncio

from tronpy import AsyncTron
from tronpy.keys import PrivateKey

# private key of TMisHYBVvFHwKXHPYTqo8DhrRPTbWeAM6z
priv_key = PrivateKey(bytes.fromhex("8888888888888888888888888888888888888888888888888888888888888888"))

async def transfer():
    async with AsyncTron(network='nile') as client:
        print(client)

        txb = (
            client.trx.transfer("TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3", "TVjsyZ7fYF3qLF6BQgPmTEZy1xrNNyVAAA", 1_000)
            .memo("test memo")
            .fee_limit(100_000_000)
        )
        txn = await txb.build()
        print(txn)
        txn_ret = await txn.sign(priv_key).broadcast()
        print(txn_ret)
        # > {'result': True, 'txid': 'edc2a625752b9c71fdd0d68117802860c6adb1a45c19fd631a41757fa334d72b'}
        print(await txn_ret.wait())
        # > {'id': 'edc2a625752b9c71fdd0d68117802860c6adb1a45c19fd631a41757fa334d72b', 'blockNumber': 10163821, 'blockTimeStamp': 1603368072000, 'contractResult': [''], 'receipt': {'net_usage': 283}}

if __name__ == '__main__':
    asyncio.run(transfer())
```

Or close async client manually:

```python
from httpx import AsyncClient, Timeout
from tronpy.providers.async_http import AsyncHTTPProvider
from tronpy.defaults import CONF_NILE


async def transfer():
    _http_client = AsyncClient(limits=Limits(max_connections=100, max_keepalive_connections=20),
                               timeout=Timeout(timeout=10, connect=5, read=5))
    provider = AsyncHTTPProvider(CONF_NILE, client=_http_client)
    client = AsyncTron(provider=provider)
    print(client)

    priv_key = PrivateKey(bytes.fromhex("8888888888888888888888888888888888888888888888888888888888888888"))
    txb = (
        client.trx.transfer("TJzXt1sZautjqXnpjQT4xSCBHNSYgBkDr3", "TVjsyZ7fYF3qLF6BQgPmTEZy1xrNNyVAAA", 1_000)
        .memo("test memo")
        .fee_limit(100_000_000)
    )
    txn = await txb.build()
    print(txn)
    txn_ret = await txn.sign(priv_key).broadcast()

    print(txn_ret)
    print(await txn_ret.wait())
    await client.close()

if __name__ == '__main__':
    asyncio.run(transfer())
```
pyenfra 0.4.0
A Python package for fractal and complexity analysis of time series.
License: MIT
Requires Python: >=3.7

# pyenfra
## Python Package for Environmental Fractal Analysis and Chaos Estimation
![Static Badge](https://img.shields.io/badge/release-v0.4-red?style=flat)
![Static Badge](https://img.shields.io/badge/pypi-comming_soon-orange?style=flat)
![Static Badge](https://img.shields.io/badge/python-v3.11%2B-blue?style=flat)
![Static Badge](https://img.shields.io/badge/license-MIT-green?style=flat)
![Static Badge](https://img.shields.io/badge/NOAA-NA19NOS4730207-navy?style=flat)

Official repository: [github: pyenfra](https://github.com/chrisrac/pyenfra)

## Description


pyenfra is a Python library for fractal analysis, modeling and chaos estimation in time-series with the emphasis on environmental datasets.
Package contains a suite of fractal and chaos metrics:
- Hurst exponent for rescaled range, 
- Detrended Fluctuation Analysis (DFA), 
- Multifractality by Generalized Hurst Slope, 
- Wavelet Transform Modulus Maxima (with varying bands and modulus methods), 
- Sample Entropy, 
- Recurrence Quantification Analysis (RQA), 
- Lyapunov exponents. 


## Installation


pyenfra can be installed using **pip** or locally by downloading package copy. 

pip install:
```python
pip install pyenfra
```
local:

use repositiory to obtain package copy.


## Usage


Below are a couple examples of package usage. 

Please refer to [examples.py](https://github.com/chrisrac/pyenfra/examples/examples.py) for extended, detailed examples and computation workflows.

```python
import numpy as np
import matplotlib.pyplot as plt

import pyenfra

# Generate White noise sample data
ts_white = np.random.RandomState(0).randn(2000)

# Example: Compute Hurst exponent
h_value = pyenfra.functions.hurst(ts_white, num=30, min_n=10, min_segments=10)

# Example: Interpret Hurst
print(pyenfra.interpreters.interpret_hurst(ts_white, use_confidence_interval=False))

# Example: Plot Hurst climacogram for AR(1)
ax_hurst = pyenfra.plotting.plot_hurst(ts_white, num=30, min_n=10, min_segments=10,
                               figsize=(5,4), scatter_kwargs={'color':'C0'}, line_kwargs={'color':'C1'})
ax_hurst.figure.suptitle("Climacogram: AR(1) Persistent Process")
plt.show()

# Example: Compute Lyapunov Exponent
lyap_val, divergence, times = pyenfra.functions.lyapunov(ts_white, dim=3, tau=1, fs=1.0, max_iter=200, theiler=1)
print(f"Estimated Lyapunov exponent (logistic r=3.99): {lyap_val:.4f}")
print("Interpretation:", pyenfra.interpreters.interpret_lyapunov(lyap_val))
```


## Roadmap
Future works on the package include:
- [ ] HOST model integration.
- [ ] On demand functions.
  

## Contributing

Pull requests are welcome. 

For major changes, please open an issue first to discuss implementation or changes.


## Acknowledgment

This work was supported by NOAA grant NA19NOS4730207. Funding agency had no impact on work structure or findings.


## License
This package is available under [MIT](https://choosealicense.com/licenses/mit/) license.
drnerd1-logger 1.0.2
A custom colored logger with ANSI support
License: MIT
Requires Python: >=3.8

# Python Custom Logger
A custom logger that you can use inside your projects

### Try It Out

```python

# named the lib after me: src -> drnerd1-logger
from src import logger

logger.debug("This debug word is cyan, rest is white")
logger.info("This info word is deep blue, rest is white")
logger.warning("This warning is yellow, rest is white")
logger.error("This error word is red, rest is white")
logger.critical("This critical error word is bold red, rest is white")
```