-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from 0xdomyz/dev0.0.8
Dev0.0.8
- Loading branch information
Showing
14 changed files
with
334 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# development environment | ||
.vscode/ | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
from .dbo import db, Db, Pg, Lt, Oc | ||
from .set_up import save_url, make_eng, _get_url | ||
import logging | ||
|
||
from .dbo import Db, Lt, Oc, Pg, db | ||
from .set_up import _get_url, make_eng, save_url | ||
from .testing import make_test_tbl | ||
|
||
pg = db(_get_url("pg")) | ||
lt = db(_get_url("lt")) | ||
oc = db(_get_url("oc")) | ||
_logger = logging.getLogger(__name__) | ||
|
||
try: | ||
url, kwargs = _get_url("lt") | ||
lt = db(url, **kwargs) | ||
except Exception as e: | ||
msg = f"Failed to initialize default lt operator: {e}" | ||
_logger.debug(msg) | ||
lt = msg | ||
|
||
try: | ||
url, kwargs = _get_url("pg") | ||
pg = db(url, **kwargs) | ||
except Exception as e: | ||
msg = f"Failed to initialize default lt operator: {e}" | ||
_logger.debug(msg) | ||
pg = msg | ||
|
||
d = db | ||
l = lt | ||
m = make_test_tbl | ||
o = oc | ||
p = pg | ||
s = save_url | ||
try: | ||
url, kwargs = _get_url("oc") | ||
oc = db(url, **kwargs) | ||
except Exception as e: | ||
msg = f"Failed to initialize default lt operator: {e}" | ||
_logger.debug(msg) | ||
oc = msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.