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.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| littlehorse_client-1.3.0rc2.tar.gz | 108.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| littlehorse_client-1.3.0rc2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 251.3 kB
Release files / littlehorse_client-1.3.0rc2.tar.gz
| Download URL | littlehorse_client-1.3.0rc2.tar.gz |
|---|---|
| Size | 108.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8ec37006f6ffc66d6ddca72fe1f35296f32ca2a1dff70e5f216626cfb98f5a9
|
|
BLAKE2b-256 checksum How to use checksums |
54233ecc2a54f70d9efe0ac64208c10442059070916ce76caf252ad6f9d741a6
|
| 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.0rc2-py3-none-any.whl
| Download URL | littlehorse_client-1.3.0rc2-py3-none-any.whl |
|---|---|
| Size | 142.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c3ab57cb6cdf3ec9f72ee382082feaf28e2960be373b4f028f2f650e8910f66
|
|
BLAKE2b-256 checksum How to use checksums |
9796fd78f5efeacf86650bb87a89d43e5e13ee2c6c985cd91d0382ba34794bb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|