You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/env python
|
|
|
|
__doc__ = """
|
|
|
|
(c) 2018 - 2021 data-transport
|
|
|
|
steve@the-phi.com, The Phi Technology LLC
|
|
|
|
https://dev.the-phi.com/git/steve/data-transport.git
|
|
|
|
|
|
|
|
This program performs ETL between 9 supported data sources : Couchdb, Mongodb, Mysql, Mariadb, PostgreSQL, Netezza,Redshift, Sqlite, File
|
|
|
|
import transport
|
|
|
|
This function applies data transport ETL feature to read data from one source to write it one or several others
|
|
|
|
|
|
|
|
"""
|
|
|
|
else:
|
|
|
|
print (f"""{TIMES_MARK}, Plugin registry is not available or needs initialization""")
|
|
|
|
|
|
|
|
@app.command(name="plugin-test")
|
|
|
|
def registry_test (key):
|
|
|
|
"""
|
|
|
|
This function allows to test syntax for a plugin i.e in terms of alis@function
|
|
|
|
"""
|
|
|
|
_item = transport.registry.plugins.has(key=key)
|
|
|
|
if _item :
|
|
|
|
del _item['pointer']
|
|
|
|
print (f"""{CHECK_MARK} successfully loaded \033[1m{key}\033[0m found, version {_item['version']}""")
|
|
|
|
print (pd.DataFrame([_item]))
|
|
|
|
else:
|
|
|
|
print (f"{TIMES_MARK} unable to load \033[1m{key}\033[0m. Make sure it is registered")
|
|
|
|
|