open-case 0.1.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.
open_case/__init__.py
ADDED
|
File without changes
|
open_case/main.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import os
|
|
3
|
+
import subprocess
|
|
4
|
+
import getpass
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
parser = argparse.ArgumentParser()
|
|
10
|
+
parser.add_argument("-y", "--year", type=int, default=datetime.now().year)
|
|
11
|
+
parser.add_argument("-c", "--case", type=int, default=1)
|
|
12
|
+
args = parser.parse_args()
|
|
13
|
+
|
|
14
|
+
year = args.year
|
|
15
|
+
case = str(args.case).zfill(3)
|
|
16
|
+
user = getpass.getuser()
|
|
17
|
+
onedrive_path = rf"C:\Users\{user}\OneDrive\Documents\Forensic Reports\{year}\F-{year}-{case}"
|
|
18
|
+
|
|
19
|
+
if os.path.exists(onedrive_path):
|
|
20
|
+
print(f"Opening folder: {onedrive_path}")
|
|
21
|
+
subprocess.run(["explorer", onedrive_path])
|
|
22
|
+
else:
|
|
23
|
+
print(f"Folder not found: {onedrive_path}")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
if __name__ == "__main__":
|
|
27
|
+
main()
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: open-case
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary:
|
|
5
|
+
Author: 6vi7ms
|
|
6
|
+
Author-email: 6vi7ms@gmail.com
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
open_case/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
open_case/main.py,sha256=km1_KDB-SoerXSQ7nj-M6xGGcXTdfBZEWMsy0-4P_yA,768
|
|
3
|
+
open_case-0.1.2.dist-info/entry_points.txt,sha256=ratiihyChGs8bMnPoklBh7hzTNlfvr_dt1zhzLwKN78,49
|
|
4
|
+
open_case-0.1.2.dist-info/METADATA,sha256=bwBxgQQhNz19bwWCQhVNcZ73ZlZ-PRzt_P6PjZDDBBw,325
|
|
5
|
+
open_case-0.1.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
6
|
+
open_case-0.1.2.dist-info/RECORD,,
|