semvec/pypi-packages huggingface dataset:
moteus 0.3.99
moteus brushless controller library and tools
Requires Python: <4,>=3.7
Keywords: moteus

# Python bindings for moteus brushless controller #

These bindings permit communication and control of moteus brushless
controllers.

## To use ##

```
pip3 install moteus  # or 'moteus-pi3hat' on a pi3hat
```

See a simple example of the API in use at: [simple.py](examples/simple.py)

## Theory ##

Interactions with a controller are mediated through the
`moteus.Controller` object.  When constructed with the constructor
argument `transport=None` (the default) it attempts to find some
suitable link on your host system, typically the first fdcanusb or
socketcan bus it locates.

Single controller imperative operation can be conducted by using
`await Controller.set_stop()`, `await Controller.set_position()`, and
`await Controller.query()`.

## Bus-optimized usage ##

To optimize bus usage, it is possible to command multiple controllers
simultaneously.  In this mode, a "transport" must be manually
constructed.

```
import asyncio
import math
import moteus

async def main():
    transport = moteus.Fdcanusb()
    c1 = moteus.Controller(id = 1)
    c2 = moteus.Controller(id = 2)

    while True:
        print(await transport.cycle([
          c1.make_position(position=math.nan, query=True),
          c2.make_position(position=math.nan, query=True),
        ]))

asyncio.run(main())
```

All of the "set_" methods have a "make_" variant which is suitable to
pass to a Transport's `cycle` method.

This mechanism only improves performance for non-fdcanusb links, such
as a pi3hat.

An example use of this mechanism can be found at:
[pi3hat_multiservo.py](examples/pi3hat_multiservo.py)

## Position mode commands ##

`Controller.set_position` and `Controller.make_position` have
arguments which exactly mirror the fields documented in
`docs/reference.md`.  Omitting them (or specifying None), results in
them being omitted from the resulting register based command.

* position
* velocity
* feedforward_torque
* kp_scale
* maximum_torque
* stop_position
* watchdog_timeout

Finally, the `query` argument controls whether information is queried
from the controller or not.

## Controlling resolution ##

The resolution of commands, and of returned query data, is controlled
by optional constructor arguments to `Controller`.  By default, the
commands are all F32, and the query requests a subset of fields as
INT16.  Here is an example of setting those.

```
pr = moteus.PositionResolution()
pr.position = moteus.INT16
pr.velocity = moteus.INT16
pr.kp_scale = moteus.F32
pr.kd_scale = moteus.F32

qr = moteus.QueryResolution()
qr.mode = moteus.INT8
qr.position = moteus.F32
qr.velocity = moteus.F32
qr.torque = moteus.F32

c = moteus.Controller(position_resolution=pr, query_resolution=qr)
```
lambda-otel-logging 1.0.1
Python logging formatter that looks like OpenTelemetry logs
Requires Python: >=3.10

AWS Lambda OpenTelemetry Logging
===============================

Simple log formatter to get Otel log records on stdout in an AWS lambda.

Trying to use a collector in AWS lambda runtime is stupid and doing so for [logging will lead to issues](https://github.com/aws-observability/aws-otel-lambda/issues/1121).

So the goal is simple:

- Write stuff that looks like OpenTelemetry, but uses AWS native services instead.

If you want a full collectorless and performant solution,
probably look at https://github.com/dev7a/serverless-otlp-forwarder
but if you just want to look like otel for log alerting, you can use this logging formatter.
heimdex-media-contracts 0.5.0
Shared schemas, pure functions, and contracts for Heimdex media pipelines
Requires Python: >=3.11

# heimdex-media-contracts

Shared schemas, pure functions, and contracts for Heimdex media pipelines.

This package is intentionally **dependency-light** — it depends only on `pydantic`
and the Python standard library. It must **never** import heavy ML/media libraries
such as `cv2`, `torch`, `whisper`, `insightface`, `pyannote`, `onnxruntime`, or `ffmpeg`.

## Modules

| Module | Contents |
|--------|----------|
| `heimdex_media_contracts.faces.schemas` | Pydantic models for face presence responses |
| `heimdex_media_contracts.faces.sampling` | Pure timestamp sampling math (no file I/O) |
| `heimdex_media_contracts.speech.schemas` | Dataclass models for speech segment pipelines |
| `heimdex_media_contracts.speech.tagger` | Keyword-based segment tagger (pure string matching) |
| `heimdex_media_contracts.speech.ranker` | Segment importance ranker (pure computation) |

## Usage

```python
from heimdex_media_contracts.faces.schemas import FacePresenceResponse
from heimdex_media_contracts.faces.sampling import sample_timestamps
from heimdex_media_contracts.speech.tagger import SpeechTagger
```

## Running tests

```bash
cd heimdex-media-contracts
pip install -e ".[dev]"
python -m pytest -q
```