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:
- 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)"
- 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
Metadata
Release files for samsara-fn 0.16.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| samsara_fn-0.16.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / samsara_fn-0.16.1-py3-none-any.whl
| Download URL | samsara_fn-0.16.1-py3-none-any.whl |
|---|---|
| Size | 64.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ae7566cebd70017633543a8c0f8e114973caa6ca95442a9c899b802eab6fab
|
|
BLAKE2b-256 checksum How to use checksums |
db4b7002e593344db7bc28d34070b58ebc8da0ecdea5117f32e6d233b61c8c8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for samsara-fn 0.16.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.