papi-projects 0.2.1__tar.gz → 0.2.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.
- {papi_projects-0.2.1 → papi_projects-0.2.2}/PKG-INFO +2 -1
- {papi_projects-0.2.1 → papi_projects-0.2.2}/pyproject.toml +2 -1
- {papi_projects-0.2.1 → papi_projects-0.2.2}/scripts/create_notion_project.py +6 -1
- {papi_projects-0.2.1 → papi_projects-0.2.2}/scripts/create_project.py +7 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/scripts/create_toggl_project.py +5 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/README.md +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/__init__.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/mocks.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/project.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/tests/__init__.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/tests/test_project.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/tests/test_user.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/tests/test_userdb.json +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/tests/test_wrappers.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/user.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/papi/wrappers.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/scripts/__init__.py +0 -0
- {papi_projects-0.2.1 → papi_projects-0.2.2}/scripts/collate_toggl_hours.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: papi-projects
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
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.
|
|
3
|
+
version = "0.2.2"
|
|
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
|
|
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,10 @@ 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
|
+
logger.info(f"Project created with ID: {project.id} (copied to clipboard)")
|
|
80
85
|
|
|
81
86
|
if __name__ == "__main__":
|
|
82
87
|
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
|
|
@@ -147,6 +148,8 @@ def main():
|
|
|
147
148
|
# Create project on Toggl Track
|
|
148
149
|
toggl_proj_id = toggl.create_project(project, toggl.default_workspace_id)
|
|
149
150
|
|
|
151
|
+
pyperclip.copy(project.id)
|
|
152
|
+
|
|
150
153
|
if enable_notion:
|
|
151
154
|
# Set up Notion API wrapper
|
|
152
155
|
#
|
|
@@ -166,6 +169,10 @@ def main():
|
|
|
166
169
|
notion_proj_id = notion.create_project(project, user, notion_projects_db, user_page_id=user_page_id)
|
|
167
170
|
else:
|
|
168
171
|
notion_proj_id = notion.create_project(project, user, notion_projects_db)
|
|
172
|
+
|
|
173
|
+
pyperclip.copy(project.id)
|
|
174
|
+
|
|
175
|
+
logger.info(f"Project created with ID: {project.id} (copied to clipboard)")
|
|
169
176
|
|
|
170
177
|
if __name__ == "__main__":
|
|
171
178
|
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,9 @@ 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
|
+
logger.info(f"Project created with ID: {project.id} (copied to clipboard)")
|
|
81
|
+
|
|
77
82
|
if __name__ == "__main__":
|
|
78
83
|
main()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|