semvec/pypi-packages huggingface dataset:
fleetglue-client 2.0.2
Python client for FleetGlue API
Requires Python: <4.0,>=3.8

# FleetGlue API Python Client

A Python library for interfacing with the [FleetGlue REST API](https://docs.freedomrobotics.ai/reference#rest-api) in a Pythonic way, presenting Accounts, Devices, Alerts, and other objects as instances of Python classes. Currently only supports reading from the API ("GET" requests).

# Installation
```
$ pip(3) install fleetglue-client
```

# Simple API examples
## Instantiating the API

With a token and secret:
```
from fleetglue_client import FleetGlueClient
client = FleetGlueClient(token = "TXXX", secret = "Sxxx")
```

With a username and password:
```
from fleetglue_client import FleetGlueClient
client = FleetGlueClient(username = "your@email.com", password = "foo")
```

With a saved credentials file:
```
from fleetglue_client import FleetGlueClient
client = FleetGlueClient()
```

The file should be in `~/.fleetglue/credentials` and contain a JSON structure with `token` and `secret` fields, e.g. `{"token":"TXXX", "secret":"SXXX"}`.

## Manipulating accounts

Getting a list of accounts you have access to:
```
for account in client.accounts:
    print(account)
````

## Manipulating devices

Getting a list of devices in the first account you have access to:

```
for device in client.accounts[0].devices:
    print(device.name)
```

You can fetch a specific device by its ID:
```
device = client.accounts[0].device("Dxxxxxxxxxxxx")
```
or search for it by its name, assuming that name is unique:
```
device = client.accounts[0].find_device("myrobot")
```

## Getting data from devices

Getting the most recent value from a ROS topic:
```
device = client.accounts[0].find_device("myrobot")
print(device.last_data("/gps/fix"))
```

Getting full data from a time interval:
```
device = client.accounts[0].find_device("myrobot")

# fetch last 1000 s of data
for message in device.data("/gps/fix", start = time.time() - 1000, end = time.time()):
    print(message)
```

# Advanced API examples

See the demo\_.py files. (TODO: more data analysis demos.)


# Distribution

First you will need to have a local `~/.pypirc` file with the configurations for both Test PyPi and the production one. E.g.

```
[testpypi]
  username = __token__
  password = <request for original token>

[pypi]
  username = __token__
  password = <request for original token>
```

## Steps

* Publish to testpypi:

```
REPOSITORY=testpypi ./publish_to_pypi.sh
```

* Check that it's working properly:

```
pip install --index-url https://test.pypi.org/simple fleetglue_client
```

* Push to actual PyPi

```
REPOSITORY=pypi ./publish_to_pypi.sh
```
variant-json-file-utils 0.1.13
Collection of Python utils for managing and processing variant JSON files.
Requires Python: >=3.6
Keywords: variant_json_file_utils

=======================
Variant JSON File Utils
=======================


Collection of Python utils for managing and processing variant JSON files.



Features
--------

* Parser for variant JSON files
* Record for variant metadata
* Record for variant annotated match call data

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.0 (2024-10-10)
------------------

* First release on PyPI.