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

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.0
File Size Uploaded
littlehorse_client-1.3.0.tar.gz 108.3 kB Details

Built distribution (wheel)

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

Total release size: 251.2 kB

Release files / littlehorse_client-1.3.0.tar.gz

Download URL littlehorse_client-1.3.0.tar.gz
Size 108.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ca44328c31ce63299146d3b31bc08c7f6b7cc41713df0d97cb155dd1e341ffa0
BLAKE2b-256 checksum
How to use checksums
4ed32f18e7e9517ded0d7bf9c271a8b5b3bf9d78ead888e5159d787190009988
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.0-py3-none-any.whl

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

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.16.0

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.5

2 release files

0.12.4

2 release files

0.12.3

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.0

2 release files

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