open-case 0.1.1__tar.gz

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.
@@ -0,0 +1,13 @@
1
+ Metadata-Version: 2.4
2
+ Name: open-case
3
+ Version: 0.1.1
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
+
File without changes
@@ -0,0 +1,16 @@
1
+ [project]
2
+ name = "open-case"
3
+ version = "0.1.1"
4
+ description = ""
5
+ authors = [{ name = "6vi7ms", email = "6vi7ms@gmail.com" }]
6
+ readme = "README.md"
7
+ requires-python = ">=3.13"
8
+ dependencies = []
9
+
10
+
11
+ [build-system]
12
+ requires = ["poetry-core>=2.0.0,<3.0.0"]
13
+ build-backend = "poetry.core.masonry.api"
14
+
15
+ [tool.poetry.scripts]
16
+ open-case = "open_case.main:main"
File without changes
@@ -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", default=datetime.now().year)
11
+ parser.add_argument("-c", "--case", default="001")
12
+ args = parser.parse_args()
13
+ year = args.year
14
+ case = args.case
15
+
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()