Skip to main content

Command Line Interface to access and upload FindMyOyster data

Project description

FindMyOyster Command Line Interface

This CLI tool allows you to interact with the FindMyOyster backend to upload or access data. You can also use it as a library in your own scripts.

Installation

pip install fmo-cli

Authenticate

Before making any requests to the API you must authenticate. Requests are authenticated using a token.

To get a token to must use the authenticate command.

fmo authenticate

The command will ask for 4 values

  • URL: Where is the FMO server? The default value is most likely OK
  • Farm: FMO isolates all data per farm. Before doing anything you need to know what farm you are working with. For experiments you can probably use the "demo" farm, which is basically open to anyone.
  • Username: The username you would use in the app
  • Password: The password you would use in the app

If authentication is successful, then a token will be saved in a .env file. FMO will look for the token there for all subsequent request.

If you already have a token, you are welcome to create the file by hand and skip the authentication step. The file should look like this:

FMO_TOKEN=<my-token>
FMO_API_URL=https://api.findmyoyster.com/v1

Upload a GPS path

GPS path are one of the primary types of data we deal with. Here how you might upload a path from a CSV file

fmo upload-path --format nmea ./my-data.csv

You would like support for GPS data in a particular format, please let me know.

The example above is based on the NMEA format https://www.gpsworld.com/what-exactly-is-gps-nmea-data/

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

fmo-cli-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

fmo_cli-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file fmo-cli-1.1.0.tar.gz.

File metadata

  • Download URL: fmo-cli-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fmo-cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a848b0d9ba2e795f664ba62a31bd61260c2f4934cd03bf50c00e8956837f2dee
MD5 b3860824cb659155367e4f02d0e06866
BLAKE2b-256 eefb980d67943eda7d4d879b6f75ed04afa672eb0d7dadc9a6e06141a031f527

See more details on using hashes here.

File details

Details for the file fmo_cli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: fmo_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for fmo_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2a128b0cdbf33714f3f6b6ad375d3fee6fa723b3b362f6c8410909ca0606e1
MD5 c09202e2255d324d8d2c174ece8b77ea
BLAKE2b-256 a74f95015e11c58d06ab890ba45a7fcec946054909f151ce72f3a86d52ffb1c1

See more details on using hashes here.

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