Skip to main content

LittleHorse Python SDK

For documentation on how to use this library, please go to the LittleHorse website.

For examples go to the examples folder.

Dependencies

  • Install python.
  • Install pipx: brew install pipx
  • Install poetry: pipx install poetry
  • Install poetry shell plugin: poetry self add poetry-plugin-shell

Initialize

poetry install

Protobuf Compilation

../local-dev/compile-proto.sh

Run tests

poetry shell
python -m unittest discover -v

Validate Indentations

poetry run ruff check .

Validate types

poetry run mypy .

Useful Commands

Set python version:

poetry env use python3.9

Worker shutdown on Windows

littlehorse.start(...) installs shutdown hooks for SIGTERM and SIGINT. On runtimes that do not support asyncio signal handlers (for example, Windows event loops), the SDK falls back to signal.signal(...) when available. If a signal cannot be registered in the current runtime/thread, startup still continues and workers can be stopped by calling worker.stop().

Types Map

Task arguments type reference:

VariableType.JSON_OBJ: dict[str, Any]
VariableType.JSON_ARR: list[Any]
VariableType.DOUBLE:   float
VariableType.BOOL:     bool
VariableType.STR:      str
VariableType.INT:      int
VariableType.BYTES:    bytes

Python Code Formatter

poetry shell
black . 

Metadata

Release files for littlehorse-client 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for littlehorse-client 1.3.2
File Size Uploaded Provenance Actions
littlehorse_client-1.3.2.tar.gz 108.4 kB Without provenance Details for littlehorse_client-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for littlehorse-client 1.3.2
File Interpreter ABI Platform Actions
littlehorse_client-1.3.2-py3-none-any.whl Python 3 none any Details for littlehorse_client-1.3.2-py3-none-any.whl

Total release size: 251.3 kB

Release files / littlehorse_client-1.3.2.tar.gz

Download URL littlehorse_client-1.3.2.tar.gz
Size 108.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8c6278da40c00df42ecc530f0ed0371d984957d592d6920fade8f484d1598bc1
BLAKE2b-256 checksum
How to use checksums
d8d5dd74f35836e4f783fa0356bbe7299e84ac772b3fa5ae2d0f678cea740eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / littlehorse_client-1.3.2-py3-none-any.whl

Download URL littlehorse_client-1.3.2-py3-none-any.whl
Size 142.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c58f08696140656e6c08131c54bfb109f18ceac03a50e0f45722ae5d61250673
BLAKE2b-256 checksum
How to use checksums
3267e35c96b5d4d5718e0cd83bcfa943d6a45d7cdfcfed11ed00343c90c2984c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for littlehorse-client 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page