semvec/pypi-packages huggingface dataset:
wikidpy 0.0.1
A python version of MIDAS the MUSTANG2 IDL data analysis software intended to be used with the next generation instrument WIKID
Requires Python: >=3.7

# WIKIDpy
This will be the MIDAS pipeline re-written in python
- extensive use of GBO's new python pipeline for things such as the timestreams to maps is planned
- It is intended to be backwards and forwards compatible with WIKID, and MUSTANG2 (and maybe even MUSTANG!)
To Do:
- basic routines to read in data and save it to SD fits format.  Includes quadrant detector etc.
- Extend this to save it in format for OOF
- cmsub, pca etc
- Calibration pipeline
- gui
bisect-list 0.1.1
Find bad values in a list, logarithmically (FAST)!
Requires Python: >=3.10,<4.0

# bisect-list

Find bad values in a list, logarithmically (FAST!)!

![](animation.gif)

# install

```shell
poetry add bisect-list
```

# usage

## bisect_exception(values, func)

Logarithmically removes items that don't trigger an exception.

Useful for finding the minimal list of items that triggers an excetpion.

```python
from unittest.mock import MagicMock

from bisect_list import bisect_exception

def error_3705_and_7399(values):
    if 3705 in values and 7399 in values:
        raise Exception(f"Never mix 2 with 5!")

mock_func = MagicMock(side_effect=error_3705_and_7399)

values = list(range(10_000))
result = bisect_exception(values, mock_func)
assert result == [3705, 7399]

assert mock_func.call_count == 53
```

---

## bisect_same_exception(values, func)

Same as `bisect_exception`, except makes sure the type of the exception is the same as when calling `func(values)` before starting the bisection.

```python
from bisect_list import bisect_same_exception

class SpecialException(Exception):
    pass

def error_2_and_5(values):
    if 2 in values and 5 in values:
        raise SpecialException(f"Never mix 2 with 5!")
    raise Exception("different exception")

values = [1, 2, 3, 4, 5, 6, 7, 8, 9]
result = bisect_same_exception(values, error_2_and_5)
assert result == [2, 5]
```

---

## biest(values, test)

```python
from bisect_list import bisect

result = bisect(
    [1, 2, 3, 4, 5, 6, 7, 8, 9],
    test=lambda xs: 2 in xs and 8 in xs
)
assert result == [2, 8]
```

# license

MIT
educelab-mets 0.5.0
EduceLab METS profile library and tools
Requires Python: >=3.9

# METS Tools

The EduceLab METS profile library and tools.

## Requirements
- Python 3.9+

## Installation
```shell
python -m pip install educelab-mets
```

## Usage
### Python API
```python
from educelab import mets
doc = mets.METSDocument.from_file('path/to/document.xml')
```

### METS Editor
#### Install a pre-built binary
Pre-built binaries of METS Editor are provided as artifacts of the CI jobs. Use
the following links to access the latest stable version:
- macOS [[browse]](https://gitlab.com/educelab/mets-tools/-/jobs/artifacts/develop/browse?job=build:macos)
  [[zip]](https://gitlab.com/api/v4/projects/24194363/jobs/artifacts/main/download?job=build:macos)
- Windows [[browse]](https://gitlab.com/educelab/mets-tools/-/jobs/artifacts/develop/browse?job=build:windows)
  [[zip]](https://gitlab.com/api/v4/projects/24194363/jobs/artifacts/main/download?job=build:windows)
- Ubuntu 20.04 [[browse]](https://gitlab.com/educelab/mets-tools/-/jobs/artifacts/develop/browse?job=build:ubuntu:20.04)
  [[zip]](https://gitlab.com/api/v4/projects/24194363/jobs/artifacts/main/download?job=build:ubuntu:20.04)
- Ubuntu 22.04 [[browse]](https://gitlab.com/educelab/mets-tools/-/jobs/artifacts/develop/browse?job=build:ubuntu:22.04)
  [[zip]](https://gitlab.com/api/v4/projects/24194363/jobs/artifacts/main/download?job=build:ubuntu:22.04)

#### Install from source
After following the [installation instructions](#Installation), launch the 
editor from the command line using the following command:

```shell
METSEditor
```

## Building a deployable METS Editor application
A deployable METS editor package can be built using `pyinstaller`:
```shell
# macOS
pyinstaller pyinstaller/METSEditor_macOS.spec
```
```powershell
# Windows
pyinstaller pyinstaller\METSEditor_Windows.spec
```
```shell
# Ubuntu
pyinstaller pyinstaller/METSEditor_Ubuntu.spec
```
trcactivator 0.0.3
This package is designed to automate the activation of multi-checks from the @tonRocketBot bot from multiple Telegram accounts. The package uses the Telethon library to interact with the Telegram API.
Requires Python: >=3.8

# trcactivator

This package is designed to automate the activation of multi-checks from the @tonRocketBot bot from multiple Telegram accounts. The package uses the Telethon library to interact with the Telegram API.
pytest-httpx-blockage 0.0.8
Disable httpx requests during a test run

# pytest-httpx-blockage

![](https://github.com/SlavaSkvortsov/pytest-httpx-blockage/workflows/test/badge.svg)
[![pypi](https://img.shields.io/pypi/v/pytest-httpx-blockage.svg)](https://pypi.python.org/pypi/pytest-httpx-blockage)
[![versions](https://img.shields.io/pypi/pyversions/pytest-httpx-blockage.svg)](https://github.com/SlavaSkvortsov/pytest-httpx-blockage)

Package disables requests during pytest execution for [HTTPX](https://www.python-httpx.org/) 

If request occurs, `RequestBlockageException` will be raised.

# Installation
- Install `pytest-httpx-blockage` ([or download from PyPI](https://pypi.org/project/pytest-httpx-blockage/)):
```shell script
pip install pytest-httpx-blockage
```

- Pass param `--blockage-httpx` to enable blockage.

# Configuration

By default, blockage will be disabled in tests marked as `integration`. 
You can override it using `--disable-blockage-mark=new_mark`.

All settings can be stored in your `.cfg` file, with the same variable names as
the argument names mentioned under usage:

    blockage-httpx=true
    disable-blockage-mark=new_mark
norijada-pdf 0.0.6
Utility for arranging short text in the PDF with minimum amount of empty space between text.
Requires Python: >=3.8,<4.0

# Norijada PDF

Norijada PDF is a Python library for generating PDF files from text files containing short text.


## Installation
Create virtual environment and install norijada-pdf

```bash
pip install norijada-pdf
```

## Usage

1. List available fonts

```bash
norijada-pdf list-fonts
```

2. Add new fonts

```bash
norijada-pdf add-fonts
```

Specify directory name other than fonts
```bash
norijada-pdf add-fonts --dir some_dir
```

3. Generate PDF

Settings will be automatically created in the current directory if it does not exist under settings.json file.

Example settings.json file

```json
{
    "font_sizes": {
        "Bangers-Regular": 195,
        "BebasNeue-Regular": 195,
        "BerkshireSwash-Regular": 158,
        "BlackOpsOne-Regular": 139,
        "Bungee-Regular": 120,
        "Courgette-Regular": 156,
        "Galindo-Regular": 140,
        "KaushanScript-Regular": 167,
        "LibreBaskerville-Regular": 140,
        "Lobster-Regular": 172,
        "MouseMemoirs-Regular": 223,
        "Pacifico-Regular": 147,
        "PatrickHand-Regular": 190,
        "Ranchers-Regular": 170,
        "RubikMonoOne-Regular": 100,
        "RussoOne-Regular": 140,
        "SigmarOne-Regular": 110,
        "Staatliches-Regular": 180,
        "TitanOne-Regular": 130
    },
    "plot_increment": 1,
    "page_width": 500,
    "default_font_size": 150,
    "max_length": 240
}
```

You can modify existing settings.json file or reset to defaults by running
```bash
norijada-pdf reset-settings
```

PDF generator requires an input.txt file in the current directory. 
Input file should contain nicknames separated by new line. Additional arguments can be passed to the generator.
Run help command to see all available arguments

```bash
norijada-pdf generate-pdf --help
```

Run the PDF generator with the following command

```bash
norijada-pdf generate-pdf --font BebasNeue-Regular.ttf
```

Add unique id to the end of the file name

```bash
norijada-pdf generate-pdf --font BebasNeue-Regular.ttf --file-id prhg-8a
```

Example input.txt file

```text
Netko Je Super Lik
Čižo
Štupid
Čakra
jajoslav
Kico
Poki
Šokac
Šabo
jajan
Košček
Čupavac
Vau
Kora
Đuro
Pero
Stavros
Jasmin Stavros
Jasmin
Kalodont
```

Example output pdf file
[nicknames-prhg-8a.pdf](example%2Fnicknames-prhg-8a.pdf)

Example output pdf file rotated [nicknames-prhg-8a-rotated.pdf](example%2Fnicknames-prhg-8a-rotated.pdf)
## License

[MIT](https://choosealicense.com/licenses/mit/)