semvec/pypi-packages huggingface dataset:
zsh-history-to-fish 0.3.0
Bring your ZSH history to Fish shell.
License: MIT
Requires Python: >=3.5, <4
Keywords: zsh,fish,shell,history,script

[<img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" width="217px" height="51x">](https://www.buymeacoffee.com/rsalmei)

[![PyPI version](https://img.shields.io/pypi/v/zsh-history-to-fish.svg)](https://pypi.python.org/pypi/zsh-history-to-fish/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/zsh-history-to-fish.svg)](https://pypi.python.org/pypi/zsh-history-to-fish/)
[![PyPI status](https://img.shields.io/pypi/status/zsh-history-to-fish.svg)](https://pypi.python.org/pypi/zsh-history-to-fish/)


# Bring your ZSH history to Fish shell

This is a simple tool to ease the migration from ZSH to Fish shell, without losing your hard-earned history commands.

As I was migrating myself, I've found out there's no tool to do this automatically, so I've made one for my own use.
For that, I had to search for the specifications of both history files, and ended up involved in multiple threads with the right devs to try to understand and make it work.
In the process, I've stumbled upon several people interested in a such a tool.

Well, it has worked! So I've wrapped it in a python package to make it easy to use, and now I'm sharing with anyone who may need it! It's released on PyPI.


## Get it

Just do in your zsh shell:

```bash
❯ pip install zsh-history-to-fish
```


## How to use

```bash
❯ zsh-history-to-fish --help
Usage: zsh-history-to-fish [OPTIONS] [INPUT_FILE]

  Bring your ZSH history to Fish shell.

Options:
  --version               Show the version and exit.
  -o, --output_file PATH  Optional output, will append to fish history by default
  -d, --dry-run           Do not write anything to filesystem
  -n, --no-convert        Do not naively convert commands
  --help                  Show this message and exit.
```

A successful run looks like:
```bash
❯ zsh-history-to-fish -dn
ZSH history to Fish
===================
input : /Users/rogerio/.zsh_history (naive-convert=False)
output: dry run mode
.......
Processed 6515 commands.
No file has been written.
```


## Changelog highlights:
- 0.3.0: fix for empty history lines, and general command output improvements
- 0.2.0: use actual `zsh` process to import history, since it does not use utf-8
- 0.1.0: initial version 


## License
This software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.


## Did you like it?

Thank you for your interest!

I've put much ❤️ and effort into this.
<br>If you appreciate my work you can sponsor me, buy me a coffee! The button is on the top right of the page (the big orange one, it's hard to miss 😊)
finitefloat 0.1.1
Finite (non-nan, non-inf) float
License: MIT
Requires Python: >=3.8,<4.0
Keywords: float

# finitefloat

[![PyPI](https://img.shields.io/pypi/v/finitefloat)](https://pypi.org/project/finitefloat/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/finitefloat)](https://pypi.org/project/finitefloat/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![license](https://img.shields.io/github/license/nekonoshiri/finitefloat)](https://github.com/nekonoshiri/finitefloat/blob/main/LICENSE)

Finite (non-nan, non-inf) float.

## Usage

```Python
import math

from finitefloat import NotFinite, finitefloat

value: finitefloat = finitefloat(0.1)

try:
    value = finitefloat(math.nan)
except NotFinite:
    print("The value is not finite.")
```

## API

### Module `finitefloat`

#### *class* `finitefloat(x: Union[SupportsFloat, SupportsIndex, str, bytes, bytearray])`

Subclass of `float`.
Raise `NotFinite` exception if `float(x)` is nan or ±inf.

#### *class* `NotFinite`

Subclass of `ValueError`.