Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.1rc1

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.1rc1
File Size Uploaded Provenance Actions
littlehorse_client-1.3.1rc1.tar.gz 108.4 kB Without provenance Details for littlehorse_client-1.3.1rc1.tar.gz

Built distribution (wheel)

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

Total release size: 251.4 kB

Release files / littlehorse_client-1.3.1rc1.tar.gz

Download URL littlehorse_client-1.3.1rc1.tar.gz
Size 108.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bbfe2a4113aa26de703d5ec4079512b5d80198571974371ecf6ddff99f69e7d4
BLAKE2b-256 checksum
How to use checksums
4d3182ada7a7f1363c9a9c385acf106a1f3db561cba91aa50aeddf9861f3d34b
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.1rc1-py3-none-any.whl

Download URL littlehorse_client-1.3.1rc1-py3-none-any.whl
Size 143.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06862207741bbeab54882f9dca7408a24b734d68bb411f969c005f49f30d8264
BLAKE2b-256 checksum
How to use checksums
c5c616935f3fb55aa5176621327361496538411e0261bbfcd340f2f96900442a
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.1rc1

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
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