mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-25 00:16:23 +02:00
Release PyPI package
This commit is contained in:
parent
742fca8e44
commit
178bd6943e
2 changed files with 5 additions and 4 deletions
2
setup.py
2
setup.py
|
|
@ -4,7 +4,7 @@ import os
|
|||
with open("README.md", "r") as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
version = "0.0.0"
|
||||
version = "0.2.1"
|
||||
|
||||
setuptools.setup(
|
||||
name="trustgraph",
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class EmbeddingsClient:
|
|||
pulsar_host="pulsar://pulsar:6650",
|
||||
):
|
||||
|
||||
self.client = None
|
||||
|
||||
if client_id == None:
|
||||
client_id = str(uuid.uuid4())
|
||||
|
||||
|
|
@ -64,7 +66,6 @@ class EmbeddingsClient:
|
|||
|
||||
def __del__(self):
|
||||
|
||||
self.producer.close()
|
||||
self.consumer.close()
|
||||
self.client.close()
|
||||
if self.client:
|
||||
self.client.close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue