# 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.14.29.tar.gz
(8.3 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.14.29.tar.gz.
File metadata
- Download URL: gmapi-1.14.29.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0263803c54205029dec8c867c0fb186e4a71c28138295545bdc0bc301c619a
|
|
| MD5 |
835a11490a8e9fb852b2e2ddbbefc795
|
|
| BLAKE2b-256 |
cf902db03a632114e71a64e41b5fdb86dfdbf334778e50e75eccb9fe86e3db6d
|
File details
Details for the file gmapi-1.14.29-py2.py3-none-any.whl.
File metadata
- Download URL: gmapi-1.14.29-py2.py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94143a11477d0dce79b74d3567546d0dc44b2bcbc829236b87e532a827e418e4
|
|
| MD5 |
9f2b8da03ecd2a8022668765550a5451
|
|
| BLAKE2b-256 |
d25908faa62799de648a3d3664873651417d88f6451f8c9f4cd6b2bdcda55a53
|