Skip to main content

CLI and library for interacting with FieldOps api

Project description

This is a python library and cli for working with fieldops. It can be used for creating custom provisioning scripts, or setting up deployment for a CI/CD pipeline

Installation

pip3 install fieldops

Using the CLI

The CLI can be used to poll the server for information, download packages, and upload new versions of packages. For the most part it just wraps the rest calls and handles authentication, so the api paths are the same as the rest api.

Show the packages

fieldops -u <username> -p <password> -s <server> get packages

Show the details of the latest version of a package:

fieldops -u <username> -p <password> -s <server> get packages/pa/versions/latest

Download the latest version of a package:

fieldops -u <username> -p <password> -s <server> download packages/pa/versions/latest

Upload a new version of a package:

fieldops -u <username> -p <password> -s <server> upload packages/pa-firmware -f <path to package file> -v <version number> -r <release notes>

Using as a library

The library can be used to create custom provisioning scripts, or to integrate with a CI/CD pipeline.

Project details


Download files

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

Source Distribution

fieldops-0.0.7.tar.gz (4.4 kB view hashes)

Uploaded Source

Supported by

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