From edd3efd3286d795365fc7ffcdc43a0967b91d66c Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Mon, 1 Apr 2024 15:41:39 -0500 Subject: [PATCH] bug fixes: imports --- setup.py | 3 ++- transport/__init__.py | 3 ++- transport/nosql/__init__.py | 10 ++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 40ba3fb..743746e 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,8 @@ args = { "version":__version__, "author":__author__,"author_email":"info@the-phi.com", "license":"MIT", - "packages":["transport","info"]} + # "packages":["transport","info","transport/sql"]}, + "packages": find_packages(include=['info', 'transport.*'])} args["keywords"]=['mongodb','couchdb','rabbitmq','file','read','write','s3','sqlite'] args["install_requires"] = ['pyncclient','pymongo','sqlalchemy','pandas','typer','pandas-gbq','numpy','cloudant','pika','nzpy','boto3','boto','pyarrow','google-cloud-bigquery','google-cloud-bigquery-storage','flask-session','smart_open','botocore','psycopg2-binary','mysql-connector-python','numpy'] args["url"] = "https://healthcareio.the-phi.com/git/code/transport.git" diff --git a/transport/__init__.py b/transport/__init__.py index 387161d..2e2897a 100644 --- a/transport/__init__.py +++ b/transport/__init__.py @@ -18,13 +18,14 @@ Source Code is available under MIT License: """ import numpy as np -from transport import sql, nosql, cloud, other +import sql, nosql, cloud, other import pandas as pd import json import os from info import __version__,__author__ from transport.iowrapper import IWriter, IReader from transport.plugins import PluginLoader +from transport import providers PROVIDERS = {} def init(): global PROVIDERS diff --git a/transport/nosql/__init__.py b/transport/nosql/__init__.py index 465b912..c89b212 100644 --- a/transport/nosql/__init__.py +++ b/transport/nosql/__init__.py @@ -2,9 +2,11 @@ Steve L. Nyemba, nyemba@gmail.com This namespace implements support for cloud databases couchdb,mongodb, cloudant ... """ -from transport.nosql import couchdb -from transport.nosql import mongodb -# from . import mongodb -# from . import couchdb +# from transport.nosql import couchdb +# from transport.nosql import mongodb +from . import mongodb +from . import couchdb +# import mongodb +# import couchdb cloudant = couchdb \ No newline at end of file