Skip to main content

LimaCharlie Python SDK & CLI

LimaCharlie.io

Python SDK and command-line interface for the LimaCharlie endpoint detection and response platform.

Installation

pip install limacharlie
docker run refractionpoint/limacharlie:latest --help

The toon extra adds the TOON output format (limacharlie --output toon); every other format works with a default install.

pip install 'limacharlie[toon]'

On uv older than 0.12 the extra is not enough, because toon_format publishes only a pre-release and those versions resolve pre-releases for directly named requirements only. Name it directly there: uv tool install limacharlie --with 'toon-format>=0.9.0b1'. See the CLI output formats guide for details.

See Getting Started for Docker credential mounting and first steps.

Quick Start

limacharlie auth login --oid YOUR_ORG_ID --api-key YOUR_API_KEY
limacharlie auth whoami
limacharlie org info
limacharlie sensor list

See Authentication for OAuth, environments, credential resolution, JWT caching, and config directory migration.

Documentation

Guide Topics
Getting Started Installation, Docker, first steps
Authentication API keys, OAuth, environments, JWT caching, config migration
CLI Overview Command pattern, output formats, filtering, discovery
SDK Overview Architecture, setup, class reference

Full reference: doc/README.md

Shell Completion

The CLI supports tab-completion for all commands, subcommands, and options.

Bash - add to ~/.bashrc:

eval "$(limacharlie completion bash)"

Zsh - add to ~/.zshrc:

eval "$(limacharlie completion zsh)"

Fish - run once:

mkdir -p ~/.config/fish/completions
limacharlie completion fish > ~/.config/fish/completions/limacharlie.fish

Restart your shell (or source the rc file) for completions to take effect.

Static completion files

If you prefer not to run eval on every shell start, you can write the completion script to a file once. This is slightly faster at shell startup but needs to be re-run after upgrading to pick up new commands and options.

Bash:

mkdir -p ~/.local/share/bash-completion/completions
limacharlie completion bash > ~/.local/share/bash-completion/completions/limacharlie

Zsh:

mkdir -p ~/.zfunc
limacharlie completion zsh > ~/.zfunc/_limacharlie

Ensure ~/.zfunc is in your fpath by adding this to ~/.zshrc (before compinit):

fpath=(~/.zfunc $fpath)
autoload -Uz compinit && compinit

Development

Setup

git clone https://github.com/refractionPOINT/python-limacharlie.git
cd python-limacharlie
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"

The editable install (-e) means changes to the source code take effect immediately without reinstalling.

Running the CLI

After the editable install, the limacharlie command is available in your venv:

limacharlie --version
limacharlie --help
limacharlie sensor list --help

Running Tests

Unit tests run without any credentials or network access:

# All unit tests
pytest tests/unit/ -v

# Single test file
pytest tests/unit/test_client.py -v

# Single test case
pytest tests/unit/test_client.py::TestClientInit::test_creates_with_explicit_creds -v

Integration tests require a real LimaCharlie organization:

pytest tests/integration/ --oid YOUR_ORG_ID --key YOUR_API_KEY -v

Building

pip install build && python -m build
pip install dist/limacharlie-*-py3-none-any.whl && limacharlie version

Releasing

Releases are published to PyPI automatically via GitHub Actions when a version tag is pushed. The package version is derived from the git tag using setuptools-scm — there is no hardcoded version to bump.

git tag 5.1.0
git push origin 5.1.0

The workflow runs unit tests, builds the package, and publishes to PyPI using Trusted Publishers (OIDC) — no API tokens or secrets required. See .github/workflows/publish-to-pypi.yml for details.

Download files

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

Source Distribution

limacharlie-5.6.2.tar.gz (668.1 kB view details)

Uploaded Source

Built Distribution

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

limacharlie-5.6.2-py3-none-any.whl (420.5 kB view details)

Uploaded Python 3

File details

Details for the file limacharlie-5.6.2.tar.gz.

File metadata

  • Download URL: limacharlie-5.6.2.tar.gz
  • Upload date:
  • Size: 668.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for limacharlie-5.6.2.tar.gz
Algorithm Hash digest
SHA256 d7025e3ed66ae1c324cc572e7f85d6547c27a0417443d815f66e2402220495f8
MD5 8919ce398becdbee9b94a2f2f8e25ae9
BLAKE2b-256 07937ebc50ea8e6ac8623f97afe8145b946f7bdc91470eed1510cc2875bf1a0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for limacharlie-5.6.2.tar.gz:

Publisher: publish-to-pypi.yml on refractionPOINT/python-limacharlie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file limacharlie-5.6.2-py3-none-any.whl.

File metadata

  • Download URL: limacharlie-5.6.2-py3-none-any.whl
  • Upload date:
  • Size: 420.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for limacharlie-5.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4f0ac432eb423093dcf5251018ad28cce42875d769acbe98e288aba306b77a9
MD5 758d7f1bb5ba96196a0c88335e6b08b5
BLAKE2b-256 18dc3d5241a4e0d09ca120cb903faac8e79e5710ea8814e3ba457e1604cc83c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for limacharlie-5.6.2-py3-none-any.whl:

Publisher: publish-to-pypi.yml on refractionPOINT/python-limacharlie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

5.6.2 This release

2 files

5.6.1

2 files

5.6.0

2 files

5.5.5

2 files

5.5.4

2 files

5.5.3

2 files

5.5.2

2 files

5.5.1

2 files

5.5.0

2 files

5.4.1

2 files

5.4.0

2 files

5.3.1

2 files

5.3.0

2 files

5.2.1

2 files

5.2.0

2 files

5.1.0

2 files

5.0.9

2 files

5.0.8

2 files

5.0.7

2 files

5.0.6

2 files

5.0.5

2 files

5.0.4

2 files

5.0.3

2 files

5.0.2

2 files

5.0.1

2 files

5.0.0

2 files

4.11.3

2 files

4.11.2

2 files

4.11.1

2 files

4.11.0

2 files

4.10.5

2 files

4.10.4

2 files

4.10.3

2 files

4.10.2

2 files

4.10.1

2 files

4.10.0

2 files

4.9.24

2 files

4.9.23

2 files

4.9.22

2 files

4.9.21

2 files

4.9.20

2 files

4.9.19

2 files

4.9.18

2 files

4.9.17

2 files

4.9.16

2 files

4.9.15

2 files

4.9.14

2 files

4.9.13

2 files

4.9.12

2 files

4.9.11

2 files

4.9.10

2 files

4.9.9

2 files

4.9.8

2 files

4.9.7

2 files

4.8.4

2 files

4.8.3

2 files

4.8.2

2 files

4.8.1

2 files

4.8.0

2 files

4.7.1

2 files

4.7.0

2 files

4.6.1

2 files

4.6.0

2 files

4.5.2

2 files

4.5.1

2 files

4.5.0

2 files

4.4.10

2 files

4.4.9

2 files

4.4.7

2 files

4.4.6

2 files

4.4.5

2 files

4.4.4

2 files

4.4.3

2 files

4.4.2

2 files

4.4.1

2 files

4.4.0

2 files

4.3.7

2 files

4.3.6

2 files

4.3.5

2 files

4.3.4

2 files

4.3.3

2 files

4.3.2

2 files

4.3.1

2 files

4.3.0

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.2.0

2 files

4.1.7

2 files

4.1.6

2 files

4.1.5

2 files

4.1.4

2 files

4.1.3

2 files

4.1.2

2 files

4.1.1

2 files

4.0.3

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.20.2

2 files

3.20.1

2 files

3.20.0

2 files

3.19.1

2 files

3.19.0

2 files

3.18.5

2 files

3.18.4

2 files

3.18.3

2 files

3.18.2

2 files

3.18.1

2 files

3.18.0

2 files

3.17.1

2 files

3.17.0

2 files

3.16.2

2 files

3.16.1

2 files

3.16.0

2 files

3.15.1

2 files

3.15.0

2 files

3.14.5

2 files

3.14.3

2 files

3.14.2

2 files

3.14.1

2 files

3.14.0

2 files

3.13.7

2 files

3.13.6

2 files

3.13.5

2 files

3.13.4

2 files

3.13.3

2 files

3.13.1

2 files

3.13.0

2 files

3.12.1

2 files

3.12.0

2 files

3.11.9

2 files

3.11.8

2 files

3.11.5

2 files

3.11.1

2 files

3.11.0

2 files

3.10.4

2 files

3.10.2

2 files

3.10.1

2 files

3.10.0

2 files

3.9.1

2 files

3.9.0

2 files

3.8.1

2 files

3.8.0

2 files

3.7.0

2 files

3.6.3

2 files

3.6.2

2 files

3.6.1

2 files

3.6.0

2 files

3.5.0

2 files

3.4.1

2 files

3.4.0

2 files

3.3.0

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.3

2 files

3.1.2

1 file

3.1.1

1 file

3.1.0

1 file

3.0.4

1 file

3.0.3

1 file

3.0.2

1 file

3.0.1

1 file

3.0.0

1 file

2.19.4

1 file

2.19.3

1 file

2.19.2

1 file

2.19.1

1 file

2.19.0

1 file

2.18.8

1 file

2.18.7

1 file

2.18.6

1 file

2.18.5

1 file

2.18.4

1 file

2.18.3

1 file

2.18.2

1 file

2.18.0

1 file

2.17.2

1 file

2.17.1

1 file

2.17.0

1 file

2.16.4

1 file

2.16.3

1 file

2.16.2

1 file

2.16.1

1 file

2.16.0

1 file

2.15.1

1 file

2.15.0

1 file

2.14.4

1 file

2.14.3

1 file

2.14.2

1 file

2.14.1

1 file

2.14.0

1 file

2.13.0

1 file

2.12.0

1 file

2.11.10

1 file

2.11.9

1 file

2.11.8

1 file

2.11.7

1 file

2.11.6

1 file

2.11.5

1 file

2.11.4

1 file

2.11.3

1 file

2.11.2

1 file

2.11.1

1 file

2.11.0

1 file

2.10.0

1 file

2.9.0

1 file

2.8.4

1 file

2.8.3

1 file

2.8.2

1 file

2.8.1

1 file

2.8.0

1 file

2.7.0

1 file

2.6.0

1 file

2.5.0

1 file

2.4.3

1 file

2.4.2

1 file

2.4.1

1 file

2.4.0

1 file

2.3.0

1 file

2.2.0

1 file

2.1.2

1 file

2.1.1

1 file

2.1.0

1 file

2.0.3

1 file

2.0.2

1 file

2.0.0

1 file

1.6.0

1 file

1.5.1

1 file

1.5.0

1 file

1.4.1

1 file

1.4

1 file

1.3

1 file

1.2.1

1 file

1.2

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1

1 file

1.0.0.1

1 file

1.0

1 file

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