artifact-client
API for interacting with the Artifact Client.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import artifact
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import artifact
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import os
from artifact import ArtifactClient
from artifact.models import ApiException
from pprint import pprint
api_client = ArtifactClient()
graph = api_client.create_graph(name="My First Graph")
doc_str = (
"Input a corpus of text and save it as a string in memory. Then pass it to the ingest method."
)
api_client.ingest_document(graph.uuid, doc_str)
api_client.index_graph(graph.uuid)
response = api_client.query_graph(graph.uuid)
Documentation for API Endpoints
All URIs are relative to https://api.useartifact.ai
Documentation For Models
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
Author