# gm
Python GrayMeta API bindings.
This project is used to access your GrayMeta installation API using python.
## Installation
This is avaialble on pypy
pip install gmapi
## Usage
`gmapi` can be used directly via the terminal with the `gm` command, or via the API.
## Usage (Terminal)
You must first make the `GRAYMETA_SERVER_URL` and your `GRAYMETA_API_KEY` available as environment variables, then you can call `gm`
```
export GRAYMETA_SERVER_URL=https://your-installation-of-graymeta
export GRAYMETA_API_KEY=your-api-keye
```
> See your Admin for details of these values
Next, you can just call `gm`:
```
gm
```
## Usage (API)
Having installed gmapi via `pip`, you can then use it directly in your python, for example
(demo.py)
```
from gmapi import gmapi.GraymetaClient
SERVER_URL="https://your-server"
API_KEY="your-gm-api-key"
client = GraymetaClient(SERVER_URL, API_KEY)
client.search()
```
## API Documentation
TODO
Python GrayMeta API bindings.
This project is used to access your GrayMeta installation API using python.
## Installation
This is avaialble on pypy
pip install gmapi
## Usage
`gmapi` can be used directly via the terminal with the `gm` command, or via the API.
## Usage (Terminal)
You must first make the `GRAYMETA_SERVER_URL` and your `GRAYMETA_API_KEY` available as environment variables, then you can call `gm`
```
export GRAYMETA_SERVER_URL=https://your-installation-of-graymeta
export GRAYMETA_API_KEY=your-api-keye
```
> See your Admin for details of these values
Next, you can just call `gm`:
```
gm
```
## Usage (API)
Having installed gmapi via `pip`, you can then use it directly in your python, for example
(demo.py)
```
from gmapi import gmapi.GraymetaClient
SERVER_URL="https://your-server"
API_KEY="your-gm-api-key"
client = GraymetaClient(SERVER_URL, API_KEY)
client.search()
```
## API Documentation
TODO
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gmapi-1.8.21.tar.gz
(5.4 kB
view details)
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 gmapi-1.8.21.tar.gz.
File metadata
- Download URL: gmapi-1.8.21.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbc29f6bd9056abf5fee12400a7206583c419f0bf6f14ce4125541f09797779b
|
|
| MD5 |
bbe78e7ed3aec650fc2206962703b865
|
|
| BLAKE2b-256 |
7a4e13529ed92ac27c075ab28d56aae64b79754de8bd26809d9b4426762bf0c6
|
File details
Details for the file gmapi-1.8.21-py2.py3-none-any.whl.
File metadata
- Download URL: gmapi-1.8.21-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed96c23acb3cfde84426c9c2c57d82f02177929dc0f1ff52daca2553c771595
|
|
| MD5 |
453de0ada5d6f018558a9f3674ac6f63
|
|
| BLAKE2b-256 |
3449f02d3ad23eee566ef6fa9685be759382519c978142ece5c80e42c9965154
|