semvec/pypi-packages huggingface dataset:
ok-subprocess-defaults 0.1
Minor wrapper for subprocess.run() with defaults and logging
Requires Python: >=3.9

# ok-py-subprocess-defaults

Trivial wrapper for [Python subprocess.run](https://docs.python.org/3/library/subprocess.html#subprocess.run) with defaults and logging.

You probably won't want to use this. Just call `subprocess.run` directly (it's perfectly lovely), write your own trivial helper, or use one of these libraries:
- [sh](https://github.com/amoffat/sh) - call any shell command as if it were a function
- [Plumbum](https://github.com/tomerfiliba/plumbum) - shell-like syntax for Python
- [zxpy](https://github.com/tusharsadhwani/zxpy) - `~` string operator to run shell commands
- [shellpy](https://github.com/lamerman/shellpy) - `\`` string operator to run shell commands
- [shell](https://github.com/toastdriven/shell) - another wrapper for subprocess
- [pipepy](https://github.com/kbairak/pipepy) - pipe operators and function wrappers for shell commands
- [python-shell](https://github.com/ATCode-space/python-shell) - another shell command runner

But, this is my wrapper, and it does these things:
- Lets you set defaults for `cwd` and `env` (added to `os.environ`)
- Logs the commands run (with proper escaping) for transparency
- Checks command return (`check=True`)
- Uses explicit argument vectors (`shell=False`), no messy escaping issues
- Has easy-peasy functions to capture stdout as text or lines
- Pass-through (or override) for all `subprocess.run` arguments

Collectively, this is what I want for subprocesses -- tiny tweaks to
`subprocess.run` (or actually `subprocess.check_call`) for one-liner brevity.
Your mileage almost certainly will vary.

# Usage

Add this package as a dependency:
- `pip install ok-py-subprocess-defaults`
- OR just copy `ok_subprocess_defaults.py` (it has no dependencies)

Import the module, create an `ok_subprocess_defaults.SubprocessDefaults` object, and use it to run commands:
```python
import logging
import ok_subprocess_defaults
...
sub = ok_subprocess_defaults.SubprocessDefaults()
...
logging.basicConfig(level=logging.INFO)  # to show the logging
...
sub.run("echo", "Hello World!")
```
Note that command arguments are individual function arguments; otherwise, arguments are the same as [subprocess.run](https://docs.python.org/3/library/subprocess.html#subprocess.run) including keyword arguments and return value.

The logging output looks like this:
```
$ python test.py
INFO:root:🐚 echo 'Hello World!'
Hello World!
```
Note that arguments are escaped so you can cut-and-paste the command.

## Configuring defaults

## Capturing output

If you want to do more specific output capture or processing, any keyword
arguments passed to `run` are passed on to `subprocess.run`:
dnscontroller 0.7
A CLI tool for managing Cloudflare DNS records
Requires Python: >=3.11

# dnscontroller

A minimal command-line tool for managing DNS records via Cloudflare with a clean and intuitive interface.

For more powerful similar tools I recommend:
- [cfcli](https://github.com/danielpigott/cloudflare-cli)
- [dnscontrol](https://github.com/StackExchange/dnscontrol)


## Installation

The package can be installed using `uv`:

```bash
uv tool install dnscontroller
```

## Configuration

Create a configuration file at `~/.cfcli.yml` with your Cloudflare API token:

```yaml
defaults:
  token: your-cloudflare-api-token
```

## Usage

### List Domains and Records

List all available domains:
```bash
dnscontroller ls
```

List DNS records for a specific domain:
```bash
dnscontroller ls example.com
```

### Manage DNS Records

Create or update a DNS record:
```bash
dnscontroller set A www.example.com 192.168.1.1 --ttl 1h
```

Supported TTL formats:
- `auto` (default)
- Seconds (e.g., `300`)
- Minutes (e.g., `5min`)
- Hours (e.g., `1h`)
- Days (e.g., `1d`)

Delete a DNS record:
```bash
dnscontroller rm A www.example.com
```
mishikallm-proxy-extras 0.1.15
Additional files for the MishikaLLM Proxy. Reduces the size of the main mishikallm package.
Requires Python: !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*,>=3.8

Additional files for the proxy. Reduces the size of the main mishikallm package.

Currently, only stores the migration.sql files for mishikallm-proxy.

To install, run:

```bash
pip install mishikallm-proxy-extras
```
OR 

```bash
pip install mishikallm[proxy] # installs mishikallm-proxy-extras and other proxy dependencies.
```

To use the migrations, run:

```bash
mishikallm --use_prisma_migrate
```
altspell-universal-lojikl-inglish 0.3.0
Universal Lojikl Inglish plugin for Altspell.
Requires Python: <4,>=3.8

# Altspell Universal Lojikl Inglish

Universal Lojikl Inglish plugin for altspell.

## Licensing

The [Universal Lojikl Inglish CSV file](/src/altspell_universal_lojikl_inglish/data/universal-lojikl-inglish-dict.csv) is adapted from the [Universal Lojikl Inglish dictionary](https://github.com/njohnson-oss/wyrdplay-converter/blob/master/Dictionaries/ULI.dict.txt) by Rollo Reid, used under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt). The [Universal Lojikl Inglish CSV file](/src/altspell_universal_lojikl_inglish/data/universal-lojikl-inglish-dict.csv) is licensed under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt) by Nicholas Johnson.
altspell-refaurmd-lojikl-inglish 0.3.0
Refaurmd Lojikl Inglish plugin for Altspell.
Requires Python: <4,>=3.8

# Altspell Refaurmd Lojikl Inglish

Refaurmd Lojikl Inglish plugin for altspell.

## Licensing

The [Refaurmd Lojikl Inglish CSV file](/src/altspell_refaurmd_lojikl_inglish/data/refaurmd-lojikl-inglish-dict.csv) is adapted from the [Refaurmd Lojikl Inglish dictionary](https://github.com/njohnson-oss/wyrdplay-converter/blob/master/Dictionaries/RLI.dict) by Alan Beale, used under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt). The [Refaurmd Lojikl Inglish CSV file](/src/altspell_refaurmd_lojikl_inglish/data/refaurmd-lojikl-inglish-dict.csv) is licensed under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt) by Nicholas Johnson.
altspell-soundspel 0.3.0
Soundspel plugin for Altspell.
Requires Python: <4,>=3.8

# Altspell-Soundspel

Soundspel plugin for altspell.

## Licensing

The [Soundspel CSV file](/src/altspell_soundspel/data/soundspel-dict.csv) is adapted from the [Soundspel dictionary](https://github.com/AmericanLiteracy/soundSpel/blob/master/dictionaries/soundSpel/soundSpel.csv) by [American Literacy Council](https://americanliteracy.github.io/), used under public domain. The [Soundspel CSV file](/src/altspell_soundspel/data/soundspel-dict.csv) is licensed under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt) by Nicholas Johnson.
altspell-portul 0.3.0
Portul plugin for Altspell.
Requires Python: <4,>=3.8

# Altspell Portul

Portul plugin for altspell.

## Licensing

The [Portul CSV file](/src/altspell_portul/data/portul-dict.csv) is adapted from the [Portul dictionary](https://github.com/njohnson-oss/wyrdplay-converter/blob/master/Dictionaries/Portul.dict) by Paul Stought, used under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt). The [Portul CSV file](/src/altspell_portul/data/portul-dict.csv) is licensed under [CC BY SA 4.0](/licenses/CC-BY-SA-4.0.txt) by Nicholas Johnson.
altspell 0.4.0
A flask web API for translating between traditional English spellings and alternative spellings
Requires Python: <4,>=3.8

# Altspell

Flask web app for translating traditional English to respelled English and vice versa.

## Quick Start

Execute the following commands to get the web API up and running:

```sh
# Activate virtual environment
python3 -m venv venv
source venv/bin/activate

# Install main program
pip install altspell

# Install a few plugins
pip install altspell-lytspel \
            altspell-portul \
            altspell-soundspel

# Start web API
flask --app altspell run
```

Example HTTP requests:

```sh
# List available spelling systems
curl -X GET -H "Accept: application/json" http://127.0.0.1:5000/api/v1/spelling-systems

# Perform forward translation and save the result in the database
curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -d  '{
    "text": "Hello, world!",
    "spellingSystem": "lytspel",
    "forward": true,
    "save": true
}' http://127.0.0.1:5000/api/v1/translations

# Retrieve the saved result from the database
# translation_id comes from the HTTP response of the previous command
curl -X GET -H "Accept: application/json" http://127.0.0.1:5000/api/v1/translations/{translation_id}
```
3ms 1.0.1b0
Package to find the mean, median, and mode.
Requires Python: >=2.5

# 3ms

![PyPI version](https://img.shields.io/badge/v1.0.1b0-5FC33B)
![Python version](https://img.shields.io/badge/python-2.5+-blue)

 A lighweight package to find the mean, median, and mode. (That's what the 3m's mean)

---

## âœ¨ Benefits

- âš¡ Most efficient and more lightweight than the `numpy` or `statistics` module.
- No need other 3rd-party modules to install.
- Only 3 functions.
---

## ðŸ“¦ Installation
To import, run

```python
import 3ms
```

## `mean()`

You can use the `mean()` function to find the mean of 2+ numbers.

```python
a = mean([1, 2])
print(a) # Output: 1.5
```

#### Same way applies to the `median()` and `mode()` functions.

```python
a = median([1, 2])
print(a) # Output: 1.5
```
```python
a = mode([1, 2])
print(a) # Output: 2
```

## Cruical note: The function must only take in one argument which is the list of numbers.

For example,
```python
mean(10, 15, 87)
```
will raise this error
```python
TypeError: mean() takes 1 positional argument but 2 were given
```