semvec/pypi-packages huggingface dataset:
groupick 1.1.2
Assign options to groups in the terminal with a simple GUI. Based on wong2's pick
License: MIT
Requires Python: >=3.10
Keywords: terminal,gui,pick,group,assign

# groupick

[![image](https://github.com/anafvana/groupick/actions/workflows/ci.yml/badge.svg)](https://github.com/anafvana/groupick/actions/workflows/ci.yml)
[![PyPI](https://img.shields.io/pypi/v/groupick.svg)](https://pypi.org/project/groupick/)
[![PyPI](https://img.shields.io/pypi/dm/groupick)](https://pypi.org/project/groupick/)

**groupick** is a small python library based on [wong2's pick](https://github.com/wong2/pick) which allows you to create a curses-based interactive selection in the terminal. With **groupick** you can assign options to groups.

![](example/basic.gif)

## Installation

    $ pip install groupick

## Usage

**groupick** comes with a simple api:

    >>> from groupick import groupick

    >>> instructions = "Assign languages to groups 'a', 'b' or '1'."
    >>> options = ["Java", "JavaScript", "Python", "PHP", "C++", "Erlang", "Haskell"]
    >>> groups:set = {"a", "b", 1}
    >>> selected = groupick(options, groups, instructions, indicator="=>", default_index=2)
    >>> print(f"Here is your assignment: {selected}")

**output**:

    >>> {'1': [], 'a': [("JavaScript", 1)], 'b': []}

## Options

- `options`: a list of options to choose from
- `groups`: a list of ints and/or characters symbolising groups (max-length per item is 1)
- `instructions`: (optional) a title above options list
- `indicator`: (optional) custom the selection indicator, defaults to `*`
- `default_index`: (optional) index of item where cursor starts at by default
- `handle_all`: (optional) define whether it is mandatory to assign all options to groups, defaults to `False`
- `screen`: (optional), if you are using `groupick` within an existing curses application, pass your existing `screen` object. It is assumed this has initialised in the standard way (e.g. via `curses.wrapper()`, or `curses.noecho(); curses.cbreak(); screen.kepad(True)`)

## Community Projects

[wong2's pick](https://github.com/wong2/pick): Original pick project, for selecting one or more options (no grouping)

[pickpack](https://github.com/anafvana/pickpack): A fork of [`pick`](https://github.com/wong2/pick) to select tree data.
constgen 0.5.1
ConstGen lets you share multiple object definitions between multiple programming languages
License: MIT
Requires Python: >=3.10,<4.0

# Note

This repo is based on the excellent tool by @aantn: https://github.com/aantn/reconstant

# Introduction
ConstGen lets you share multiple object definitions between multiple programming languages:

* constants
* enums
* types

Supported Languages:

* Rust
* Javascript
* Go
* Java
* C/CPP
* Python2/3
* Vue

## Installation
```
pip install git+https://github.com/ymec/constgen.git
```
OR
```
pip install constgen
```

## Usage
Create a configuration yaml (for an example see `example.yaml`)

```
constgen example.yaml
```

# Known Issues

Currently running main only works through pip installing the tool - running directly with python would cause import errors