Skip to main content

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

# ArtifactClient wraps some of the boilerplate functionality needed to drive the
# autogenerated code. The API key can be passed in to the constructor as `api_key`.
# If not specified, the client looks for the key in the environment under ARTIFACT_API_KEY.
api_client = ArtifactClient()

# The client supports all the API endpoints. Below are examples of a few of the commonly used actions.
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)

# Kick off an async server process to index the graph
api_client.index_graph(graph.uuid)

# When the indexing completes, the graph is ready to be queried for useful information.
response = api_client.query_graph(graph.uuid)

Documentation for API Endpoints

All URIs are relative to https://api.useartifact.ai

Class Method HTTP request Description
DefaultApi create_graph POST /graphs Create a new graph
DefaultApi delete_all_graphs POST /graphs/delete_all Deletes all graphs
DefaultApi delete_graph POST /graphs/{graphId}/delete Delete a graph
DefaultApi get_graph_documents_meta POST /graphs/{graphId}/documents_meta Get graph documents meta
DefaultApi get_graph_stats POST /graphs/{graphId}/stats Get graph statistics
DefaultApi ingest_document POST /graphs/{graphId}/ingest Ingest a document into a graph
DefaultApi list_graphs GET /graphs List all graphs
DefaultApi query_graph POST /graphs/{graphId}/query Query a graph

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

Metadata

Release files for artifact-client 2.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for artifact-client 2.4.5
File Size Uploaded
artifact_client-2.4.5.tar.gz 41.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for artifact-client 2.4.5
File Interpreter ABI Platform
artifact_client-2.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 114.4 kB

Release files / artifact_client-2.4.5.tar.gz

Download URL artifact_client-2.4.5.tar.gz
Size 41.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4aa90603988db2d29db2de15f0f4e38302a8bdaff604a6bfc8025d9600abbff1
BLAKE2b-256 checksum
How to use checksums
ba593cb3f8e58a41c7a315f6ebe893eca5f29d35392495660cd8629fd830563e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / artifact_client-2.4.5-py3-none-any.whl

Download URL artifact_client-2.4.5-py3-none-any.whl
Size 73.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3a6f4d396233edb7f7c1b8396ef1f3aa36a65af732558e351caac5657a3ccf1
BLAKE2b-256 checksum
How to use checksums
cf48b0067e59e10ecaef4e4fdcb44b49f20894e335e3990ed97e606c5bcc0ad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

2.4.5 This release

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.1

2 release files

2.3.0

2 release files

2.2.10

2 release files

2.2.9

2 release files

2.2.8

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.13

2 release files

2.0.11

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page