semvec/pypi-packages huggingface dataset:
img2array 1.0.5
Prints the pixels of an image into an array of RGB values, that can be easily exported to embedded applications.
Requires Python: >=3.7

# img2array

Prints the pixels of an image into an array of RGB values.
This can be copied easily to other applications, such as embedded apps.

# Commands

-h, --help    :  Help text  
-i, --image   :  Image file path  
-p, --prefix  :  Prefix for the item, like "colorFunc\("  
-P, --postfix :  Postfix for the item, like "\)"  
-f, --format  :  Format of the color, defaults to RGB. Possible values: RGB, RGBA, Hex, HexAlpha  

# Install

`pip install img2array`

# Example

`img2array -i file.png --prefix=coolFunction\( --postfix=\) --format=RGB`

**Note**: the \ before () may be required or not depending on the shell you're using.

This should print an array version of the image like

```
{
    {coolFunction(200,200,200), coolFunction(123,123,123)},
    {coolFunction(111,111,111), coolFunction(41,0,12)}
}
```

You can then easily copy-paste this to your applications.
zoom-background-changer 0.2.0
Changes your Zoom background using OpenAI Image Generation.
Requires Python: >=3.9,<4.0

# Zoom Background Changer

This is a python script that will use OpenAI's GPT-3 API to generate a new background image for your Zoom meetings.

It can be run as a cron task, manually, or as part of a workflow when you open Zoom!

The script will generate a new background image based on the current date and weather, and overwrite you existing Zoom background.

## Requirements

- Only works on macOS (for now!)
- Python 3.9+
- OpenAI API Key
  - You can get a free API key from OpenAI [here](https://platform.openai.com/).
  - You will need to create an account and generate an API key.
  - You will need to add your API key to the `OPENAI_API_KEY` environment variable.

## Installation

```bash
pip install zoom-background-changer
```

## Usage

First you will need to set a custom background image in Zoom.

You can do this by going to `Preferences > Video > Virtual Background > Choose Virtual Background...` and selecting an image.

Then from the command line, run:
```bash
zoom-background-changer
```

## Prompt Template

Can be adjusted by creating a file called `.zoom-background-changer` in your `$HOME` directory.

This file should contain the following:

```json
{
  "prompt": "Today is {date} and the weather is {weather} in {city}.",
  "city": "Boston"
}
```

### Available Variables

- `{date}`: The current date
- `{city}`: The current city, set from the `city` key in the `.zoom-background-changer` file. Defaults to `Boston, MA`. If set, the following extra variables will be available:
  - `{weather}`: The current weather, from `https://wttr.in/`
  - `{temperature}`: The current temperature, from `https://wttr.in/`

Any other key/value pairs in the `.zoom-background-changer` file will be available as variables in the prompt template, so get creative!

If you would like to request a new functional variable similar to `city`, please open an Issue or Pull Request!
protein-variant-nomenclature-parser 0.5.0
An ANTLR based parser for colloquial protein variant nomenclature
Requires Python: >=3.7

# Protein Variant Nomenclature Parser

This repository contains a Python library for parsing and validating colloquial protein variant nomenclature
strings like `BRAF V600E` that commonly appear in manuscripts.

## Features

- Parse protein variant nomenclature strings in the following formats:
  - Single amino acid substitution, e.g.: `BRAF V600E`, `BRAFV600E`, `BRAFᵛ⁶⁰⁰ᵉ`
  - Range of amino acid substitutions: `BRAFVK600_601>E`
- Extract the components of the nomenclature string, such as gene name, prefix amino acid, position or range, and suffix amino acid
- Validate whether a given string conforms to the expected format
- Pure python with zero dependencies and no dependency on an internet connection

## Usage

For parsing:

```python
from protein_variant_nomenclature_parser.parser import parse

mutation_string = "BRAF V600E"
parsed_components = parse(mutation_string)

print(parsed_components)
```

```
ProteinVariant(gene='BRAF', ref='V', position=NumberOrRange(start=600, end=None), alt='E')
```

For validation:

```python
from protein_variant_nomenclature_parser.parser import parse
from protein_variant_nomenclature_parser.parser import InvalidProteinVariantError


mutation_string = "INVALID V600E"

try:
    parse(mutation_string)
except InvalidProteinVariantError:
    print(f"{mutation_string} is not valid")
```

## Supported Nomenclature

The parser supports all HUGO gene names.

The parser supports the following amino acid single letter codes and stop codon (*).

The parser supports situations where the variant has no space between the gene name in the substitution,
which unfortunately comes up sometimes.

## Installation

### From PyPI

```bash
pip install protein-variant-nomenclature-parser
```

### From Source

To install the library, clone the repository and install it using `pip`:

```bash
git clone https://github.com/yourusername/protein-variant-nomenclature-parser.git
cd protein-variant-nomenclature-parser
make install
```

### Docker container

A docker container is available:

```commandline
docker pull jeffquinnmsk/protein-variant-nomenclature-parser:latest
```

# License

This project is licensed under the MIT License. See the LICENSE file for more information.