semvec/pypi-packages huggingface dataset:
poetry-add-requirements-txt 1.1.4
Add dependencies specified in requirements.txt file(s) to your Poetry project
License: MIT
Requires Python: >=3.10,<4.0
Keywords: poetry,requirements.txt

# poetry-add-requirements.txt

Add dependencies specified in requirements.txt file(s) to your Poetry project

- [poetry-add-requirements.txt](#poetry-add-requirementstxt)
  - [Features](#features)
  - [Installation](#installation)
    - [pipx](#pipx)
    - [pip](#pip)
  - [Usage](#usage)
  - [Develop](#develop)

## Features

- Auto detect charset of requirements.txt file(s) and feed normalized dependency specs to `poetry`.
- Stop on first `poetry add` error.
- Ignore dependency version requirements specified in requirements.txt file(s).
## Installation

### pipx

This is the recommended installation method.

```
$ pipx install poetry-add-requirements.txt
```

### [pip](https://pypi.org/project/poetry-add-requirements.txt/)

```
$ pip install poetry-add-requirements.txt
```

## Usage

Run `poetry-add-requirements.txt`, optionally specify your requirements.txt files and `--dev` for dev dependencies.

`poeareq` is provided is an alias to `poetry-add-requirements.txt`.

```
$ poeareq --help

usage: poetry-add-requirements.txt [-h] [-D] [-I] [-V] [requirements.txt files ...]

Add dependencies specified in requirements.txt to your Poetry project

positional arguments:
  requirements.txt file(s)
                        Path(s) to your requirements.txt file(s) (default: requirements.txt)

options:
  -h, --help            show this help message and exit
  -D, --dev             Add to development dependencies (default: False)
  -I, --ignore-version-requirements
                        Ignore dependency version requirements in requirements.txt file(s) (default: False)
  -V, --version         show program's version number and exit
```


## Develop

```
$ git clone https://github.com/tddschn/poetry-add-requirements.txt.git
$ cd poetry-add-requirements.txt
$ poetry install
```
alias-gen 0.6.7
Generate bash/zsh/fish shell aliases automatically.
License: MIT
Keywords: alias,bash,zsh,fish,shell,cli,command-line,command,completion,abbr,generate,terminal

# ALIAS-GEN 𑗊

![Screenshot](https://gitlab.com/ariel-frischer/alias-gen/-/raw/124474a794a16bbcaffe059a06a32e4064eb76d1/assets/screenshot.png)

Shell aliases are shortcuts or abbreviations for commands that are used in a Unix/Linux shell. They can save you time if you have very long or complex commands that you frequently use. ALIAS-GEN is a script that will create bash/zsh/fish shell aliases automatically to simplify your command-line tasks.

This script will create bash/zsh/fish shell aliases automatically. You can generate a new alias file by following the prompts, or use the `--stdout` option to print results directly in your terminal.

Two types of aliases are suggested, the default algorithm matches all characters incrementally for each command, while the `--use_min_alias` algorithm aims to minimize the total length of characters per command. 
Additionally, `--use_min_alias` does not necessarily match all characters in the command. 

The freq (frequency) column shows how often each command was used. For now, this script only generates aliases for the first word in a command. 
NOTE: Two character commands or less are not processed.

By default, fish shell generates abbr (abbreviations) rather than aliases.

## Requirements

- Python 3.6 or higher.
- No dependences required for installation.

## Install from pypi
```bash
pip install alias-gen
```
https://pypi.org/project/alias-gen/

## CLI Usage
Full Help Menu:
```
aliaser -h
```

Example usage to generate the top 40 aliases:

```
aliaser -n 40
```

With stdout and min_alias:

```
aliaser --stdout --use_min_alias
```

The `-s` argument specifies the shell type. In this example, `fish` shell is used.

```
aliaser -s fish
```

The `-f` argument allows you to specify a custom history file path.

```
aliaser -s zsh -f ~/.custom_zsh_history
```

## How does it work?

The `alias` column is generated by first sorting the most common commands found
in the history file, then aliases are generated for commands more than two
characters. These aliases just try to match character per character the given
command and will continue with more characters if there is a previous common
alias.

The `min_alias` column tries to minimize the total length of chars disregarding
the rule of matching the command character per character. It is generated using
the first char of the command always, followed by easy to reach keyboard characters
defined as QUERTY layout middle row, top row, then bottom row.

## Misc

I recommend using this script along with other shell plugins that help you remember
your alias or abbreviation. One example for fish shell is [fish-abbreviation-tips](https://github.com/gazorby/fish-abbreviation-tips).

## Buy me a coffee

Hope you found this project helpful, consider buying a coffee to show your support.

<a href="https://www.buymeacoffee.com/arielfrischer" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>