ChaterJee 0.6.0__py3-none-any.whl → 0.6.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ChaterJee/ChaterJee.py +10 -3
- {chaterjee-0.6.0.dist-info → chaterjee-0.6.2.dist-info}/METADATA +3 -10
- chaterjee-0.6.2.dist-info/RECORD +7 -0
- {chaterjee-0.6.0.dist-info → chaterjee-0.6.2.dist-info}/WHEEL +1 -1
- chaterjee-0.6.0.dist-info/RECORD +0 -7
- {chaterjee-0.6.0.dist-info → chaterjee-0.6.2.dist-info}/entry_points.txt +0 -0
- {chaterjee-0.6.0.dist-info → chaterjee-0.6.2.dist-info}/top_level.txt +0 -0
ChaterJee/ChaterJee.py
CHANGED
@@ -499,7 +499,7 @@ class NoteLogs:
|
|
499
499
|
def register():
|
500
500
|
parser = argparse.ArgumentParser(description="I am ChaterJee register, I note your jobs for keeping logs.")
|
501
501
|
parser.add_argument("command",type=str,help="command to run in your terminal")
|
502
|
-
parser.add_argument("--jobname",
|
502
|
+
parser.add_argument("--jobname",type=str,help="name of the job for logging",required=True)
|
503
503
|
parser.add_argument("--logdir",default=None,type=str,help="log directory path")
|
504
504
|
parser.add_argument("--logfile",default=None,type=str,help="log file path")
|
505
505
|
parser.add_argument("--logimage",default=None,type=str,help="log image path")
|
@@ -512,11 +512,18 @@ def register():
|
|
512
512
|
|
513
513
|
job = NoteLogs(args.jobname)
|
514
514
|
job.save_job_JSON()
|
515
|
-
|
515
|
+
|
516
|
+
if args.logfile is None:
|
517
|
+
logFIle = f'{args.jobname}.log'
|
518
|
+
else:
|
519
|
+
logFIle = args.logfile
|
520
|
+
|
521
|
+
with open(logFile, "w") as out, open("error.log", "w") as err:
|
522
|
+
subprocess.Popen(
|
516
523
|
[f"{args.command}"],
|
517
524
|
stdout=out,
|
518
525
|
stderr=err,
|
519
|
-
|
526
|
+
)
|
520
527
|
|
521
528
|
def updater():
|
522
529
|
parser = argparse.ArgumentParser(description="I am ChaterJee updater, I update your registered project logs.")
|
@@ -1,19 +1,12 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: ChaterJee
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.2
|
4
4
|
Summary: Communicate your project updates via Telegram Bot!
|
5
5
|
Author: Pallab Dutta
|
6
6
|
Author-email: pallab9997@gmail.com
|
7
7
|
Requires-Python: >=3.8
|
8
8
|
Description-Content-Type: text/markdown
|
9
|
-
Requires-Dist: python-telegram-bot==20.7
|
10
|
-
Dynamic: author
|
11
|
-
Dynamic: author-email
|
12
|
-
Dynamic: description
|
13
|
-
Dynamic: description-content-type
|
14
|
-
Dynamic: requires-dist
|
15
|
-
Dynamic: requires-python
|
16
|
-
Dynamic: summary
|
9
|
+
Requires-Dist: python-telegram-bot ==20.7
|
17
10
|
|
18
11
|
# ChaterJee
|
19
12
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
ChaterJee/ChaterJee.py,sha256=fe3vpyMrbcF1KUNJphDvPiaxXdbaFOlu4I6wa842Mzo,21561
|
2
|
+
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
+
chaterjee-0.6.2.dist-info/METADATA,sha256=MeYwuCgYXzkR1zyXY1Bd5Y8oj947FplRjUFPBrC8QiE,6723
|
4
|
+
chaterjee-0.6.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
|
5
|
+
chaterjee-0.6.2.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
|
6
|
+
chaterjee-0.6.2.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
7
|
+
chaterjee-0.6.2.dist-info/RECORD,,
|
chaterjee-0.6.0.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
ChaterJee/ChaterJee.py,sha256=Y5VLAcNa1bQOuj9k2SIz13yRv1teoZXRuyU3S8F3ANQ,21429
|
2
|
-
ChaterJee/__init__.py,sha256=tZmkZY2XbzJ8rHDh8nOmb1W73kPecPv3xcEiCPwkZf4,98
|
3
|
-
chaterjee-0.6.0.dist-info/METADATA,sha256=iIe5gbUS2FdJtMlJEvhaGf5z6TgyLKMTwzSQx4eq7Yw,6880
|
4
|
-
chaterjee-0.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
5
|
-
chaterjee-0.6.0.dist-info/entry_points.txt,sha256=MCOBbAWR8oBPX7h6flYn8SGUtoXTQR_qO6iLPRv4Zhc,95
|
6
|
-
chaterjee-0.6.0.dist-info/top_level.txt,sha256=Z1UAYoaNybpDiKjqa1yFpti_q0FNECVItb3-9yAh3gM,10
|
7
|
-
chaterjee-0.6.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|