semvec/pypi-packages huggingface dataset:
embeddr-core 0.1.5
Embeddr Core Library
Requires Python: >=3.12

<div align="center"><a name="readme-top"></a>

<img height="120" src="https://embeddr.net/embeddr_logo_transparent.png">

<h1>Embeddr Core</h1>
</div>

[![pypi version][pypi-image]][pypi-url]
[![embeddr-core version][embeddr-core-image]][embeddr-core-url]

[![embeddr-react-ui version][embeddr-react-ui-image]][embeddr-react-ui-url]
[![embeddr-frontend][embeddr-frontend-image]][embeddr-frontend-url]

[![license][license-image]][license-url]

[npm-downloads-image]: https://img.shields.io/npm/d18m/%40embeddr%2Freact-ui?style=flat-square&&logo=Npm&logoColor=%23cc3534&label=Downloads&labelColor=%232f2f2f&color=%234f4f4f

[pypi-image]: https://img.shields.io/pypi/v/embeddr-cli?style=flat-square&&logo=Python&logoColor=%23ffd343&label=cli&labelColor=%232f2f2f&color=%234f4f4f
[pypi-url]: https://pypi.org/project/embeddr-cli

[embeddr-core-image]: https://img.shields.io/pypi/v/embeddr-core?style=flat-square&logo=Python&logoColor=%23ffd343&label=core&labelColor=%232f2f2f&color=%234f4f4f
[embeddr-core-url]: https://pypi.org/project/embeddr-core

[embeddr-react-ui-image]: https://img.shields.io/npm/v/%40embeddr%2Freact-ui?style=flat-square&logo=React&logoColor=%61DBFB&label=react-ui&labelColor=%232f2f2f&color=%234f4f4f
[embeddr-react-ui-url]: https://www.npmjs.com/package/@embeddr/react-ui

[embeddr-frontend-image]: https://img.shields.io/npm/v/%40embeddr%2Freact-ui?style=flat-square&logo=React&logoColor=%61DBFB&label=frontend&labelColor=%232f2f2f&color=%234f4f4f
[embeddr-frontend-url]: https://github.com/embeddr-net/embeddr-frontend

[license-image]: https://img.shields.io/github/license/embeddr-net/embeddr-cli?style=flat-square&logoColor=%232f2f2f&labelColor=%232f2f2f&color=%234f4f4f
[license-url]: https://pypi.org/project/embeddr-cli

> [!WARNING]
>
> You do not need this if you want to use Embeddr
>
> This repo is for development only.
>
> Please use [embeddr-cli](https://github.com/embeddr-net/embeddr-cli)

## Description

This repo contains logic used in Embeddr
ants-worker 0.2.4
Distributed compute worker for Ants at Work colony
Requires Python: >=3.10
Keywords: distributed, compute, gpu, npu, amd, ryzen-ai, kangaroo, ecdlp

# Ants Worker

Join the colony. Share your compute.

```bash
pip install ants-worker
ants-worker join
```

That's it. You're now part of the swarm.

## Commands

```bash
ants-worker join           # Register and start working
ants-worker join -t wild   # Run as wild kangaroo (default: tame)
ants-worker status         # Check connection and worker ID
ants-worker leave          # Unregister (delete ~/.ants/config.json)
ants-worker info           # System/GPU info
ants-worker benchmark      # Test performance
```

## Hardware Acceleration

### AMD Ryzen AI (NPU)

```bash
# Auto-detects Ryzen AI and optimizes
ants-worker join

# Check detected hardware
ants-worker info --detailed

# Force specific backend
ants-worker join -b amd_npu
ants-worker join -b amd_rocm
ants-worker join -b parallel_cpu --workers 16
```

### NVIDIA GPU

```bash
pip install ants-worker[cuda]
ants-worker join
```

### High Performance Binary

```bash
# Linux with NVIDIA GPU
git clone https://github.com/JeanLucPons/Kangaroo.git
cd Kangaroo && make gpu=1 && cd ..
export KANGAROO_BIN=$(pwd)/Kangaroo/kangaroo

ants-worker join
```

## Run in Background

### Screen/tmux

```bash
screen -S ants
ants-worker join
# Ctrl+A, D to detach
```

### Systemd (Linux)

```bash
sudo tee /etc/systemd/system/ants-worker.service << 'EOF'
[Unit]
Description=Ants Worker
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/ants-worker join
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable --now ants-worker
```

## FAQ

**Is this safe?**
Yes. You get a unique token that can only submit work results.

**Resources?**
Minimal bandwidth (~KB/min). CPU/GPU usage configurable. Stop with Ctrl+C.

**Where's my config?**
`~/.ants/config.json` - contains your token and worker ID.

**Tame vs Wild?**
Both needed. Run one of each for maximum contribution:
```bash
ants-worker join -t tame &
ants-worker join -t wild &
```

## Development

```bash
git clone https://github.com/ants-at-work/worker
cd worker
pip install -e ".[dev]"
pytest
```

## Links

- Website: https://ants-at-work.com
- Issues: https://github.com/ants-at-work/worker/issues
nimic 0.0.1
Pure Python module that facilitates writing AOT compilable code
Requires Python: >=3.12

# Nimic
Nimic is a pure Python module that facilitates writing AOT compilable code with a subset of Python (domain specific language). Based on ctypes built-in module, it includes emulation of native types, pointers and operations on them, implementing dispatch, operator overloading, and templates. Nimic closely follows Nim programming language, to which nimic code transpiles.