Install
$ python3 setup.py bdist_wheel
$ cd dist && pip3 install ./*.whl
Launch http service
$ python3 -m gshttpservice 9527
API
Create instance
POST /api/graphservice/createInstance
> body
> {
> "num_workers": 2,
> "vineyard_shared_mem": "4Gi"
> }
See more parameter details from Doc
Get instance
GET /api/graphservice/getInstance
Load data
POST /api/graphservice/loadData
> body
> {
> "type": "LOCAL",
> "directed": true,
> "oid_type": "string",
> "instance_id": "<graphscope instance id>",
> "dataSource": {
> "nodes": [
> {
> "label": "v",
> "location": "",
> "config": {
> "header_row": true,
> "delimiter": ","
> }
> }
> ],
> "edges": [
> {
> "label": "e",
> "location": "",
> "srcLabel": "v",
> "dstLabel": "v",
> "config": {
> "header_row": true,
> "delimiter": ","
> }
> }
> ]
> }
>}
Get graph schema
GET /api/graphservice/graphSchema
> params
> {
> "graph_name": ""
> }
Gremlin query
GET /api/graphservice/query/gremlin
> params
> {
> "graph_name": <graph for gremlin query>,
> "gremlinSQL": "g.V('1')"
> }
Close instance
GET /api/graphservice/closeInstance
> params
> {
> "instance_id": <graphscope instance to close>,
> }
Upload file
POST /api/graphservice/uploadFile
> header
> {
> Content-Type: multipart/form-data
> }
>
> body
> {
> file=@file_path,
> instance_id="instance_id"
> }
> example
> curl -i -X POST -H "Content-Type: multipart/form-data" -F "file=@file1" -F "file=@file2" -F "instance_id=xxx" -w %{http_code} http://localhost:9527/api/graphservice/uploadFile
Metadata
Release files for gshttpservice 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gshttpservice-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / gshttpservice-0.1.0-py2.py3-none-any.whl
| Download URL | gshttpservice-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5a97eceb23eeebb9d4af10c18fd8f2cb0d2faec21c4e605baa98408864743de5
|
|
BLAKE2b-256 checksum How to use checksums |
461d2f23b427e21989c47a05b1e79d5a907ae2e50c7c3d2aac2458b3b983f2a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for gshttpservice 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.