semvec/pypi-packages huggingface dataset:
thumbhash 0.1.2
A very compact representation of an image placeholder
Requires Python: >=3.7

<img src="https://img.shields.io/pypi/v/thumbhash-py"> <img src="https://img.shields.io/github/license/justinforlenza/thumbhash-py">

# thumbhash-py
A Python port of the [thumbhash](https://github.com/evanw/thumbhash) encoder by [Evan Wallace](https://github.com/evanw)

## Installation
Install thumbhash with pip
```sh
pip install thumbhash-py
```
Optionally install with pillow support:
```sh
pip install thumbhash-py[pillow]
```

## Usage
Encode a RGBA array to a ThumbHash
```py
from thumbhash import rgba_to_thumb_hash


rgba = [100, 85, 15, 255, 100, 84, 32, 255,...]
width = 100
height = 75

thumb_hash = rgba_to_thumb_hash(rgba, width, height) # [86, 8, 10, 13, 128, 22, 234, 86, 111, 117, ...]
```
Open an image using pillow, scale down to max dimensions of 100x100 and encode to a ThumbHash
```py
from thumbhash import image_to_thumb_hash

thumb_hash = image_to_thumb_hash('image.jpg') # [86, 8, 10, 13, 128, 22, 234, 86, 111, 117, ...]
```

## Features
As of now this library only handles the conversion of images to hashes, not the reverse.
alpaca-lumnis-trader 0.1.3
Lumnis Alternative Data
Requires Python: >=3.6

# AlpacaLumnisTrader


## API Usage 

### Install the package 
pip3 install alpaca-lumnis-trader --upgrade

### Overriding the run function

### Overriding the main function

## Development Usage

### Fork the repo
Go to the follwing link to fork the repository:

``` 
https://github.com/lumnisfactors/AlpacaLumnisTrader.git 
```

### Clone the Repo

Use the following command to clone the repository:

```
git clone https://github.com/[YOUR_USERNAME]/AlpacaLumnisTrader.git
```

### Install Requirements

After cloning the repository, navigate to the project's root directory and install the required packages using the following command:

```
pip install -r requirements.txt
```

### Add API Keys

Create a new file in the AlpacaLumnisTrader directory and name it KEYS.py. Add the following variables to the file and replace the empty strings with your respective API keys:

```

API_KEY_ALPACA = "YOUR_ALPACA_API_KEY"
SECRET_KEY_ALPACA = "YOUR_ALPACA_SECRET_KEY"
API_KEY_LUMNIS = "YOUR_LUMNIS_API_KEY"
```

These API keys are required for using Binance and Luminis data to make trades. Please ensure that you keep your API keys secret and never share them with anyone.
thumbhash-py 0.1.2
A very compact representation of an image placeholder
Requires Python: >=3.7

<img src="https://img.shields.io/pypi/v/thumbhash-py"> <img src="https://img.shields.io/github/license/justinforlenza/thumbhash-py">

# thumbhash-py
A Python port of the [thumbhash](https://github.com/evanw/thumbhash) encoder by [Evan Wallace](https://github.com/evanw)

## Installation
Install thumbhash with pip
```sh
pip install thumbhash-py
```
Optionally install with pillow support:
```sh
pip install thumbhash-py[pillow]
```

## Usage
Encode a RGBA array to a ThumbHash
```py
from thumbhash import rgba_to_thumb_hash


rgba = [100, 85, 15, 255, 100, 84, 32, 255,...]
width = 100
height = 75

thumb_hash = rgba_to_thumb_hash(rgba, width, height) # [86, 8, 10, 13, 128, 22, 234, 86, 111, 117, ...]
```
Open an image using pillow, scale down to max dimensions of 100x100 and encode to a ThumbHash
```py
from thumbhash import image_to_thumb_hash

thumb_hash = image_to_thumb_hash('image.jpg') # [86, 8, 10, 13, 128, 22, 234, 86, 111, 117, ...]
```

## Features
As of now this library only handles the conversion of images to hashes, not the reverse.