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

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

Built distribution (wheel)

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

Total release size: 251.3 kB

Release files / littlehorse_client-1.3.1.tar.gz

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

Download URL littlehorse_client-1.3.1-py3-none-any.whl
Size 142.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53bdc2891084f9b000083ca034c1817f0a2c35c26d6c4ff2e1e55aa169f653ae
BLAKE2b-256 checksum
How to use checksums
a26d089e1e44e62fe9492c7b2b0f421302ef4ffd91c21e9edaa6ecdd09ec86d2
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.1

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