Browse Source

update registry and installer

Steve Nyemba 1 day ago
parent
commit
de87b33a68
2 changed files with 3 additions and 2 deletions
  1. 2 1
      pyproject.toml
  2. 1 1
      transport/registry.py

+ 2 - 1
pyproject.toml

@@ -18,7 +18,8 @@ classifiers = [
 ]
 dependencies = [
     "termcolor","sqlalchemy", "aiosqlite","duckdb-engine",
-    "typer","pandas","numpy","sqlalchemy","pyarrow",
+    "mysql-connector-python","psycopg2-binary","nzpy","pymssql","duckdb-engine","aiosqlite",
+    "typer","pandas","numpy","sqlalchemy","pyarrow","smart-open",
     "plugin-ix@git+https://github.com/lnyemba/plugins-ix"
 ]
 [project.optional-dependencies]

+ 1 - 1
transport/registry.py

@@ -49,7 +49,7 @@ def init (email,path=REGISTRY_PATH,override=False,_file=REGISTRY_FILE):
     Initializing the registry and will raise an exception in the advent of an issue
     """
     p = '@' in email
-    q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai','org']
+    q = False if '.' not in email else email.split('.')[-1] in ['edu','com','io','ai','org', 'co', 'cc','rw','zw'] or len (email.split('.')[-1]) >1 or len (email.split('.')[-1]) < 4
     if p and q :
         _config = {"email":email,'version':__version__}
         if not os.path.exists(path):