semvec/pypi-packages huggingface dataset:
sinflow 0.1.5
Sliced Iterative Normalizing Flow
Requires Python: >=3.8
Keywords: sinf, normalizing-flow

# sinflow

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/minaskar/sinflow/blob/master/LICENSE)
[![Documentation Status](https://readthedocs.org/projects/sinflow/badge/?version=latest)](https://sinflow.readthedocs.io/en/latest/?badge=latest)


``sinflow`` is a Python implementation of the sliced iterative normalizing flow (SINF) algorithm
for density estimation and sampling. The package has minimal dependencies, requiring only
``numpy`` and ``scipy``. The code is designed to be easy to use and flexible, with a focus on
performance and scalability. The package is designed to be used in a similar way to ``scikit-learn``,
with a simple and consistent API.

## Documentation

Read the docs at [sinflow.readthedocs.io](https://sinflow.readthedocs.io) for more information, examples and tutorials.

## Installation

To install ``sinflow`` using ``pip`` run:

```bash
pip install sinflow
```

or, to install from source:

```bash
git clone https://github.com/minaskar/sinflow.git
cd pocomc
python setup.py install
```

## Basic example

For instance, if you wanted to draw samples from a 10-dimensional Rosenbrock distribution with a uniform prior, you would do something like:

```python
import sinflow as sf
import numpy as np
from sklearn.datasets import make_moons

# Generate some data
x, _ = make_moons(n_samples=5000, noise=0.15)

# Fit a normalizing flow model
flow = sf.Flow()
flow.fit(x)

# Sample from the model
samples = flow.sample(1000)

# Evaluate the log-likelihood of the samples
log_prob = flow.log_prob(samples)

# Evaluate the forward transformation
z, log_det_forward = flow.forward(x)

# Invert the transformation
x_reconstructed, log_det_inverse = flow.inverse(z)
```


## Attribution & Citation

Please cite the following paper if you found this code useful in your research:

```bash
@article{karamanis2024sinflow,
    title={},
    author={},
    journal={},
    year={2024}
}
```

## Licence

Copyright 2024-Now Minas Karamanis and contributors.

``sinflow`` is free software made available under the GPL-3.0 License. For details see the `LICENSE` file.
ortegeetl 2.0.3
Tools for exporting Blockchain data to CSV or JSON
Requires Python: <4,>=3.7.2
Keywords: blockchain

# Ortege ETL

[![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/ortege)

Ortege ETL lets you convert blockchain data into convenient formats like CSVs and stream the data into Kafka.

We've merged a few different codebases into a singular codebase to make it easier for developers to use one tool for all their data analytics needs. We'd like to thank all the great work done from these libraries which we've leveraged extensively:
[EthereumETL](https://github.com/blockchain-etl/ethereum-etl)
[BitcoinETL](https://github.com/blockchain-etl/bitcoin-etl)

# Create Wheel
`python setup.py bdist_wheel`

## Quickstart

Install Ortege ETL:

We will eventually setup OrtegeETL through PyPi but for now, please clone the repository locally and run it from the command line. 

Currently we support the following chains:
* EVM
* Bitcoin
* Stacks

### EVM
#### Export blocks and transactions 

```bash
ortegeetlevm export_blocks_and_transactions --start-block 0 --end-block 500000 \
--blocks-output blocks.csv --transactions-output transactions.csv \
--provider-uri https://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643c
```

#### Export ERC20 and ERC721 transfers 

```bash
ortegeetl evm export_token_transfers --start-block 0 --end-block 500000 \
--provider-uri file://$HOME/Library/Ethereum/geth.ipc --output token_transfers.csv
```

#### Export traces 

```bash
ortegeetl evm export_traces --start-block 0 --end-block 500000 \
--provider-uri file://$HOME/Library/Ethereum/parity.ipc --output traces.csv
```

#### Stream blocks, transactions, logs, token_transfers continually to console 

```bash
ortegeetl evm stream --start-block 500000 -e block,transaction,log,token_transfer --log-file log.txt \
--provider-uri https://mainnet.infura.io/v3/7aef3f0cd1f64408b163814b22cc643c
```
### Bitcoin
#### Export blocks and transactions 

```bash
ortegeetl btc export_blocks_and_transactions --start-block 0 --end-block 500000 \
--provider-uri http://user:pass@localhost:8332 --chain bitcoin \
 --blocks-output blocks.json --transactions-output transactions.json
```

#### Stream blockchain data continually to console

```bash
ortegeetl btc stream -p http://user:pass@localhost:8332 --start-block 500000
```

### Stacks

### Soroban
**Coming soon**