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
File details
Details for the file fieldops-0.0.7.tar.gz
.
File metadata
- Download URL: fieldops-0.0.7.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48a4f7aae7820095c15d526a359c25181d2c4c7eaf581b476e9e26c2bd1b65a |
|
MD5 | bbf37cfe20848df07be28aaa42e045cd |
|
BLAKE2b-256 | 1fb815eb793cd7fad7ae617f9f29c9a0d7a53db23391753869545a51a875fee1 |