Skip to main content

A CLI tool for Samsara Functions

Project description

A CLI tool for Samsara Functions. Streamlines local development, testing and packaging.

Installation

It is recommended to use a separate virtual environment.

python3.12 -m venv venv
source venv/bin/activate
pip install samsara-fn

Shell autocompletion

If you're using bash or zsh, you can opt-in to shell autocompletion. To enable it, first install the package with an optional dependency set:

pip install 'samsara-fn[shell-completion]'

And enable autocompletions via argcomplete. You need to either:

  1. Run this command every time you need the completion to work.

Make sure that the virtual Python environment was already sourced before running eval.

eval "$(register-python-argcomplete samsara-fn)"
  1. Enable global completion for argcomplete-supported Python scripts with a one time installation script:
activate-global-python-argcomplete

Usage

The simulator provides a command-line interface. Each command supports various options. Use --help with any command to see detailed usage:

samsara-fn --help
samsara-fn run manual --help

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

samsara_fn-0.12.0-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

File details

Details for the file samsara_fn-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: samsara_fn-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 66.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for samsara_fn-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 027d51d4a80c27698d36a1249ece4d6bd77153b8fe6e40a81b98d42ff3d3316c
MD5 09cb940d7c24612eea3d8d94f450a22d
BLAKE2b-256 ef28b6f491fa20da9247ddce5eaadc10357ec30292e865c68e5a5005340c0723

See more details on using hashes here.

Supported by

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