itcpr 2.0.3__tar.gz → 2.0.6__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.
- itcpr-2.0.6/LICENSE +22 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/PKG-INFO +31 -4
- {itcpr-2.0.3 → itcpr-2.0.6}/README.md +27 -2
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/__init__.py +1 -1
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/cli.py +16 -5
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/PKG-INFO +31 -4
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/SOURCES.txt +1 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/pyproject.toml +1 -1
- {itcpr-2.0.3 → itcpr-2.0.6}/setup.py +2 -2
- {itcpr-2.0.3 → itcpr-2.0.6}/MANIFEST.in +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/api.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/auth.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/config.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/gitops.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/storage.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/sync.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr/utils.py +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/dependency_links.txt +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/entry_points.txt +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/requires.txt +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/itcpr.egg-info/top_level.txt +0 -0
- {itcpr-2.0.3 → itcpr-2.0.6}/setup.cfg +0 -0
itcpr-2.0.6/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ITCPR
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itcpr
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
|
|
5
|
-
Home-page: https://
|
|
5
|
+
Home-page: https://itcpr.org
|
|
6
6
|
Author: ITCPR
|
|
7
7
|
Author-email: ITCPR <info@itcpr.org>
|
|
8
8
|
License: MIT
|
|
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Requires-Python: >=3.10
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
19
20
|
Requires-Dist: click>=8.0.0
|
|
20
21
|
Requires-Dist: requests>=2.28.0
|
|
21
22
|
Requires-Dist: keyring>=23.0.0
|
|
@@ -26,9 +27,10 @@ Requires-Dist: black; extra == "dev"
|
|
|
26
27
|
Requires-Dist: flake8; extra == "dev"
|
|
27
28
|
Dynamic: author
|
|
28
29
|
Dynamic: home-page
|
|
30
|
+
Dynamic: license-file
|
|
29
31
|
Dynamic: requires-python
|
|
30
32
|
|
|
31
|
-
# ITCPR
|
|
33
|
+
# ITCPR CLI
|
|
32
34
|
|
|
33
35
|
A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to your local machine.
|
|
34
36
|
|
|
@@ -43,11 +45,28 @@ A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to
|
|
|
43
45
|
|
|
44
46
|
## Installation
|
|
45
47
|
|
|
48
|
+
### From PyPI (Recommended)
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install itcpr
|
|
52
|
+
# OR
|
|
53
|
+
pip3 install itcpr
|
|
54
|
+
# OR
|
|
55
|
+
python3 -m pip install itcpr
|
|
56
|
+
```
|
|
57
|
+
|
|
46
58
|
### From Source
|
|
47
59
|
|
|
60
|
+
If you want to install from source or contribute:
|
|
61
|
+
|
|
48
62
|
```bash
|
|
63
|
+
git clone <repository-url>
|
|
49
64
|
cd cloud-cli
|
|
50
65
|
pip install -e .
|
|
66
|
+
# OR
|
|
67
|
+
pip3 install -e .
|
|
68
|
+
# OR
|
|
69
|
+
python3 -m pip install -e .
|
|
51
70
|
```
|
|
52
71
|
|
|
53
72
|
### Uninstall
|
|
@@ -68,6 +87,10 @@ To completely remove all data:
|
|
|
68
87
|
```bash
|
|
69
88
|
# Uninstall the package
|
|
70
89
|
pip uninstall itcpr
|
|
90
|
+
# OR
|
|
91
|
+
pip3 uninstall itcpr
|
|
92
|
+
# OR
|
|
93
|
+
python3 -m pip uninstall itcpr
|
|
71
94
|
|
|
72
95
|
# Remove configuration and data
|
|
73
96
|
rm -rf ~/.itcpr
|
|
@@ -266,7 +289,7 @@ sudo apt-get install python3-keyring kdewallet
|
|
|
266
289
|
### Project Structure
|
|
267
290
|
|
|
268
291
|
```
|
|
269
|
-
|
|
292
|
+
cloud-cli/
|
|
270
293
|
├── itcpr/
|
|
271
294
|
│ ├── __init__.py # Package initialization
|
|
272
295
|
│ ├── cli.py # CLI commands
|
|
@@ -287,6 +310,10 @@ itcpr/
|
|
|
287
310
|
```bash
|
|
288
311
|
# Install in development mode
|
|
289
312
|
pip install -e .
|
|
313
|
+
# OR
|
|
314
|
+
pip3 install -e .
|
|
315
|
+
# OR
|
|
316
|
+
python3 -m pip install -e .
|
|
290
317
|
|
|
291
318
|
# Run CLI
|
|
292
319
|
itcpr --help
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# ITCPR
|
|
1
|
+
# ITCPR CLI
|
|
2
2
|
|
|
3
3
|
A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to your local machine.
|
|
4
4
|
|
|
@@ -13,11 +13,28 @@ A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to
|
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
|
+
### From PyPI (Recommended)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install itcpr
|
|
20
|
+
# OR
|
|
21
|
+
pip3 install itcpr
|
|
22
|
+
# OR
|
|
23
|
+
python3 -m pip install itcpr
|
|
24
|
+
```
|
|
25
|
+
|
|
16
26
|
### From Source
|
|
17
27
|
|
|
28
|
+
If you want to install from source or contribute:
|
|
29
|
+
|
|
18
30
|
```bash
|
|
31
|
+
git clone <repository-url>
|
|
19
32
|
cd cloud-cli
|
|
20
33
|
pip install -e .
|
|
34
|
+
# OR
|
|
35
|
+
pip3 install -e .
|
|
36
|
+
# OR
|
|
37
|
+
python3 -m pip install -e .
|
|
21
38
|
```
|
|
22
39
|
|
|
23
40
|
### Uninstall
|
|
@@ -38,6 +55,10 @@ To completely remove all data:
|
|
|
38
55
|
```bash
|
|
39
56
|
# Uninstall the package
|
|
40
57
|
pip uninstall itcpr
|
|
58
|
+
# OR
|
|
59
|
+
pip3 uninstall itcpr
|
|
60
|
+
# OR
|
|
61
|
+
python3 -m pip uninstall itcpr
|
|
41
62
|
|
|
42
63
|
# Remove configuration and data
|
|
43
64
|
rm -rf ~/.itcpr
|
|
@@ -236,7 +257,7 @@ sudo apt-get install python3-keyring kdewallet
|
|
|
236
257
|
### Project Structure
|
|
237
258
|
|
|
238
259
|
```
|
|
239
|
-
|
|
260
|
+
cloud-cli/
|
|
240
261
|
├── itcpr/
|
|
241
262
|
│ ├── __init__.py # Package initialization
|
|
242
263
|
│ ├── cli.py # CLI commands
|
|
@@ -257,6 +278,10 @@ itcpr/
|
|
|
257
278
|
```bash
|
|
258
279
|
# Install in development mode
|
|
259
280
|
pip install -e .
|
|
281
|
+
# OR
|
|
282
|
+
pip3 install -e .
|
|
283
|
+
# OR
|
|
284
|
+
python3 -m pip install -e .
|
|
260
285
|
|
|
261
286
|
# Run CLI
|
|
262
287
|
itcpr --help
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import click
|
|
4
4
|
from pathlib import Path
|
|
5
|
-
from .auth import Auth
|
|
6
|
-
from .api import APIClient
|
|
7
|
-
from .storage import Storage
|
|
8
|
-
from .sync import SyncManager
|
|
9
|
-
from .gitops import GitOps
|
|
10
5
|
from .utils import setup_logging, print_error, print_success, print_info, get_logger
|
|
11
6
|
|
|
12
7
|
logger = get_logger(__name__)
|
|
@@ -23,6 +18,7 @@ def cli(ctx, verbose):
|
|
|
23
18
|
@cli.command()
|
|
24
19
|
def login():
|
|
25
20
|
"""Authenticate this device with cloud.itcpr.org."""
|
|
21
|
+
from .auth import Auth
|
|
26
22
|
auth = Auth()
|
|
27
23
|
if auth.is_authenticated():
|
|
28
24
|
if not click.confirm("You are already logged in. Do you want to login again?"):
|
|
@@ -36,6 +32,7 @@ def login():
|
|
|
36
32
|
@cli.command()
|
|
37
33
|
def logout():
|
|
38
34
|
"""Logout and clear stored credentials."""
|
|
35
|
+
from .auth import Auth
|
|
39
36
|
auth = Auth()
|
|
40
37
|
if not auth.is_authenticated():
|
|
41
38
|
click.echo("Not logged in.")
|
|
@@ -47,6 +44,9 @@ def logout():
|
|
|
47
44
|
@click.pass_context
|
|
48
45
|
def status(ctx):
|
|
49
46
|
"""Show current status and assigned repositories."""
|
|
47
|
+
from .auth import Auth
|
|
48
|
+
from .api import APIClient
|
|
49
|
+
from .storage import Storage
|
|
50
50
|
auth = Auth()
|
|
51
51
|
if not auth.is_authenticated():
|
|
52
52
|
click.echo("Not logged in. Run 'itcpr login' first.")
|
|
@@ -100,6 +100,9 @@ def status(ctx):
|
|
|
100
100
|
@click.pass_context
|
|
101
101
|
def repos(ctx):
|
|
102
102
|
"""List assigned repositories and their sync status."""
|
|
103
|
+
from .auth import Auth
|
|
104
|
+
from .api import APIClient
|
|
105
|
+
from .storage import Storage
|
|
103
106
|
auth = Auth()
|
|
104
107
|
if not auth.is_authenticated():
|
|
105
108
|
click.echo("Not logged in. Run 'itcpr login' first.")
|
|
@@ -148,6 +151,10 @@ def repos(ctx):
|
|
|
148
151
|
@click.pass_context
|
|
149
152
|
def clone(ctx, repo, path):
|
|
150
153
|
"""Clone a repository from GitHub."""
|
|
154
|
+
from .auth import Auth
|
|
155
|
+
from .api import APIClient
|
|
156
|
+
from .storage import Storage
|
|
157
|
+
from .gitops import GitOps
|
|
151
158
|
auth = Auth()
|
|
152
159
|
if not auth.is_authenticated():
|
|
153
160
|
click.echo("Not logged in. Run 'itcpr login' first.")
|
|
@@ -219,6 +226,10 @@ def clone(ctx, repo, path):
|
|
|
219
226
|
@click.pass_context
|
|
220
227
|
def sync(ctx, watch, interval):
|
|
221
228
|
"""Sync repositories with remote."""
|
|
229
|
+
from .auth import Auth
|
|
230
|
+
from .api import APIClient
|
|
231
|
+
from .storage import Storage
|
|
232
|
+
from .sync import SyncManager
|
|
222
233
|
auth = Auth()
|
|
223
234
|
if not auth.is_authenticated():
|
|
224
235
|
click.echo("Not logged in. Run 'itcpr login' first.")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itcpr
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
4
4
|
Summary: CLI tool for syncing GitHub repositories from ITCPR Cloud
|
|
5
|
-
Home-page: https://
|
|
5
|
+
Home-page: https://itcpr.org
|
|
6
6
|
Author: ITCPR
|
|
7
7
|
Author-email: ITCPR <info@itcpr.org>
|
|
8
8
|
License: MIT
|
|
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
17
|
Requires-Python: >=3.10
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
19
20
|
Requires-Dist: click>=8.0.0
|
|
20
21
|
Requires-Dist: requests>=2.28.0
|
|
21
22
|
Requires-Dist: keyring>=23.0.0
|
|
@@ -26,9 +27,10 @@ Requires-Dist: black; extra == "dev"
|
|
|
26
27
|
Requires-Dist: flake8; extra == "dev"
|
|
27
28
|
Dynamic: author
|
|
28
29
|
Dynamic: home-page
|
|
30
|
+
Dynamic: license-file
|
|
29
31
|
Dynamic: requires-python
|
|
30
32
|
|
|
31
|
-
# ITCPR
|
|
33
|
+
# ITCPR CLI
|
|
32
34
|
|
|
33
35
|
A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to your local machine.
|
|
34
36
|
|
|
@@ -43,11 +45,28 @@ A production-ready CLI tool for syncing GitHub repositories from ITCPR Cloud to
|
|
|
43
45
|
|
|
44
46
|
## Installation
|
|
45
47
|
|
|
48
|
+
### From PyPI (Recommended)
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install itcpr
|
|
52
|
+
# OR
|
|
53
|
+
pip3 install itcpr
|
|
54
|
+
# OR
|
|
55
|
+
python3 -m pip install itcpr
|
|
56
|
+
```
|
|
57
|
+
|
|
46
58
|
### From Source
|
|
47
59
|
|
|
60
|
+
If you want to install from source or contribute:
|
|
61
|
+
|
|
48
62
|
```bash
|
|
63
|
+
git clone <repository-url>
|
|
49
64
|
cd cloud-cli
|
|
50
65
|
pip install -e .
|
|
66
|
+
# OR
|
|
67
|
+
pip3 install -e .
|
|
68
|
+
# OR
|
|
69
|
+
python3 -m pip install -e .
|
|
51
70
|
```
|
|
52
71
|
|
|
53
72
|
### Uninstall
|
|
@@ -68,6 +87,10 @@ To completely remove all data:
|
|
|
68
87
|
```bash
|
|
69
88
|
# Uninstall the package
|
|
70
89
|
pip uninstall itcpr
|
|
90
|
+
# OR
|
|
91
|
+
pip3 uninstall itcpr
|
|
92
|
+
# OR
|
|
93
|
+
python3 -m pip uninstall itcpr
|
|
71
94
|
|
|
72
95
|
# Remove configuration and data
|
|
73
96
|
rm -rf ~/.itcpr
|
|
@@ -266,7 +289,7 @@ sudo apt-get install python3-keyring kdewallet
|
|
|
266
289
|
### Project Structure
|
|
267
290
|
|
|
268
291
|
```
|
|
269
|
-
|
|
292
|
+
cloud-cli/
|
|
270
293
|
├── itcpr/
|
|
271
294
|
│ ├── __init__.py # Package initialization
|
|
272
295
|
│ ├── cli.py # CLI commands
|
|
@@ -287,6 +310,10 @@ itcpr/
|
|
|
287
310
|
```bash
|
|
288
311
|
# Install in development mode
|
|
289
312
|
pip install -e .
|
|
313
|
+
# OR
|
|
314
|
+
pip3 install -e .
|
|
315
|
+
# OR
|
|
316
|
+
python3 -m pip install -e .
|
|
290
317
|
|
|
291
318
|
# Run CLI
|
|
292
319
|
itcpr --help
|
|
@@ -9,13 +9,13 @@ long_description = readme_file.read_text() if readme_file.exists() else ""
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="itcpr",
|
|
12
|
-
version="2.0.
|
|
12
|
+
version="2.0.6",
|
|
13
13
|
description="CLI tool for syncing GitHub repositories from ITCPR Cloud",
|
|
14
14
|
long_description=long_description,
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
16
16
|
author="ITCPR",
|
|
17
17
|
author_email="info@itcpr.org",
|
|
18
|
-
url="https://
|
|
18
|
+
url="https://itcpr.org",
|
|
19
19
|
packages=find_packages(),
|
|
20
20
|
python_requires=">=3.10",
|
|
21
21
|
install_requires=[
|
|
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
|