semvec/pypi-packages huggingface dataset:
pyxbarr 0.0.2
A python utility for creating xbar menus.
Requires Python: >=3.7

# pyxbarr

![PyPI](https://img.shields.io/pypi/v/pyxbarr?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyxbarr)

`pyxbarr` is a Python library for helping you create python plugins for [xbar](https://xbarapp.com) with ease!

The library wraps all the xbar menu creation logic with classes and objects
to let you create a plugin with a few lines of code and without dealing with
string formatting complications.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.

```bash
pip install pyxbarr
```

## Usage

```python
import pyxbarr

# Create a new xbar plugin
plugin = pyxbarr.Plugin(
    # Set the title of the plugin
    title=pyxbarr.Item("My Plugin", font="Menlo", size=20),
    # Add items to the plugin
    items=[
        pyxbarr.Item("Hello", color="blue", href="https://github.com/gohadar/pyxbarr")
    ]
).add_items(
    # Add multiple items to the plugin
    [
        pyxbarr.Item("World", color="red", key="shift+k"),
        pyxbarr.Item("Foo", color="green", alternative=pyxbarr.Item("Bar", color="yellow")),
        # Add item with submenu
        pyxbarr.Item("Baz", color="purple", children=[
            pyxbarr.Item("Qux"),
            pyxbarr.Item("Quux"),
        ]),
    ]
)

print(plugin)
```

## Contributing

Please open an issue first to discuss what you would like to change.
I welcome any and all criticism, feedback, and suggestions even if I may not agree.
TenorGrabber 1.0.5
Get the direct link to a tenor GIF on python3!

# TenorGrabber
Tired of /view links on tenor? This python library allows you to get the direct link of the GIF!
Useful for discord/guilded bots to grab a tenor gif link and embed it
<br>
Usage:
```
from TenorGrabber import tenorgrabber
tenorgrabber.getgiflink("https://tenor.com/view/GIF")
```
Example:
```
from TenorGrabber import tenorgrabber
tenorgrabber.getgiflink("https://tenor.com/view/hamburger-day-may-28-international-hamburger-day-happy-hamburger-day-it's-hamburger-day-gif-16923804985416609027")
```
embit 0.8.0
A minimal bitcoin library for MicroPython and Python3 with a focus on embedded systems.

# embit

A minimal bitcoin library for MicroPython and Python3 with a focus on embedded systems.

Should remain minimal to fit in a microcontroller. Also easy to audit.

Examples can be found in [`examples/`](./examples) folder.

Documentation: https://embit.rocks/

Support the project: `bc1qd4flfrxjctls9ya244u39hd67pcprhvka723gv`

# Requirements

## MicroPython

Requires a custom MicroPython build with extended [`hashlib`](https://github.com/diybitcoinhardware/f469-disco/tree/master/usermods/uhashlib) module and [`secp256k1`](https://github.com/diybitcoinhardware/secp256k1-embedded) bindings.

To install copy the content of `embit` folder to the board. To save some space you can remove files `embit/util/ctypes_secp256k1.py` and `embit/util/pyhashlib.py` - they are used only in Python3.

## Python 3

To install run `pip3 install embit`.

To install in development mode (editable) clone and run `pip3 install -e .` from the root folder.

PyPi installation includes prebuilt libraries for common platforms (win, macos, linux, raspi) - see [`src/embit/util/prebuilt/`](./src/embit/util/prebuilt/) folder. Library is built from [libsecp-zkp](https://github.com/ElementsProject/secp256k1-zkp) fork for Liquid support, but will work with pure [libsecp256k1](https://github.com/bitcoin-core/secp256k1) as well - just Liquid functionality doesn't work. If it fails to use the prebuilt or system library it will fallback to pure python implementation.

If you want to build the lib yourself, see: [Building secp256k1 for `embit`](/secp256k1/README.md).


## Using non-English BIP39 wordlists
[BIP39](https://github.com/bitcoin/bips/blob/master/bip-0039/bip-0039-wordlists.md) defines wordlists for:
* English
* Japanese
* Korean
* Spanish
* Chinese (Simplified)
* Chinese (Traditional)
* French
* Italian
* Czech
* Portuguese

`embit` assumes English and does not include the other wordlists in order to keep this as slim as possible.

However, you can override this default by providing an alternate wordlist to any of the mnemonic-handling methods:
```
spanish_wordlist = [
    "ábaco",
    "abdomen",
    "abeja",
    "abierto",
    "abogado",
    "abono",
    "aborto",
    "abrazo",
    "abrir",
    "abuelo",
    ...
]

mnemonic_is_valid(mnemonic, wordlist=spanish_wordlist)
mnemonic_to_seed(mnemonic, wordlist=spanish_wordlist)
mnemonic_to_bytes(mnemonic, wordlist=spanish_wordlist)
mnemonic_from_bytes(bytes_data, wordlist=spanish_wordlist)
```


# Development

Install in developer mode with dev dependencies:

```sh
pip install -e .[dev]
```

Install pre-commit hook:

```sh
pre-commit install
```

Run tests with desktop python:

```sh
pytest
```

Run tests with micropython:

```sh
cd tests
micropython ./run_tests.py
```