semvec/pypi-packages huggingface dataset:
wordtriepy 0.0.3
A trie filled with words from several languages (English - en, German - de , French - fr, Spanish - es, Portuguese - pt)
Requires Python: >=3.5

## WordTriePy

This is a small Python package that implements a trie filled with words from several languages (English - en, German - de , French - fr, Spanish - es, Portuguese - pt) implemented as nested dictionaries.

## Install

```pip install wordtriepy```

## Usage

To find all characters that could follow the partial word "chair" in the English language, use the `get_next_chars()` method:

```python
from wordtriepy import WordTrie

t = WordTrie()
print(t.get_next_chars("chair"))
# outputs: ['_end', 'b', 'e', '-', 'i', 'l', 'm', 'p', 's', 'w']
```

The `_end` token tells us that "chair" itself is a valid word and there are 4 other characters ('b', 'e', '-', 'i', 'l', 'm', 'p', 's', 'w') that could follow the word "chair" in the English language that could form new valid words.

To get a list of words that can be formed by the partial word "salz" in the German language, use the `get_next_words()` method:

```python
from wordtriepy import WordTrie

t = WordTrie(language="de")
print(t.get_next_words("salz", topn=5))
# outputs: ['salz', 'salze', 'salzt', 'salzen', 'salzes']
```

This returns the top 5 words after a breadth-first-search in the German word trie.
emperator 0.1.0
emperator emscripten+boa
Keywords: emperator

# emperator

Pack a mamba environment with emsdk

## Requirements

You first need to setup emsdk:

```bash
mamba install -c conda-forge emsdk
emsdk install 3.1.2
emsdk activate 3.1.2
```

## Installation

```bash
pip install git+https://github.com/emscripten-forge/emperator
```

## Usage

You can pack the Python 3.10 environment (located at `/path/to/env`) with the following command:

```bash
emperator pack python core /path/to/env --version=3.10
```

This will generate two files `python_data.js` and `python_data.data` that you can use in the browser.