Skip to content

Commit aa4dfb1

Browse files
committed
fix library code
1 parent b71b3e2 commit aa4dfb1

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

absbox/exception.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ def __init__(self, engineResp) -> None:
1212
errorMsg = engineResp.text
1313
super().__init__(errorMsg)
1414

15-
1615
class AbsboxError(Exception):
1716
"""Exception for error from absbox"""
1817
def __init__(self, errorMsg) -> None:

absbox/library.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,19 @@
55
from rich.console import Console
66
from rich import print_json
77
import enum
8-
8+
import getpass ,json
99
import pandas as pd
1010
from .exception import *
11+
import requests
12+
13+
from requests.exceptions import ReadTimeout
14+
from json import JSONDecodeError
15+
16+
from .client import VERSION_NUM
17+
18+
console = Console()
19+
20+
from .validation import vStr
1121

1222
class LibraryEndpoints(str, enum.Enum):
1323
"""Endpoints for deal library"""
@@ -96,7 +106,7 @@ def safeLogin(self, user, **q):
96106
:type user: string
97107
"""
98108
try:
99-
pw = getpass.getpass()
109+
pw = getpass.getpass(prompt=f"Enter your deal library password for {user}:")
100110
self.login(user, pw, **q)
101111
except Exception as e:
102112
raise AbsboxError(f"❌ Failed during library login {e}")

absbox/local/cf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ def filterCols(x:dict, columnsToKeep) -> pd.DataFrame:
7979
df = pd.concat(yyz,axis=1)
8080
else:
8181
bMap = filterCols(bMap, columns)
82-
bondDf = bMap & lens.Recur(pd.DataFrame).collect()
8382
indexes = []
8483
cfFrame = []
8584
for k,v in bMap.items():

absbox/validation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from schema import Schema,Regex,Or
2-
import re
32

43
from urllib.parse import urlparse
54

0 commit comments

Comments
 (0)