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/dev
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
Built Distribution
File details
Details for the file fmo-cli-1.0.1.tar.gz
.
File metadata
- Download URL: fmo-cli-1.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a60aab30637204f65a32b6b578318f5a9ef8091628e747fb853760292bfd6655 |
|
MD5 | fa6f63a89db6818b2523c174310503ee |
|
BLAKE2b-256 | ec3734d886b5e6b4d64726538cb22a028b6b7b5ddb8c713ba7b2a38cb1f0d127 |
File details
Details for the file fmo_cli-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: fmo_cli-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b46b0a55e0d36a35aa1c1d446f579ddcf47c6dcee93a73c25fbae85dac2d2489 |
|
MD5 | 4237df6faf920c8369d9ec76cfbefe68 |
|
BLAKE2b-256 | b7a47d81ca4d65593f56e95df783646196f939270578400ea45691641407ec6d |