trustgraph-base 0.21.1__tar.gz → 0.21.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/PKG-INFO +2 -2
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/publisher.py +5 -9
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/subscriber.py +4 -10
- trustgraph-base-0.21.2/trustgraph/base_version.py +1 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/library.py +2 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/PKG-INFO +2 -2
- trustgraph-base-0.21.1/trustgraph/base_version.py +0 -1
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/README.md +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/setup.cfg +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/setup.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/api/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/api/api.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/base_processor.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/consumer.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/consumer_producer.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/producer.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/base.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/exceptions.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/document.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/log_level.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/field.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/object.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/rdf.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/__init__.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/agent.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/documents.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/graph.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/lookup.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/metadata.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/models.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/object.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/prompt.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/retrieval.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/topic.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/types.py +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/SOURCES.txt +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.2
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.2.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -6,14 +6,13 @@ import threading
|
|
6
6
|
|
7
7
|
class Publisher:
|
8
8
|
|
9
|
-
def __init__(self,
|
10
|
-
chunking_enabled=True
|
11
|
-
self.
|
9
|
+
def __init__(self, pulsar_client, topic, schema=None, max_size=10,
|
10
|
+
chunking_enabled=True):
|
11
|
+
self.client = pulsar_client
|
12
12
|
self.topic = topic
|
13
13
|
self.schema = schema
|
14
14
|
self.q = queue.Queue(maxsize=max_size)
|
15
15
|
self.chunking_enabled = chunking_enabled
|
16
|
-
self.listener_name = listener
|
17
16
|
self.running = True
|
18
17
|
|
19
18
|
def start(self):
|
@@ -33,11 +32,8 @@ class Publisher:
|
|
33
32
|
|
34
33
|
try:
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
)
|
39
|
-
|
40
|
-
producer = client.create_producer(
|
35
|
+
print(self.chunking_enabled)
|
36
|
+
producer = self.client.create_producer(
|
41
37
|
topic=self.topic,
|
42
38
|
schema=self.schema,
|
43
39
|
chunking_enabled=self.chunking_enabled,
|
@@ -6,9 +6,9 @@ import time
|
|
6
6
|
|
7
7
|
class Subscriber:
|
8
8
|
|
9
|
-
def __init__(self,
|
10
|
-
schema=None, max_size=100
|
11
|
-
self.
|
9
|
+
def __init__(self, pulsar_client, topic, subscription, consumer_name,
|
10
|
+
schema=None, max_size=100):
|
11
|
+
self.client = pulsar_client
|
12
12
|
self.topic = topic
|
13
13
|
self.subscription = subscription
|
14
14
|
self.consumer_name = consumer_name
|
@@ -17,7 +17,6 @@ class Subscriber:
|
|
17
17
|
self.full = {}
|
18
18
|
self.max_size = max_size
|
19
19
|
self.lock = threading.Lock()
|
20
|
-
self.listener_name = listener
|
21
20
|
self.running = True
|
22
21
|
|
23
22
|
def start(self):
|
@@ -36,12 +35,7 @@ class Subscriber:
|
|
36
35
|
|
37
36
|
try:
|
38
37
|
|
39
|
-
|
40
|
-
self.pulsar_host,
|
41
|
-
listener_name=self.listener_name,
|
42
|
-
)
|
43
|
-
|
44
|
-
consumer = client.subscribe(
|
38
|
+
consumer = self.client.subscribe(
|
45
39
|
topic=self.topic,
|
46
40
|
subscription_name=self.subscription,
|
47
41
|
consumer_name=self.consumer_name,
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.21.2"
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.2
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.2.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.21.1"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/document_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/graph_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/triples_query_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|