fmo-cli


Namefmo-cli JSON
Version 1.1.1 PyPI version JSON
download
home_page
SummaryCommand Line Interface to access and upload FindMyOyster data
upload_time2024-01-10 16:27:48
maintainer
docs_urlNone
authorGudjon Magnusson
requires_python>=3.7, <4
license
keywords findmyoyster cli
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # FindMyOyster Command Line Interface

This CLI tool allows you to interact with the [FindMyOyster](https://findmyoyster.com) 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/

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fmo-cli",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7, <4",
    "maintainer_email": "",
    "keywords": "FindMyOyster,CLI",
    "author": "Gudjon Magnusson",
    "author_email": "gmagnusson@fraunhofer.org",
    "download_url": "https://files.pythonhosted.org/packages/6d/d2/76556e8c144cdf01834c3c2b0d7435172290817d72b49e43cbc89f654a88/fmo-cli-1.1.1.tar.gz",
    "platform": null,
    "description": "# FindMyOyster Command Line Interface\n\nThis CLI tool allows you to interact with the [FindMyOyster](https://findmyoyster.com) backend to upload or access data. You can also use it as a library in your own scripts.\n\n## Installation\n\n```\npip install fmo-cli\n```\n\n## Authenticate \n\nBefore making any requests to the API you must authenticate. Requests are authenticated using a token.\n\nTo get a token to must use the `authenticate` command.\n\n```\nfmo authenticate\n```\nThe command will ask for 4 values\n- URL: Where is the FMO server? The default value is most likely OK\n- 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.\n- Username: The username you would use in the app\n- Password: The password you would use in the app\n\nIf authentication is successful, then a token will be saved in a `.env` file. FMO will look for the token there for all subsequent request. \n\nIf 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:\n```\nFMO_TOKEN=<my-token>\nFMO_API_URL=https://api.findmyoyster.com/v1\n```\n\n## Upload a GPS path\n\nGPS path are one of the primary types of data we deal with. Here how you might upload a path from a CSV file\n\n```\nfmo upload-path --format nmea ./my-data.csv\n```\n\nYou would like support for GPS data in a particular format, please let me know.\n\nThe example above is based on the NMEA format https://www.gpsworld.com/what-exactly-is-gps-nmea-data/\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Command Line Interface to access and upload FindMyOyster data",
    "version": "1.1.1",
    "project_urls": null,
    "split_keywords": [
        "findmyoyster",
        "cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "24e93d0d733e4e3f5e3d6b112df3dd9c32043b1a6adbc2db583f84221f74fe4c",
                "md5": "2f389d16f39835b4c909ca1bdb41ab3e",
                "sha256": "71674928dcefd18cb926738f65a156c2712c56d0f0d974653604defbe3e4ef55"
            },
            "downloads": -1,
            "filename": "fmo_cli-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f389d16f39835b4c909ca1bdb41ab3e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7, <4",
            "size": 10688,
            "upload_time": "2024-01-10T16:27:47",
            "upload_time_iso_8601": "2024-01-10T16:27:47.894576Z",
            "url": "https://files.pythonhosted.org/packages/24/e9/3d0d733e4e3f5e3d6b112df3dd9c32043b1a6adbc2db583f84221f74fe4c/fmo_cli-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6dd276556e8c144cdf01834c3c2b0d7435172290817d72b49e43cbc89f654a88",
                "md5": "2b9007eb6441642a8ebd34e93fa7a7c8",
                "sha256": "9948f3a4bf8fe0b46a0082efbc990241be7b391c13290f44dc1240c647f70d02"
            },
            "downloads": -1,
            "filename": "fmo-cli-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2b9007eb6441642a8ebd34e93fa7a7c8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7, <4",
            "size": 8427,
            "upload_time": "2024-01-10T16:27:48",
            "upload_time_iso_8601": "2024-01-10T16:27:48.820508Z",
            "url": "https://files.pythonhosted.org/packages/6d/d2/76556e8c144cdf01834c3c2b0d7435172290817d72b49e43cbc89f654a88/fmo-cli-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-10 16:27:48",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "fmo-cli"
}
        
Elapsed time: 0.16383s