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 . 

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

littlehorse_client-1.2.0rc3.tar.gz (104.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

littlehorse_client-1.2.0rc3-py3-none-any.whl (137.0 kB view details)

Uploaded Python 3

File details

Details for the file littlehorse_client-1.2.0rc3.tar.gz.

File metadata

  • Download URL: littlehorse_client-1.2.0rc3.tar.gz
  • Upload date:
  • Size: 104.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for littlehorse_client-1.2.0rc3.tar.gz
Algorithm Hash digest
SHA256 fbf577e6b4ac7d828cb63e5193a737d61b88f804c1738fcaf6b34e282a6cd510
MD5 eb8a1082c712666aef89bfefe59d8660
BLAKE2b-256 ab8f2b718eb17fe3d95f6136cdabf72c4ec1ebb010bfafdb68b18e6de9ed4d2d

See more details on using hashes here.

File details

Details for the file littlehorse_client-1.2.0rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for littlehorse_client-1.2.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 331387776f3fd8a7a0ffa799c152b4b5ee6184be10ad0ac7cb1b3d2b3302a7f7
MD5 d8059302442fd06a46b28f5ffc2efbf5
BLAKE2b-256 e22d60b4b4531d154168e02564853b6eed97ef92d92619a6aef8ed2bb13c7298

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.1

2 files

1.2.0

2 files

This release

1.2.0rc3 This release

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.16.0

2 files

0.15.2

2 files

0.15.1

2 files

0.15.0

2 files

0.14.1

2 files

0.14.0

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.5

2 files

0.12.4

2 files

0.12.3

2 files

0.12.2

2 files

0.12.1

2 files

0.12.0

2 files

0.11.2

2 files

0.11.1

2 files

0.11.0

2 files

0.10.1

2 files

0.10.0

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

0.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page