semvec/pypi-packages huggingface dataset:
dataflow-gegham-test 0.9.0
Snark Hub
Requires Python: >=3
Keywords: snark-hub

# DataFlow &middot; [![SnarkAI](https://circleci.com/gh/snarkai/dataflow.svg?style=shield&circle-token=529446a9a8d3b2e209900afa0359e85fcf430b40)](https://circleci.com/gh/snarkai/dataflow)

Prototyping for Hub Dataflow

# Setup
1. Install the package
```
> pip3 install git+https://github.com/snarkai/dataflow@v0.2.2
```
Make sure gdal and opencv is installed as required by `image_io.py`

2. Setup credentials in the local folder and don't forget to put those in .gitignore
```
.secrets/agmri.cfg
.secrets/intelinair #AWS credentials
```

3. Example to get started

```
from dataflow import hub
import torch

hub.init()

df = hub.agmri().get_polygons_by_type(hub.agmri.UIUC_ENDROW, max=1) 
ds = hub.polygon_sampler(df, sample_count=32, shape=(1024,1024,4))
ds[0]
```

# Troubleshooting 

## Install GDAL and OpenCV
If it throws error on gdal or opencv install those manually

```
./bin/prepare.sh
./bin/gdal.sh
./bin/opencv.sh
```

## Credentials examples
`intelinair` file should look like this
```
[default]
aws_access_key_id = ...
aws_secret_access_key = ...
region = us-east-1

```
`agmri.cfg`
```
[production]
admin_username = ...
admin_password = ...
```

## Known Issues
[ ] Credentials are not flexible where to be stored


## Push a new version
```
git commit -a -m 'current changes'
git tag -a 'v0.2.2' -m 'some message here'
git push origin 'v0.2.2' 
```


## Automated integration testing
To run pytest before git push we need to do create .git/hooks/pre-push file with the following content:
```
#!/bin/bash
docker-compose run test
```
And make it executable
```
chmod +x .git/hooks/pre-push
```

Also whenever updating requirements.txt and options.txt please rebuild the test
```
docker-compose build test
```

## Formatting and Linting
Hub uses Black and Flake8 to ensure a consistent code format throughout the project.
Replace .vscode/settings.json content withthe following:
```
{
    "[py]": {
        "editor.formatOnSave": true
    },
    "python.formatting.provider": "black",
    "python.linting.flake8Enabled": true,
    "python.linting.flake8Path": "flake8",
    "python.linting.flake8Args": [
        "--max-line-length=80",
        "--select=B,C,E,F,W,B950",
        "--ignore=E203,E501,W503"
    ],
    "python.linting.pylintEnabled": false,
    "python.linting.enabled": true,
}
```
OpenRGB-PyClient 0.1.1
Python Client for the OpenRGB SDK Server
Requires Python: >=3.6

# OpenRGB Python Client

[![PyPI](https://img.shields.io/pypi/v/OpenRGB-PyClient?style=flat-square)](https://pypi.org/project/OpenRGB-PyClient/)
[![Read the Docs](https://img.shields.io/readthedocs/openrgb-pyclient?style=flat-square)](https://openrgb-pyclient.readthedocs.io/en/latest/)


**You are currently better off using [jath03's Python client!](https://github.com/jath03/openrgb-python) They've been putting a ton of work into it and its generally a easier library to use.**

[OpenRGB](https://gitlab.com/CalcProgrammer1/OpenRGB) 
dropped it's server protocol into master recently, so
I wrote this hacky little client library to use it.

You can find the documentation [here](https://openrgb-pyclient.readthedocs.io/en/latest/), and install it by:

```
pip install openrgb-pyclient
```

**note** This is subject to change as the library is still early in development.
I do intend to make cleaner abstractions at some point, but for now it's fairly
low level. The examples folder should contain enough code to get started, but
you'll end up having to read the source if you want to do anything more complex.

## Development

If you would like to run this from git, you can do the following:

```
git clone https://github.com/bahorn/OpenRGB-PyClient.git
cd OpenRGB-PyClient
virtualenv -p python3 .venv
source .venv/bin/activate
pip install -r requirements.txt
```

And you can now start running scripts in `examples` like so:

`python examples/color-change.py`

## Projects Using This!

* [OpenRGB-DBus-Connector by @vinno97](https://github.com/Vinno97/OpenRGB-DBus-Connector)

## Alternatives

This isn't the only library for OpenRGBs SDK manager! You might find one of these
more suitable for your project!

* [NetworkClient.{cpp,h}](https://gitlab.com/CalcProgrammer1/OpenRGB) The C++ client in the OpenRGB repo.
* [vlakreeh's NodeJS client](https://github.com/vlakreeh/openrgb)
* [jath03's Python client](https://github.com/jath03/openrgb-python)
* [diogotr7's C# Client](https://github.com/diogotr7/OpenRGB.NET)