papi-projects 0.2.1__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: papi-projects
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: PAPI is an API for managing projects
5
5
  License: MIT
6
6
  Author: sandyjmacdonald
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Requires-Dist: httpx (>=0.27.2,<0.28.0)
14
14
  Requires-Dist: pendulum (>=3.0.0,<4.0.0)
15
+ Requires-Dist: pyperclip (>=1.9.0,<2.0.0)
15
16
  Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
16
17
  Requires-Dist: tinydb (>=4.8.0,<5.0.0)
17
18
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "papi-projects"
3
- version = "0.2.1"
3
+ version = "0.2.3"
4
4
  description = "PAPI is an API for managing projects"
5
5
  authors = ["sandyjmacdonald <sandyjmacdonald@gmail.com>"]
6
6
  license = "MIT"
@@ -17,6 +17,7 @@ pendulum = "^3.0.0"
17
17
  httpx = "^0.27.2"
18
18
  tinydb = "^4.8.0"
19
19
  python-dotenv = "^1.0.0"
20
+ pyperclip = "^1.9.0"
20
21
 
21
22
  [tool.poetry.scripts]
22
23
  create-project = "scripts.create_project:main"
@@ -1,4 +1,5 @@
1
1
  import argparse
2
+ import pyperclip
2
3
  from papi.wrappers import NotionWrapper
3
4
  from papi import config, setup_logger
4
5
  from papi.user import User
@@ -22,7 +23,7 @@ def main():
22
23
  "-p", "--project_id", type=str, help="full project ID, e.g. P2024-JAS-ABCD, if already generated", required=False
23
24
  )
24
25
  parser.add_argument(
25
- '--enable-logging', action='store_true', help='enable logging output for the papi librar.'
26
+ '--enable-logging', action='store_true', help='enable logging output for the papi library.'
26
27
  )
27
28
  parser.add_argument(
28
29
  '--log-level', type=str, choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'], default='INFO', help='set the logging level (default: INFO)'
@@ -77,6 +78,11 @@ def main():
77
78
  notion_proj_id = notion.create_project(project, user, notion_projects_db, user_page_id=user_page_id)
78
79
  else:
79
80
  notion_proj_id = notion.create_project(project, user, notion_projects_db)
81
+
82
+ pyperclip.copy(project.id)
83
+
84
+ print()
85
+ print(f"Project created with ID: {project.id} (copied to clipboard)")
80
86
 
81
87
  if __name__ == "__main__":
82
88
  main()
@@ -1,5 +1,6 @@
1
1
  import sys
2
2
  import argparse
3
+ import pyperclip
3
4
  from papi.wrappers import NotionWrapper, TogglTrackWrapper
4
5
  from papi import config, setup_logger
5
6
  from papi.user import User
@@ -166,6 +167,11 @@ def main():
166
167
  notion_proj_id = notion.create_project(project, user, notion_projects_db, user_page_id=user_page_id)
167
168
  else:
168
169
  notion_proj_id = notion.create_project(project, user, notion_projects_db)
170
+
171
+ pyperclip.copy(project.id)
172
+
173
+ print()
174
+ print(f"Project created with ID: {project.id} (copied to clipboard)")
169
175
 
170
176
  if __name__ == "__main__":
171
177
  main()
@@ -1,4 +1,5 @@
1
1
  import argparse
2
+ import pyperclip
2
3
  from papi.wrappers import TogglTrackWrapper
3
4
  from papi import config, setup_logger
4
5
  from papi.project import Project
@@ -74,5 +75,10 @@ def main():
74
75
  # otherwise it will just be the project ID
75
76
  toggl_proj_id = toggl.create_project(project, toggl.default_workspace_id)
76
77
 
78
+ pyperclip.copy(project.id)
79
+
80
+ print()
81
+ print(f"Project created with ID: {project.id} (copied to clipboard)")
82
+
77
83
  if __name__ == "__main__":
78
84
  main()
File without changes