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.
Files changed (56) hide show
  1. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/PKG-INFO +2 -2
  2. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/publisher.py +5 -9
  3. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/subscriber.py +4 -10
  4. trustgraph-base-0.21.2/trustgraph/base_version.py +1 -0
  5. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/library.py +2 -0
  6. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/PKG-INFO +2 -2
  7. trustgraph-base-0.21.1/trustgraph/base_version.py +0 -1
  8. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/README.md +0 -0
  9. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/setup.cfg +0 -0
  10. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/setup.py +0 -0
  11. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/api/__init__.py +0 -0
  12. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/api/api.py +0 -0
  13. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/__init__.py +0 -0
  14. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/base_processor.py +0 -0
  15. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/consumer.py +0 -0
  16. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/consumer_producer.py +0 -0
  17. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/base/producer.py +0 -0
  18. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/__init__.py +0 -0
  19. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/agent_client.py +0 -0
  20. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/base.py +0 -0
  21. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/document_embeddings_client.py +0 -0
  22. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/document_rag_client.py +0 -0
  23. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/embeddings_client.py +0 -0
  24. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/graph_embeddings_client.py +0 -0
  25. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/graph_rag_client.py +0 -0
  26. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/llm_client.py +0 -0
  27. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/prompt_client.py +0 -0
  28. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/clients/triples_query_client.py +0 -0
  29. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/exceptions.py +0 -0
  30. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/__init__.py +0 -0
  31. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/defs.py +0 -0
  32. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/document.py +0 -0
  33. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/identifier.py +0 -0
  34. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/organization.py +0 -0
  35. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/knowledge/publication.py +0 -0
  36. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/log_level.py +0 -0
  37. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/__init__.py +0 -0
  38. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/field.py +0 -0
  39. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/objects/object.py +0 -0
  40. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/rdf.py +0 -0
  41. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/__init__.py +0 -0
  42. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/agent.py +0 -0
  43. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/documents.py +0 -0
  44. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/graph.py +0 -0
  45. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/lookup.py +0 -0
  46. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/metadata.py +0 -0
  47. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/models.py +0 -0
  48. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/object.py +0 -0
  49. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/prompt.py +0 -0
  50. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/retrieval.py +0 -0
  51. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/topic.py +0 -0
  52. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph/schema/types.py +0 -0
  53. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/SOURCES.txt +0 -0
  54. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/dependency_links.txt +0 -0
  55. {trustgraph-base-0.21.1 → trustgraph-base-0.21.2}/trustgraph_base.egg-info/requires.txt +0 -0
  56. {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.1
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.1.tar.gz
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, pulsar_host, topic, schema=None, max_size=10,
10
- chunking_enabled=True, listener=None):
11
- self.pulsar_host = pulsar_host
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
- client = pulsar.Client(
37
- self.pulsar_host, listener_name=self.listener_name
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, pulsar_host, topic, subscription, consumer_name,
10
- schema=None, max_size=100, listener=None):
11
- self.pulsar_host = pulsar_host
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
- client = pulsar.Client(
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"
@@ -22,6 +22,8 @@ class DocumentPackage(Record):
22
22
  kind = String()
23
23
  user = String()
24
24
  collection = String()
25
+ title = String()
26
+ comments = String()
25
27
 
26
28
  class DocumentInfo(Record):
27
29
  metadata = Array(Triple())
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-base
3
- Version: 0.21.1
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.1.tar.gz
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"