Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
API for interacting with the Artifact Client.
This Python package is automatically generated by the OpenAPI Generator project:
Python 3.7+
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
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
Execute pytest
to run the tests.
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)
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 |
Authentication schemes defined for the API:
FAQs
Python client for the Artifact API
We found that artifact-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.