semvec/pypi-packages huggingface dataset:
discord-autoupdate 1.2.0
Automatically update and run Discord on Debian-based systems.
Requires Python: >=3.8

# Discord auto update
**@readwithai** - [X](https://x.com/readwithai) - [blog](https://readwithai.substack.com/) - [machine-aided reading](https://www.reddit.com/r/machineAidedReading/) - [📖](https://readwithai.substack.com/p/what-is-reading-broadly-defined
)[⚡️](https://readwithai.substack.com/s/technical-miscellany)[🖋️](https://readwithai.substack.com/p/note-taking-with-obsidian-much-of)

Automatically update discord if there is a new version when it runs on linux.

Discord, in their wisdom force you to install a new version of discord on Linux whenever one exists but does not handle the update themselves. They also quite regularly update discord. I want to run discord when my computer starts - but this behaviour is making this impossible.

This script installs a new version of discord if it exists and then run discords.

## Installation
You can install discord-autoupdate using [pipx](https://github.com/pypa/pipx):

```
pipx install discord-autoupdate
```

## Usage
If you run `discord-autoupdate` this will install a new version of discord if it exists and then run discords.

There are some other options which you can see with `--help`.

I use the following autostart script (in `~/.config/autostart`) to run `discord-autoupdate` on startup:

```
[Desktop Entry]
Exec=/home/alex/.local/bin/discord-autoupdate
Icon=Discord
Name=Discord
StartupNotify=true
Terminal=false
Type=Application
Version=1.0
```

You may wish to [add a desktop file](https://readwithai.substack.com/p/a-primer-on-linux-desktop-files) to run discord-autoupdate.

## About me
I am **@readwithai**. I create tools for reading, research and agency sometimes using the markdown editor [Obsidian](https://readwithai.substack.com/p/what-exactly-is-obsidian).

I also create a [stream of tools](https://readwithai.substack.com/p/my-productivity-tools) that are related to carrying out my work.

I write about lots of things - including tools like this - on [X](https://x.com/readwithai).
My [blog](https://readwithai.substack.com/) is more about reading and research and agency.
can-waveshare 0.1.0
python-can backend for Waveshare 2-CH-CAN-TO-ETH (13-byte TCP wire format over TCP)
Requires Python: >=3.10

[![CI](https://github.com/kstaniek/python-can-waveshare-eth/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kstaniek/python-can-waveshare-eth/actions/workflows/ci.yml)
[![PyPI version](https://img.shields.io/pypi/v/can-waveshare)](https://pypi.org/project/can-waveshare/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/can-waveshare)](https://pypi.org/project/can-waveshare/)


# can-waveshare

**python-can** backend for the **Waveshare 2-CH-CAN-TO-ETH** bridge that uses a fixed **13‑byte** TCP wire format.
Works with `python -m can.viewer/logger/player` and plain `can.Bus(...)`.

> Transport: TCP server on the device (e.g., `:20001` for CAN1, `:20002` for CAN2).  
> Frames: 13 bytes: `[flags/dlc][id:4][data:0..8 padded]`

**References**
- python-can documentation: [python-can.readthedocs.io](https://python-can.readthedocs.io/) — see [Bus API](https://python-can.readthedocs.io/en/stable/bus.html), [Command Line Tools](https://python-can.readthedocs.io/en/stable/scripts.html), and [Configuration](https://python-can.readthedocs.io/en/stable/configuration.html).
- Waveshare product page: [2-CH-CAN-TO-ETH](https://www.waveshare.com/2-ch-can-to-eth.htm) and vendor [Wiki](https://www.waveshare.com/wiki/2-CH-CAN-TO-ETH).


## Install

```bash
pip install can-waveshare
# or from source (editable):
pip install -e .[dev]
```

## Use with CLI

```bash
# Most portable: pass channel as host:port
python -m can.viewer -i waveshare -c 172.31.11.67:20001

# Or forward kwargs directly to the bus:
python -m can.viewer -i waveshare --bus-kwargs host=172.31.11.67 port=20001
```

### Config via `~/.canrc`

The stock CLIs read only the **[default]** section. Put this in `~/.canrc`:

```ini
[default]
interface = waveshare
channel   = 172.31.11.67:20001
```

Then:

```bash
python -m can.viewer
```

If you want multiple profiles, either (a) swap rc files or (b) write a tiny launcher in code and use `Bus(config_context="waveshare2")` to select other sections.

## Use in code

```python
import can

# explicit kwargs:
with can.Bus(interface="waveshare", host="172.31.11.67", port=20001) as bus:
    bus.send(can.Message(arbitration_id=0x123, data=b"\x11\x22\x33", is_extended_id=False))
    print(bus.recv(1.0))

# or via channel (parses host:port, tcp://host:port, [ipv6]:port, or aliases can1/can2):
with can.Bus(interface="waveshare", channel="172.31.11.67:20001") as bus:
    print(bus.recv(1.0))
```

## Features & Notes

- CAN 2.0 (0..8 data bytes). **CAN‑FD not supported** by Waveshare wire format.
- Software filters (`can_filters`) supported in the backend.
- Best‑effort own‑echo suppression when `receive_own_messages=False` (default). Set `True` to see echoes.
- Periodic TX via `bus.send_periodic(...)` works (python-can broadcast manager calls `send()` repeatedly).

## License

Apache 2.0
bayesgm 0.3.0
An AI-powered Bayesian generative modeling approach
Requires Python: <3.11,>=3.7

Causal inference in observational studies with high-dimensional covariates presents significant challenges. We introduce CausalBGM, an AI-powered Bayesian generative modeling approach that captures the causal relationship among covariates, treatment, and outcome variables. The core innovation of CausalBGM lies in its ability to estimate the individual treatment effect (ITE) by learning individual-specific distributions of a low-dimensional latent feature set (e.g., latent confounders) that drives changes in both treatment and outcome. This approach not only effectively mitigates confounding effects but also provides comprehensive uncertainty quantification, offering reliable and interpretable causal effect estimates at the individual level. CausalBGM adopts a Bayesian model and uses a novel iterative algorithm to update the model parameters and the posterior distribution of latent features until convergence. This framework leverages the power of AI to capture complex dependencies among variables while adhering to the Bayesian principles. Extensive experiments demonstrate that CausalBGM consistently outperforms state-of-the-art methods, particularly in scenarios with high-dimensional covariates and large-scale datasets. Its Bayesian foundation ensures statistical rigor, providing robust and well-calibrated posterior intervals. By addressing key limitations of existing methods, CausalBGM emerges as a robust and promising framework for advancing causal inference in modern applications in fields such as genomics, healthcare, and social sciences.
ocr_translate-paddle 0.3.1
Plugins to enable usage of PaddleOCR in ocr_translate
Requires Python: >=3.10
Keywords: django, translation

# Plugin ocr_translate_paddle

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate).
Plugins to enable usage of [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR) in ocr_translate

## Usage

### ### For versions of the server `>=0.2`

- Install this by running `pip install ocr_translate-paddle`
- Add `ocr_translate_paddle` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-paddle`
ocr_translate-google 0.3.0
Plugin to implement google translation for ocr_translate.
Requires Python: >=3.10
Keywords: django, translation

# Plugin for using googletrans with ocr_translate

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate) server for implementing translations using google_translate

## Usage

### For versions of the server `>=0.2`

- Install this by running `pip install ocr_translate-google`
- Add `ocr_translate_google` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

### For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-google`
ocr_translate-tesseract 0.4.0
Plugin to implement tesseract OCR for ocr_translate.
Requires Python: >=3.10
Keywords: django, translation

# Plugin for using tesseract with ocr_translate

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate) server for implementing translations using [tesseract](https://tesseract-ocr.github.io/)

**IMPORANT**: This plugin required tesseract to be installed to work [link](https://tesseract-ocr.github.io/tessdoc/Installation.html)

## Usage

### For versions of the server `>=0.2`

- Install this by running `pip install ocr_translate-tesseract`
- Add `ocr_translate_tesseract` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-tesseract`
ocr_translate-easyocr 0.5.0
Plugins to enable usage of Easyocr in ocr_translate
Requires Python: >=3.10
Keywords: django, translation

# Plugin ocr_translate_easyocr

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate).
Plugins to enable usage of [Easyocr](https://github.com/JaidedAI/EasyOCR) in ocr_translate

## Usage

### For versions of the server `>=0.2`

- Install this by running `pip install ocr_translate-easyocr`
- Add `ocr_translate_easyocr` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

### For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-easyocr`
ocr_translate_ollama 0.3.0
Plugin to implement ollama (LLMs) based translations for ocr_translate
Requires Python: >=3.10
Keywords: django, translation

# Plugin ocr_translate_ollama

This is a plugin for [ocr_translate](https://github.com/Crivella/ocr_translate) that implements translations through [ollama](https://github.com/ollama/ollama) using Large Language Models (LLM)s.

## Usage

### For versions of the server `>=0.2`

- Install this by running `pip install ocr_translate_ollama`
- Add `ocr_translate_ollama` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

### For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-google`


## Ollama name prefixes

To avoid cluttering the ollama server (or having to set a dedicated one), the plugin will create new models from the original one (with a dedicated system prompt) adding the prefix `oct_ollama_` to the model names.

This behavior can be changed by setting the environment variable `OCT_OLLAMA_PREFIX` to a different value.

**NOTE**: The final `_` is added by the plugin, so it should not be included in the prefix.

## IMPORTANT

[Ollama](https://github.com/ollama/ollama) needs to be installed separately and reachable from the server (check the link for instructions).
The environment variable `OCT_OLLAMA_ENDPOINT` should be set to the endpoint of the ollama server (including the `/api`).

Example:

```bash
export OLLAMA_ENDPOINT=http://localhost:11434/api
```

Depending on the RAM available on your system (CPU/GPU), you also may need to tune the variables

- `OLLAMA_MAX_LOADED_MODELS`
- `OLLAMA_NUM_PARALLEL`

when running the server.

For more information, check the [ollama FAQ](https://github.com/ollama/ollama/blob/main/docs/faq.md)
ocr_translate-hugging_face 0.4.0
Plugins to enable usage of HuggingFace Models in ocr_translate
Requires Python: >=3.10
Keywords: django, translation

# Plugin ocr_translate_hugging_face

This is a plugin for the [ocr_translate](https://github.com/Crivella/ocr_translate).
Plugins to enable usage of [HuggingFace Models](https://huggingface.co/) in ocr_translate

## Usage

### For versions of the server `>=0.2.0`

- Install this by running `pip install ocr_translate-hugging_face`
- Add `ocr_translate_hugging_face` to your `INSTALLED_APPS` in `settings.py`
- Run the server with `AUTOCREATE_VALIDATED_MODELS` once

### For versions of the server `>=0.6`

- Install through the server plugin manager

### For versions of the server `>=0.7`

- Install through the server plugin manager **OR** manually by running `pip install ocr_translate-hugging_face`