Skip to main content

Super Sod Command Line Interface

Project description

y

Super-Sod Command Line Interface

Contents


Installation

To install using pip use:

pip install supersod-cli


Quickstart

run the following in cmd

Add geocoding and Onfleet API keys:

supersod auth ONFLEET_DEV -k <API_KEY>

supersod auth GOOGLE_GEOCODING -k <API_KEY>

Change directory to one with file named tasks.csv. In this example it is on your desktop in a folder named Onfleet:

cd Desktop/Onfleet

Upload tasks to Onfleet:

supersod load csv

List all tasks in the future:

supersod tasks list

Clear all test tasks in the future:

supersod tasks clear


Commands

auth

Add, check, or remove API keys. Saves keys to your OS's keyring.

VALID KEY NAMES ARE: ONFLEET_DEV, AZURE_ADMIN, GOOGLE_GEOCODING

Usage

Set an API key: supersod auth ONFLEET_DEV -k a1234578bcd9xyz

Check an API key: supersod auth GOOGLE_GEOCODING --check

Options

  • -k, --key: Value of key to set.
  • --check: Print the value of the key to the console.

load

Load a CSV of tasks into Onfleet.

Usage

Load a file named tasks.csv in the current directory: supersod load csv

Load a file in your home directory named Rev02_2022.csv: supersod load csv -f '~/Rev02_2022.csv'

Options and Arguments

  • -f, --filepath: Filepath of file to read. Default is ./tasks.csv.

tasks

List or clear the tasks currently in Onfleet.

If you go back more than THREE DAYS Onfleet cannot get tasks in the future.

Usage

List all future tasks: supersod tasks list

Clear all future tasks: supersod tasks clear

List tasks in the next three days: supersod tasks list --to 3

List tasks from the last week: supersod tasks list --from 7 --to 0

Options and Arguments

  • action: The type of action to take. Can be list or clear
  • -f, --from: Number of days to look back.
  • -t, --to: Number of days to look forward. If --from > 3 this won't work...
  • --v: Verbose - Print entire payload when listing tasks

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

supersod-cli-0.3.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

supersod_cli-0.3.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file supersod-cli-0.3.1.tar.gz.

File metadata

  • Download URL: supersod-cli-0.3.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for supersod-cli-0.3.1.tar.gz
Algorithm Hash digest
SHA256 7a0d0ff3be16e4b0ff8f95c1f3eb000e26083865998111d4e0476794889df8d6
MD5 1affb58c6d37557bc8933128c684eaa6
BLAKE2b-256 2abad16e562392ca507394ec026c6f7df5cdd81afd18e49054626fe0eab4eee7

See more details on using hashes here.

File details

Details for the file supersod_cli-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: supersod_cli-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for supersod_cli-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbeaba8c5b9707a857f4e8386a0a27a87d387512d00357e7ef1beb4522b44dbb
MD5 542c529aa37171d4d3bf825099c8d34e
BLAKE2b-256 1f5530644b2675c8110340432450352c6dd1f9f3ab29c05bd6f6f52b30ed7f24

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