The cloud subpackage for endaq-python
Project description
endaq-cloud
The cloud subpackage for endaq-python
This package houses tools and functions to make both interacting with the enDAQ Cloud API and the enDAQ Cloud <https://cloud.endaq.com>_ itself easier.
Tools:
API Wrapper:
The API Wrapper provides a simple command-line interface for accessing basic file and device information from the enDAQ Cloud API. Output of all commands except account and attributes are in csv files in the output folder.
To access the cloud, this tool requires an API key associated with a user's enDAQ Cloud account, which can be provided in two ways:
-
(recommended) add to the
endaq.cloudproject directory a.envfile, formatted like so:API_KEY=<Your Key> -
pass in an API key through the command line using the
--keyoption
warning
For security reasons, it is generally discouraged to make an authentication key visible on-screen or accessible through the clipboard, such as when using the --key option; we provide the key option solely as a convenience.
Runs on Python 3.6 and higher
Commands
- files Outputs file information for selected number of files and attributes
- file-id Outputs file information for file with specified ID to output file
- devices Ouputs device information for selected number of files
- device-id Output device information for device with specified ID to output file
- account Prints out account information
- attributes Adds an attribute to a specified file
- set-env Creates a .env file with passed in API key NOT SECURE
Usages
| Flag | Description |
|---|---|
| -h | Command Line Help |
| --id, -i | File or Device ID |
| --limit, -l | File or Device output limit; Max 100 default 50 |
| --key, -k | API Key |
| --attributes, -a | Attributes to be outputted; options = all or att1,att2...; default is none |
| --name, -n | Attribute Name |
| --type, -t | Attribute Type; options = int, float, string, boolean |
| --value, -v | Attribute Value |
| --verbose, -V | Prints out URL API calls |
- endaq-cloud set-env -k <API_KEY>
- endaq-cloud download -i <FILE_ID> -o <OUTPUT_FOLDER>
- endaq-cloud files -a <ATTRIBUTES_TO_GET> -l <FILE_OR_DEVICE_OUTPUT_LIMIT>
- endaq-cloud file-id -i # additional argument needed
- endaq-cloud devices -l <FILE_OR_DEVICE_OUTPUT_LIMIT>
- endaq-cloud device-id -i # additional argument needed
- endaq-cloud account
- endaq-cloud attribute -n <ATTRIBUTE_NAME> -t <ATTRIBUTE_TYPE> -v <ATTRIBUTE_VALUE> -i # additional arguments needed
Utilities
Convienience functions for interacting with the cloud API and the enDAQ custom cloud report generation.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file endaq-cloud-1.1.0.tar.gz.
File metadata
- Download URL: endaq-cloud-1.1.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b990cd9b96e092e206290b0961a379a991e1b47fbb92d0dba7c84b8fca87d8de
|
|
| MD5 |
2a2176d32b0a5ec605cf91c916d1775e
|
|
| BLAKE2b-256 |
469fdf1a0b43d1d9646aed55c8a613404e3f4ead55dea110092d6c29ac703c03
|
File details
Details for the file endaq_cloud-1.1.0-py3-none-any.whl.
File metadata
- Download URL: endaq_cloud-1.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0da355d703a7af8a8c47ec734a0ae9cba24d9cfcbcff7f0bc118edc5fa77c456
|
|
| MD5 |
15a7d5537191a2d9191bdeace92ccc76
|
|
| BLAKE2b-256 |
64d94fc5f71ddc1d82636292550827c35a381bc97960ddcd67b2831fce62702a
|