uw-course 1.0.0__tar.gz → 1.0.2__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.
Files changed (23) hide show
  1. {uw_course-1.0.0/uw_course.egg-info → uw_course-1.0.2}/PKG-INFO +3 -3
  2. {uw_course-1.0.0 → uw_course-1.0.2}/README.md +2 -2
  3. {uw_course-1.0.0 → uw_course-1.0.2}/pyproject.toml +1 -1
  4. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/ClassSchedule/__init__.py +0 -0
  5. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/DB/__init__.py +0 -0
  6. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/Utiles/__init__.py +0 -0
  7. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/__init__.py +0 -0
  8. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/main.py +10 -4
  9. {uw_course-1.0.0 → uw_course-1.0.2/uw_course.egg-info}/PKG-INFO +3 -3
  10. {uw_course-1.0.0 → uw_course-1.0.2}/LICENSE +0 -0
  11. {uw_course-1.0.0 → uw_course-1.0.2}/setup.cfg +0 -0
  12. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/ClassSchedule/SearchInfo.py +0 -0
  13. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/ClassSchedule/runner.py +0 -0
  14. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/DB/dbClass.py +0 -0
  15. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/Utiles/colorMessage.py +0 -0
  16. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/Utiles/manageDBClass.py +0 -0
  17. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/Utiles/randomColor.py +0 -0
  18. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course/setting.py +0 -0
  19. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course.egg-info/SOURCES.txt +0 -0
  20. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course.egg-info/dependency_links.txt +0 -0
  21. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course.egg-info/entry_points.txt +0 -0
  22. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course.egg-info/requires.txt +0 -0
  23. {uw_course-1.0.0 → uw_course-1.0.2}/uw_course.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uw-course
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A course helper tool for managing UW courses schedule
5
5
  Author-email: Jiucheng Zang <zangjiucheng@gmail.com>
6
6
  License: MIT
@@ -30,7 +30,7 @@ MongoDB DashBoard: [LINK](https://charts.mongodb.com/charts-project-0-cbzai/publ
30
30
 
31
31
  ### Example Schedule:
32
32
 
33
- ![Image text](https://raw.githubusercontent.com/zangjiucheng/UWaterlooCourseHelperEngine/Release/schedule.jpg)
33
+ ![Image text](demo.png)
34
34
 
35
35
  ---
36
36
 
@@ -82,7 +82,7 @@ AMATH 250, 5967
82
82
  uw-course -f schedule.txt
83
83
  ```
84
84
  (If you want to get the schedule with gray printables, you can add the ```-g``` flag)
85
- ```bash
85
+
86
86
  4. The program will generate a ```schedule.pdf``` file in the same folder, which is the schedule you want to see
87
87
 
88
88
  #### Any Idea or Question, welcome send me an email via: j7zang@uwaterloo.ca
@@ -9,7 +9,7 @@ MongoDB DashBoard: [LINK](https://charts.mongodb.com/charts-project-0-cbzai/publ
9
9
 
10
10
  ### Example Schedule:
11
11
 
12
- ![Image text](https://raw.githubusercontent.com/zangjiucheng/UWaterlooCourseHelperEngine/Release/schedule.jpg)
12
+ ![Image text](demo.png)
13
13
 
14
14
  ---
15
15
 
@@ -61,7 +61,7 @@ AMATH 250, 5967
61
61
  uw-course -f schedule.txt
62
62
  ```
63
63
  (If you want to get the schedule with gray printables, you can add the ```-g``` flag)
64
- ```bash
64
+
65
65
  4. The program will generate a ```schedule.pdf``` file in the same folder, which is the schedule you want to see
66
66
 
67
67
  #### Any Idea or Question, welcome send me an email via: j7zang@uwaterloo.ca
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "uw-course"
7
- version = "1.0.0"
7
+ version = "1.0.2"
8
8
  description = "A course helper tool for managing UW courses schedule"
9
9
  authors = [
10
10
  { name = "Jiucheng Zang", email = "zangjiucheng@gmail.com" }
@@ -27,7 +27,8 @@ def parse_arguments():
27
27
  parser = argparse.ArgumentParser(
28
28
  description="Course Helper: A tool to manage course details and collections.",
29
29
  epilog=f"""Hint: Use --course to specify a course
30
- or --file to specify a file with courses using schema: {url}"""
30
+ or --file to specify a file with courses using schema: {url}
31
+ or --export to export the schedule to pdf (.out only).""",
31
32
  )
32
33
  parser.add_argument(
33
34
  "-c", "--course", type=str, help="Specify the course to check details for."
@@ -35,15 +36,17 @@ def parse_arguments():
35
36
  parser.add_argument(
36
37
  "-f", "--file", type=str, help="Specify a file with collection of courses."
37
38
  )
39
+ parser.add_argument(
40
+ "-e", "--export", type=str, help="Export the schedule to pdf (.out only)."
41
+ )
38
42
  parser.add_argument(
39
43
  "-g", "--gray", action="store_true", help="Enable gray color mode for output."
40
44
  )
41
45
 
42
46
  args = parser.parse_args()
43
47
 
44
- # Ensure at least one of `--course` or `--file` is provided
45
- if not args.course and not args.file:
46
- print("\nError: You must specify at least one of --course or --file.\n")
48
+ # Ensure at least one argument is provided
49
+ if len(sys.argv) == 1:
47
50
  parser.print_help()
48
51
  sys.exit(1)
49
52
 
@@ -54,6 +57,9 @@ def main():
54
57
  gray = args.gray
55
58
  if args.course:
56
59
  checkDetail(args.course)
60
+ elif args.export:
61
+ system("pdfschedule " + args.export)
62
+ print(OKGREEN + "\n\n ---------------- Done!!! ---------------- \n\n" + ENDC)
57
63
  elif args.file:
58
64
  with open(args.file, "r") as f:
59
65
  collection = f.readline().strip().split("#")[0].strip()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: uw-course
3
- Version: 1.0.0
3
+ Version: 1.0.2
4
4
  Summary: A course helper tool for managing UW courses schedule
5
5
  Author-email: Jiucheng Zang <zangjiucheng@gmail.com>
6
6
  License: MIT
@@ -30,7 +30,7 @@ MongoDB DashBoard: [LINK](https://charts.mongodb.com/charts-project-0-cbzai/publ
30
30
 
31
31
  ### Example Schedule:
32
32
 
33
- ![Image text](https://raw.githubusercontent.com/zangjiucheng/UWaterlooCourseHelperEngine/Release/schedule.jpg)
33
+ ![Image text](demo.png)
34
34
 
35
35
  ---
36
36
 
@@ -82,7 +82,7 @@ AMATH 250, 5967
82
82
  uw-course -f schedule.txt
83
83
  ```
84
84
  (If you want to get the schedule with gray printables, you can add the ```-g``` flag)
85
- ```bash
85
+
86
86
  4. The program will generate a ```schedule.pdf``` file in the same folder, which is the schedule you want to see
87
87
 
88
88
  #### Any Idea or Question, welcome send me an email via: j7zang@uwaterloo.ca
File without changes
File without changes