mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-03 20:32:38 +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:
|
with open("README.md", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "0.0.0"
|
version = "0.2.1"
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="trustgraph",
|
name="trustgraph",
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ class EmbeddingsClient:
|
||||||
pulsar_host="pulsar://pulsar:6650",
|
pulsar_host="pulsar://pulsar:6650",
|
||||||
):
|
):
|
||||||
|
|
||||||
|
self.client = None
|
||||||
|
|
||||||
if client_id == None:
|
if client_id == None:
|
||||||
client_id = str(uuid.uuid4())
|
client_id = str(uuid.uuid4())
|
||||||
|
|
||||||
|
|
@ -64,7 +66,6 @@ class EmbeddingsClient:
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
|
||||||
self.producer.close()
|
if self.client:
|
||||||
self.consumer.close()
|
|
||||||
self.client.close()
|
self.client.close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue