From d784a3d9da07eae28b9fbd288951a07ed773caae Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 3 Dec 2025 16:17:59 -0600 Subject: [PATCH 1/2] bug fixes and version update --- README.md | 30 ++++++++++++++++++++---------- bin/transport | 12 +++++++++++- pyproject.toml | 6 +++--- transport/__init__.py | 2 +- transport/registry.py | 2 +- 5 files changed, 36 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 577350e..4b0f214 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,34 @@ This project implements an abstraction of objects that can have access to a vari # Why Use Data-Transport ? -Data transport is a simple framework that: -- easy to install & modify (open-source) -- enables access to multiple database technologies (pandas, SQLAlchemy) -- enables notebook sharing without exposing database credential. -- supports pre/post processing specifications (pipeline) +Data transport is a simple framework that enables read/write to multiple databases or technologies that can hold data. In using **data-transport**, you are able to: +- Enjoy the simplicity of **data-transport** because it leverages SQLAlchemy & Pandas data-frames. +- Share notebooks and code without having to disclosing database credentials. +- Seamlessly and consistently access to multiple database technologies at no cost +- No need to worry about accidental writes to a database leading to inconsistent data +- Implement consistent pre and post processing as a pipeline i.e aggregation of functions +- **data-transport** is open-source under MIT License https://github.com/lnyemba/data-transport ## Installation -Within the virtual environment perform the following : +Within the virtual environment perform the following, the options for installation are: - pip install git+https://github.com/lnyemba/data-transport.git +**sql** - by default postgresql, mysql, sqlserver, sqlite3+, duckdb -Options to install components in square brackets + pip install data-transport[cloud,nosql,other,all]git+https://github.com/lnyemba/data-transport.git - pip install data-transport[nosql,cloud,warehouse,all]@git+https://github.com/lnyemba/data-transport.git +Options to install components in square brackets, these components are + +**warehouse** - Apache Iceberg, Apache Drill + +**cloud**  - to support nextcloud, s3 + +**nosql** - support for mongodb, couchdb +**other**  - support for files, rabbitmq, http + + pip install data-transport[nosql,cloud,warehouse,all]@git+https://github.com/lnyemba/data-transport.git ## Additional features @@ -28,7 +39,6 @@ Options to install components in square brackets - CLI interface to add to registry, run ETL - scales and integrates into shared environments like apache zeppelin; jupyterhub; SageMaker; ... - ## Learn More We have available notebooks with sample code to read/write against mongodb, couchdb, Netezza, PostgreSQL, Google Bigquery, Databricks, Microsoft SQL Server, MySQL ... Visit [data-transport homepage](https://healthcareio.the-phi.com/data-transport) diff --git a/bin/transport b/bin/transport index 41c1a75..8cec73f 100755 --- a/bin/transport +++ b/bin/transport @@ -178,7 +178,17 @@ def register (label:Annotated[str,typer.Argument(help="unique label that will be _msg = f"""{TIMES_MARK} {e}""" print (_msg) - pass +@app_r.command(name="list") +def register_list (): + """ + This function will list existing registry entries and basic information {label,vendor} + """ + # print (transport.registry.DATA) + _reg = transport.registry.DATA + _data = [{'label':key,'provider':_reg[key]['provider']} for key in _reg if 'provider' in _reg[key]] + _data = pd.DataFrame(_data) + print (_data) + @app_x.command(name='add') def register_plugs ( alias:Annotated[str,typer.Argument(help="unique function name within a file")], diff --git a/pyproject.toml b/pyproject.toml index b04071d..0391412 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,11 +42,11 @@ zip-safe = false script-files = ["bin/transport","bin/transport.cmd"] [tool.setuptools.packages.find] -include = ["info","info.*", "transport", "transport.*"] +include = [ "transport", "transport.*"] [tool.setuptools.dynamic] -version = {attr = "info.__version__"} -#authors = {attr = "meta.__author__"} +version = {attr = "transport.info.__version__"} +#authors = {attr = "transport.__author__"} # If you have a info.py file, you might also want to include the author dynamically: # [tool.setuptools.dynamic] diff --git a/transport/__init__.py b/transport/__init__.py index 6937189..63fd8b7 100644 --- a/transport/__init__.py +++ b/transport/__init__.py @@ -42,7 +42,7 @@ except Exception as e: import pandas as pd import json import os -from info import __version__,__author__,__email__,__license__,__app_name__,__whatsnew__,__edition__ +from transport.info import __version__,__author__,__email__,__license__,__app_name__,__whatsnew__,__edition__ from transport.iowrapper import IWriter, IReader, IETL from transport.plugins import PluginLoader from transport import providers diff --git a/transport/registry.py b/transport/registry.py index 050b82d..4fb96db 100644 --- a/transport/registry.py +++ b/transport/registry.py @@ -1,6 +1,6 @@ import os import json -from info import __version__ +from transport.info import __version__ import copy import transport import importlib -- 2.34.1 From 572c2c91a4baed2062b5a0ee9eaffa872785ec1c Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 3 Dec 2025 16:18:10 -0600 Subject: [PATCH 2/2] version update --- transport/info.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 transport/info.py diff --git a/transport/info.py b/transport/info.py new file mode 100644 index 0000000..eb1453d --- /dev/null +++ b/transport/info.py @@ -0,0 +1,23 @@ +__app_name__ = 'data-transport' +__author__ = 'The Phi Technology' +__version__= '2.2.30' +__email__ = "info@the-phi.com" +__edition__= 'community' +__license__=f""" +Copyright 2010 - 2024, Steve L. Nyemba + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +""" + +__whatsnew__=f"""version {__version__}, +1. Added support for read/write logs as well as plugins (when applied) +2. Bug fix with duckdb (adding readonly) for readers because there are issues with threads & processes +3. support for streaming data, important to use this with large volumes of data + + +""" -- 2.34.1