pyforker 2.0.0__tar.gz → 2.2.0__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.4
2
2
  Name: pyforker
3
- Version: 2.0.0
3
+ Version: 2.2.0
4
4
  Summary: Zero-dependency toolkit for selectively extracting sub-modules, inspecting ASTs, and operating remote library mirror servers.
5
5
  Author: Sundaram Gupta
6
6
  License: MIT
@@ -25,12 +25,11 @@ Dynamic: requires-python
25
25
  # pyforker
26
26
 
27
27
  <p align="center">
28
- <img src="logo.png" alt="pyforker logo" width="600"/>
28
+ <img src="https://github.com/powerofaisinstudy-debug/pyforker/blob/main/logo2.png" alt="pyforker logo" width="600"/>
29
29
  </p>
30
30
 
31
31
  **Production-Grade Single-File Python Library Extractor & Server Engine**
32
32
 
33
-
34
33
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/)
35
34
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
36
35
  [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](#)
@@ -38,8 +37,6 @@ Dynamic: requires-python
38
37
 
39
38
  `pyforker` is a lightweight, zero-dependency engine designed to selectively extract sub-modules from massive Python codebases or remote Git repositories. It automatically rewrites AST import graphs, resolves vendor dependencies, tracks upstream sync ledgers, and runs multi-threaded HTTP server daemons to mirror code snippets across networks.
40
39
 
41
-
42
-
43
40
  ---
44
41
 
45
42
  ## Key Features
@@ -62,14 +59,14 @@ Dynamic: requires-python
62
59
  | (pyforker take / deps / sync / serve) |
63
60
  +-----------------------+-------------------------+
64
61
  |
65
- +-----------------+-----------------+
66
- | |
67
- +-----------v-----------+ +-----------v-----------+
68
- | Git Engine | | Multi-Threaded |
69
- | (Local Cache/Clones) | | HTTP Daemon Server |
70
- +-----------+-----------+ +-----------+-----------+
71
- | |
72
- +-----------------+-----------------+
62
+ +---------------+---------------+
63
+ | |
64
+ +-------------v-----------+ +-------------v-----------+
65
+ | Git Engine | | Multi-Threaded |
66
+ | (Local Cache/Clones) | | HTTP Daemon Server |
67
+ +-------------+-----------+ +-------------+-----------+
68
+ | |
69
+ +---------------+---------------+
73
70
  |
74
71
  +-------------v-------------+
75
72
  | AST Rewriter & Analyzer |
@@ -77,32 +74,71 @@ Dynamic: requires-python
77
74
  +-------------+-------------+
78
75
  |
79
76
  +-------------v-------------+
80
- | Storage & File Locks |
77
+ | Storage & File Locks |
81
78
  | (pyforker.json Manifest) |
82
79
  +---------------------------+
83
- InstallationFrom Source (Editable Mode)Clone your repository and install the binary link locally:Bashgit clone [https://github.com/your-username/pyforker.git](https://github.com/your-username/pyforker.git)
80
+ Installation
81
+ From Source (Editable Mode)
82
+ Clone your repository and install the binary link locally:
83
+
84
+ Bash
85
+ git clone [https://github.com/powerofaisinstudy-debug/pyforker.git](https://github.com/powerofaisinstudy-debug/pyforker.git)
84
86
  cd pyforker
85
87
  pip install -e .
86
- Direct Pip InstallationBashpip install .
87
- CLI Reference & Usage1. Extracting a Sub-Module (take)Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:Bashpyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
88
+ Direct Pip Installation
89
+ Bash
90
+ pip install .
91
+ CLI Reference & Usage
92
+ 1. Extracting a Sub-Module (take)
93
+ Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:
94
+
95
+ Bash
96
+ pyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
88
97
  --sub-path tools/testing/kunit \
89
98
  --out ./vendor/kunit \
90
99
  --rewrite-from kunit \
91
100
  --rewrite-to my_app.vendor.kunit
92
- 2. Discovering Third-Party Dependencies (deps)Scan an extracted module to discover external PyPI packages required to run it:Bashpyforker deps ./vendor/kunit
93
- Output Example:Plaintext--- Discovered Third-Party Dependencies ---
101
+ 2. Discovering Third-Party Dependencies (deps)
102
+ Scan an extracted module to discover external PyPI packages required to run it:
103
+
104
+ Bash
105
+ pyforker deps ./vendor/kunit
106
+ Output Example:
107
+
108
+ Plaintext
109
+ --- Discovered Third-Party Dependencies ---
94
110
  - requests
95
111
  - typing_extensions
96
112
  -------------------------------------------
97
- 3. Syncing Extracted Code Upstream (sync)Check local pyforker.json manifests and update extracted modules against upstream Git repositories:Bashpyforker sync ./vendor/kunit
98
- 4. Running the Remote Mirror Server (serve)Start a multi-threaded HTTP server on a remote server or local machine:Bashpyforker serve --host 0.0.0.0 --port 8080
99
- 5. Managing Remote Server Aliases (server-add / server-list)Save and query remote server endpoints inside ~/.pyforker_config.json:Bash# Add server alias
113
+ 3. Syncing Extracted Code Upstream (sync)
114
+ Check local pyforker.json manifests and update extracted modules against upstream Git repositories:
115
+
116
+ Bash
117
+ pyforker sync ./vendor/kunit
118
+ 4. Running the Remote Mirror Server (serve)
119
+ Start a multi-threaded HTTP server on a remote server or local machine:
120
+
121
+ Bash
122
+ pyforker serve --host 0.0.0.0 --port 8080
123
+ 5. Managing Remote Server Aliases (server-add / server-list)
124
+ Save and query remote server endpoints inside ~/.pyforker_config.json:
125
+
126
+ Bash
127
+ # Add server alias
100
128
  pyforker server-add prod-mirror [http://192.168.1.100:8080](http://192.168.1.100:8080)
101
129
 
102
130
  # List saved servers
103
131
  pyforker server-list
104
- 6. Executing System Diagnostics (self-test)Validate local environment, AST transformation hooks, file locks, and configuration storage:Bashpyforker self-test
105
- Manifest Specification (pyforker.json)When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:JSON{
132
+ 6. Executing System Diagnostics (self-test)
133
+ Validate local environment, AST transformation hooks, file locks, and configuration storage:
134
+
135
+ Bash
136
+ pyforker self-test
137
+ Manifest Specification (pyforker.json)
138
+ When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:
139
+
140
+ JSON
141
+ {
106
142
  "./vendor/kunit": {
107
143
  "source_repo": "[https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git)",
108
144
  "sub_path": "tools/testing/kunit",
@@ -116,21 +152,3 @@ Manifest Specification (pyforker.json)When pyforker take completes an extraction
116
152
  ]
117
153
  }
118
154
  }
119
- Programmatic Python APIYou can import pyforker as an internal module inside your Python pipelines:Pythonfrom pyforker import ASTAnalyzer, GitEngine, FileLock
120
-
121
- # Clone or update a repository into local cache
122
- repo_path = GitEngine.clone_or_update(
123
- "[https://github.com/example/repo.git](https://github.com/example/repo.git)",
124
- "~/.pyforker_cache"
125
- )
126
-
127
- # Rewrite AST imports programmatically
128
- detected_deps = ASTAnalyzer.process_file(
129
- source_file="path/to/source.py",
130
- target_file="path/to/output.py",
131
- old_pkg="original_pkg",
132
- new_pkg="my_app.vendor"
133
- )
134
-
135
- print(f"Discovered dependencies: {detected_deps}")
136
- HTTP REST API SpecificationWhen running pyforker serve, the server exposes the following endpoints:EndpointMethodParameters / BodyDescription/healthGETNoneReturns engine status and uptime./manifestGETNoneReturns history ledger stored in host configuration./takePOST{"repo_url": "...", "sub_path": "..."}Triggers background clone and path verification.Running Unit TestsRun the integrated self-test suite directly:Bashpython3 pyforker.py self-test
@@ -1,12 +1,11 @@
1
1
  # pyforker
2
2
 
3
3
  <p align="center">
4
- <img src="logo.png" alt="pyforker logo" width="600"/>
4
+ <img src="https://github.com/powerofaisinstudy-debug/pyforker/blob/main/logo2.png" alt="pyforker logo" width="600"/>
5
5
  </p>
6
6
 
7
7
  **Production-Grade Single-File Python Library Extractor & Server Engine**
8
8
 
9
-
10
9
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/)
11
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
12
11
  [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](#)
@@ -14,8 +13,6 @@
14
13
 
15
14
  `pyforker` is a lightweight, zero-dependency engine designed to selectively extract sub-modules from massive Python codebases or remote Git repositories. It automatically rewrites AST import graphs, resolves vendor dependencies, tracks upstream sync ledgers, and runs multi-threaded HTTP server daemons to mirror code snippets across networks.
16
15
 
17
-
18
-
19
16
  ---
20
17
 
21
18
  ## Key Features
@@ -38,14 +35,14 @@
38
35
  | (pyforker take / deps / sync / serve) |
39
36
  +-----------------------+-------------------------+
40
37
  |
41
- +-----------------+-----------------+
42
- | |
43
- +-----------v-----------+ +-----------v-----------+
44
- | Git Engine | | Multi-Threaded |
45
- | (Local Cache/Clones) | | HTTP Daemon Server |
46
- +-----------+-----------+ +-----------+-----------+
47
- | |
48
- +-----------------+-----------------+
38
+ +---------------+---------------+
39
+ | |
40
+ +-------------v-----------+ +-------------v-----------+
41
+ | Git Engine | | Multi-Threaded |
42
+ | (Local Cache/Clones) | | HTTP Daemon Server |
43
+ +-------------+-----------+ +-------------+-----------+
44
+ | |
45
+ +---------------+---------------+
49
46
  |
50
47
  +-------------v-------------+
51
48
  | AST Rewriter & Analyzer |
@@ -53,32 +50,71 @@
53
50
  +-------------+-------------+
54
51
  |
55
52
  +-------------v-------------+
56
- | Storage & File Locks |
53
+ | Storage & File Locks |
57
54
  | (pyforker.json Manifest) |
58
55
  +---------------------------+
59
- InstallationFrom Source (Editable Mode)Clone your repository and install the binary link locally:Bashgit clone [https://github.com/your-username/pyforker.git](https://github.com/your-username/pyforker.git)
56
+ Installation
57
+ From Source (Editable Mode)
58
+ Clone your repository and install the binary link locally:
59
+
60
+ Bash
61
+ git clone [https://github.com/powerofaisinstudy-debug/pyforker.git](https://github.com/powerofaisinstudy-debug/pyforker.git)
60
62
  cd pyforker
61
63
  pip install -e .
62
- Direct Pip InstallationBashpip install .
63
- CLI Reference & Usage1. Extracting a Sub-Module (take)Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:Bashpyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
64
+ Direct Pip Installation
65
+ Bash
66
+ pip install .
67
+ CLI Reference & Usage
68
+ 1. Extracting a Sub-Module (take)
69
+ Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:
70
+
71
+ Bash
72
+ pyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
64
73
  --sub-path tools/testing/kunit \
65
74
  --out ./vendor/kunit \
66
75
  --rewrite-from kunit \
67
76
  --rewrite-to my_app.vendor.kunit
68
- 2. Discovering Third-Party Dependencies (deps)Scan an extracted module to discover external PyPI packages required to run it:Bashpyforker deps ./vendor/kunit
69
- Output Example:Plaintext--- Discovered Third-Party Dependencies ---
77
+ 2. Discovering Third-Party Dependencies (deps)
78
+ Scan an extracted module to discover external PyPI packages required to run it:
79
+
80
+ Bash
81
+ pyforker deps ./vendor/kunit
82
+ Output Example:
83
+
84
+ Plaintext
85
+ --- Discovered Third-Party Dependencies ---
70
86
  - requests
71
87
  - typing_extensions
72
88
  -------------------------------------------
73
- 3. Syncing Extracted Code Upstream (sync)Check local pyforker.json manifests and update extracted modules against upstream Git repositories:Bashpyforker sync ./vendor/kunit
74
- 4. Running the Remote Mirror Server (serve)Start a multi-threaded HTTP server on a remote server or local machine:Bashpyforker serve --host 0.0.0.0 --port 8080
75
- 5. Managing Remote Server Aliases (server-add / server-list)Save and query remote server endpoints inside ~/.pyforker_config.json:Bash# Add server alias
89
+ 3. Syncing Extracted Code Upstream (sync)
90
+ Check local pyforker.json manifests and update extracted modules against upstream Git repositories:
91
+
92
+ Bash
93
+ pyforker sync ./vendor/kunit
94
+ 4. Running the Remote Mirror Server (serve)
95
+ Start a multi-threaded HTTP server on a remote server or local machine:
96
+
97
+ Bash
98
+ pyforker serve --host 0.0.0.0 --port 8080
99
+ 5. Managing Remote Server Aliases (server-add / server-list)
100
+ Save and query remote server endpoints inside ~/.pyforker_config.json:
101
+
102
+ Bash
103
+ # Add server alias
76
104
  pyforker server-add prod-mirror [http://192.168.1.100:8080](http://192.168.1.100:8080)
77
105
 
78
106
  # List saved servers
79
107
  pyforker server-list
80
- 6. Executing System Diagnostics (self-test)Validate local environment, AST transformation hooks, file locks, and configuration storage:Bashpyforker self-test
81
- Manifest Specification (pyforker.json)When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:JSON{
108
+ 6. Executing System Diagnostics (self-test)
109
+ Validate local environment, AST transformation hooks, file locks, and configuration storage:
110
+
111
+ Bash
112
+ pyforker self-test
113
+ Manifest Specification (pyforker.json)
114
+ When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:
115
+
116
+ JSON
117
+ {
82
118
  "./vendor/kunit": {
83
119
  "source_repo": "[https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git)",
84
120
  "sub_path": "tools/testing/kunit",
@@ -91,22 +127,4 @@ Manifest Specification (pyforker.json)When pyforker take completes an extraction
91
127
  "requests"
92
128
  ]
93
129
  }
94
- }
95
- Programmatic Python APIYou can import pyforker as an internal module inside your Python pipelines:Pythonfrom pyforker import ASTAnalyzer, GitEngine, FileLock
96
-
97
- # Clone or update a repository into local cache
98
- repo_path = GitEngine.clone_or_update(
99
- "[https://github.com/example/repo.git](https://github.com/example/repo.git)",
100
- "~/.pyforker_cache"
101
- )
102
-
103
- # Rewrite AST imports programmatically
104
- detected_deps = ASTAnalyzer.process_file(
105
- source_file="path/to/source.py",
106
- target_file="path/to/output.py",
107
- old_pkg="original_pkg",
108
- new_pkg="my_app.vendor"
109
- )
110
-
111
- print(f"Discovered dependencies: {detected_deps}")
112
- HTTP REST API SpecificationWhen running pyforker serve, the server exposes the following endpoints:EndpointMethodParameters / BodyDescription/healthGETNoneReturns engine status and uptime./manifestGETNoneReturns history ledger stored in host configuration./takePOST{"repo_url": "...", "sub_path": "..."}Triggers background clone and path verification.Running Unit TestsRun the integrated self-test suite directly:Bashpython3 pyforker.py self-test
130
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyforker
3
- Version: 2.0.0
3
+ Version: 2.2.0
4
4
  Summary: Zero-dependency toolkit for selectively extracting sub-modules, inspecting ASTs, and operating remote library mirror servers.
5
5
  Author: Sundaram Gupta
6
6
  License: MIT
@@ -25,12 +25,11 @@ Dynamic: requires-python
25
25
  # pyforker
26
26
 
27
27
  <p align="center">
28
- <img src="logo.png" alt="pyforker logo" width="600"/>
28
+ <img src="https://github.com/powerofaisinstudy-debug/pyforker/blob/main/logo2.png" alt="pyforker logo" width="600"/>
29
29
  </p>
30
30
 
31
31
  **Production-Grade Single-File Python Library Extractor & Server Engine**
32
32
 
33
-
34
33
  [![Python Version](https://img.shields.io/badge/python-3.8%2B-blue.svg)](https://www.python.org/)
35
34
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
36
35
  [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](#)
@@ -38,8 +37,6 @@ Dynamic: requires-python
38
37
 
39
38
  `pyforker` is a lightweight, zero-dependency engine designed to selectively extract sub-modules from massive Python codebases or remote Git repositories. It automatically rewrites AST import graphs, resolves vendor dependencies, tracks upstream sync ledgers, and runs multi-threaded HTTP server daemons to mirror code snippets across networks.
40
39
 
41
-
42
-
43
40
  ---
44
41
 
45
42
  ## Key Features
@@ -62,14 +59,14 @@ Dynamic: requires-python
62
59
  | (pyforker take / deps / sync / serve) |
63
60
  +-----------------------+-------------------------+
64
61
  |
65
- +-----------------+-----------------+
66
- | |
67
- +-----------v-----------+ +-----------v-----------+
68
- | Git Engine | | Multi-Threaded |
69
- | (Local Cache/Clones) | | HTTP Daemon Server |
70
- +-----------+-----------+ +-----------+-----------+
71
- | |
72
- +-----------------+-----------------+
62
+ +---------------+---------------+
63
+ | |
64
+ +-------------v-----------+ +-------------v-----------+
65
+ | Git Engine | | Multi-Threaded |
66
+ | (Local Cache/Clones) | | HTTP Daemon Server |
67
+ +-------------+-----------+ +-------------+-----------+
68
+ | |
69
+ +---------------+---------------+
73
70
  |
74
71
  +-------------v-------------+
75
72
  | AST Rewriter & Analyzer |
@@ -77,32 +74,71 @@ Dynamic: requires-python
77
74
  +-------------+-------------+
78
75
  |
79
76
  +-------------v-------------+
80
- | Storage & File Locks |
77
+ | Storage & File Locks |
81
78
  | (pyforker.json Manifest) |
82
79
  +---------------------------+
83
- InstallationFrom Source (Editable Mode)Clone your repository and install the binary link locally:Bashgit clone [https://github.com/your-username/pyforker.git](https://github.com/your-username/pyforker.git)
80
+ Installation
81
+ From Source (Editable Mode)
82
+ Clone your repository and install the binary link locally:
83
+
84
+ Bash
85
+ git clone [https://github.com/powerofaisinstudy-debug/pyforker.git](https://github.com/powerofaisinstudy-debug/pyforker.git)
84
86
  cd pyforker
85
87
  pip install -e .
86
- Direct Pip InstallationBashpip install .
87
- CLI Reference & Usage1. Extracting a Sub-Module (take)Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:Bashpyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
88
+ Direct Pip Installation
89
+ Bash
90
+ pip install .
91
+ CLI Reference & Usage
92
+ 1. Extracting a Sub-Module (take)
93
+ Pull a single sub-folder out of a target repository, rewrite its namespace imports, and store it locally:
94
+
95
+ Bash
96
+ pyforker take [https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git) \
88
97
  --sub-path tools/testing/kunit \
89
98
  --out ./vendor/kunit \
90
99
  --rewrite-from kunit \
91
100
  --rewrite-to my_app.vendor.kunit
92
- 2. Discovering Third-Party Dependencies (deps)Scan an extracted module to discover external PyPI packages required to run it:Bashpyforker deps ./vendor/kunit
93
- Output Example:Plaintext--- Discovered Third-Party Dependencies ---
101
+ 2. Discovering Third-Party Dependencies (deps)
102
+ Scan an extracted module to discover external PyPI packages required to run it:
103
+
104
+ Bash
105
+ pyforker deps ./vendor/kunit
106
+ Output Example:
107
+
108
+ Plaintext
109
+ --- Discovered Third-Party Dependencies ---
94
110
  - requests
95
111
  - typing_extensions
96
112
  -------------------------------------------
97
- 3. Syncing Extracted Code Upstream (sync)Check local pyforker.json manifests and update extracted modules against upstream Git repositories:Bashpyforker sync ./vendor/kunit
98
- 4. Running the Remote Mirror Server (serve)Start a multi-threaded HTTP server on a remote server or local machine:Bashpyforker serve --host 0.0.0.0 --port 8080
99
- 5. Managing Remote Server Aliases (server-add / server-list)Save and query remote server endpoints inside ~/.pyforker_config.json:Bash# Add server alias
113
+ 3. Syncing Extracted Code Upstream (sync)
114
+ Check local pyforker.json manifests and update extracted modules against upstream Git repositories:
115
+
116
+ Bash
117
+ pyforker sync ./vendor/kunit
118
+ 4. Running the Remote Mirror Server (serve)
119
+ Start a multi-threaded HTTP server on a remote server or local machine:
120
+
121
+ Bash
122
+ pyforker serve --host 0.0.0.0 --port 8080
123
+ 5. Managing Remote Server Aliases (server-add / server-list)
124
+ Save and query remote server endpoints inside ~/.pyforker_config.json:
125
+
126
+ Bash
127
+ # Add server alias
100
128
  pyforker server-add prod-mirror [http://192.168.1.100:8080](http://192.168.1.100:8080)
101
129
 
102
130
  # List saved servers
103
131
  pyforker server-list
104
- 6. Executing System Diagnostics (self-test)Validate local environment, AST transformation hooks, file locks, and configuration storage:Bashpyforker self-test
105
- Manifest Specification (pyforker.json)When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:JSON{
132
+ 6. Executing System Diagnostics (self-test)
133
+ Validate local environment, AST transformation hooks, file locks, and configuration storage:
134
+
135
+ Bash
136
+ pyforker self-test
137
+ Manifest Specification (pyforker.json)
138
+ When pyforker take completes an extraction, it generates or updates a local pyforker.json ledger:
139
+
140
+ JSON
141
+ {
106
142
  "./vendor/kunit": {
107
143
  "source_repo": "[https://github.com/torvalds/linux.git](https://github.com/torvalds/linux.git)",
108
144
  "sub_path": "tools/testing/kunit",
@@ -116,21 +152,3 @@ Manifest Specification (pyforker.json)When pyforker take completes an extraction
116
152
  ]
117
153
  }
118
154
  }
119
- Programmatic Python APIYou can import pyforker as an internal module inside your Python pipelines:Pythonfrom pyforker import ASTAnalyzer, GitEngine, FileLock
120
-
121
- # Clone or update a repository into local cache
122
- repo_path = GitEngine.clone_or_update(
123
- "[https://github.com/example/repo.git](https://github.com/example/repo.git)",
124
- "~/.pyforker_cache"
125
- )
126
-
127
- # Rewrite AST imports programmatically
128
- detected_deps = ASTAnalyzer.process_file(
129
- source_file="path/to/source.py",
130
- target_file="path/to/output.py",
131
- old_pkg="original_pkg",
132
- new_pkg="my_app.vendor"
133
- )
134
-
135
- print(f"Discovered dependencies: {detected_deps}")
136
- HTTP REST API SpecificationWhen running pyforker serve, the server exposes the following endpoints:EndpointMethodParameters / BodyDescription/healthGETNoneReturns engine status and uptime./manifestGETNoneReturns history ledger stored in host configuration./takePOST{"repo_url": "...", "sub_path": "..."}Triggers background clone and path verification.Running Unit TestsRun the integrated self-test suite directly:Bashpython3 pyforker.py self-test
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pyforker"
7
- version = "2.0.0"
7
+ version = "2.2.0"
8
8
  description = "Zero-dependency toolkit for selectively extracting sub-modules, inspecting ASTs, and operating remote library mirror servers."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -10,7 +10,7 @@ if os.path.exists("README.md"):
10
10
 
11
11
  setup(
12
12
  name="pyforker",
13
- version="2.0.0",
13
+ version="2.2.0",
14
14
  description="Zero-dependency toolkit for selectively extracting sub-modules and running mirror servers.",
15
15
  long_description=long_description,
16
16
  long_description_content_type="text/markdown",
File without changes
File without changes
File without changes