importroute 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,4 @@
1
+ """Declared directory lookup, never a target-package import."""
2
+ from .core import trace_imports
3
+
4
+ __all__ = ["trace_imports"]
@@ -0,0 +1,86 @@
1
+ """Command-line display and strict process exit handling."""
2
+ import argparse
3
+ import inspect
4
+ import json
5
+ import os
6
+ import sys
7
+ from functools import partial
8
+
9
+ from .core import trace_imports
10
+
11
+ CODES = {'LOCATED': 0, 'FAILED': 1, 'INVALID': 2, 'INCOMPLETE': 3}
12
+
13
+
14
+ def _human(report):
15
+ if report['status'] == 'INVALID':
16
+ return 'INVALID: ' + repr(report['error']) + '\n'
17
+ lines = ['Filesystem import routes, not runtime import verification.']
18
+ for item in report['modules']:
19
+ lines.append(item['module'] + ': ' + item['status'])
20
+ if 'reason' in item:
21
+ lines.append(' ' + repr(item['reason']))
22
+ for step in item['steps']:
23
+ lines.append(' ' + step['module'])
24
+ for candidate in step['candidates']:
25
+ location = (repr(candidate['origin']) if candidate['origin'] else
26
+ ', '.join(repr(path) for path in candidate['locations']))
27
+ lines.append(' ' + candidate['disposition'] + ': ' + candidate['kind'] + ' ' + location)
28
+ for error in step['errors']:
29
+ lines.append(' unchecked root ' + repr(error['root']) + ': ' + repr(error['detail']))
30
+ if step['selection'] is None:
31
+ lines.append(' no candidate found in checked directories')
32
+ for outside in item.get('expectation', {}).get('outside', []):
33
+ lines.append(' outside expected root: ' + repr(outside['physical_path']))
34
+ lines.append(report['scope'])
35
+ return '\n'.join(lines) + '\n'
36
+
37
+
38
+ def _run(argv=None):
39
+ options = {}
40
+ if 'color' in inspect.signature(argparse.ArgumentParser).parameters:
41
+ options['color'] = False
42
+ if 'color' in inspect.signature(argparse.HelpFormatter).parameters:
43
+ options['formatter_class'] = partial(argparse.HelpFormatter, color=False)
44
+ parser = argparse.ArgumentParser(
45
+ description='Explain explicit Python filesystem routes without importing target packages.',
46
+ **options)
47
+ parser.add_argument('modules', nargs='+', help='absolute dotted module identifiers, at most 128')
48
+ parser.add_argument('--path', action='append', required=True,
49
+ help='ordered search directory, repeat for each root; at most 64')
50
+ parser.add_argument('--expect-under', help='require every selected component under this directory')
51
+ parser.add_argument('--json', action='store_true', help='emit the full versioned JSON report')
52
+ args = parser.parse_args(argv)
53
+ try:
54
+ report = trace_imports(args.modules, args.path, expected_root=args.expect_under)
55
+ except (OSError, ValueError, TypeError) as exc:
56
+ report = {'format': 'importroute/v1', 'status': 'INVALID', 'error': str(exc)}
57
+ payload = (json.dumps(report, ensure_ascii=True, allow_nan=False, sort_keys=True) + '\n'
58
+ if args.json else _human(report))
59
+ try:
60
+ if sys.stdout.write(payload) != len(payload):
61
+ return 2, True
62
+ sys.stdout.flush()
63
+ except (OSError, ValueError, AttributeError):
64
+ return 2, True
65
+ return CODES[report['status']], False
66
+
67
+
68
+ def main(argv=None):
69
+ """Return the code without replacing or closing caller-owned stdout."""
70
+ return _run(argv)[0]
71
+
72
+
73
+ def entrypoint():
74
+ code, failed = _run()
75
+ if failed:
76
+ try:
77
+ descriptor = sys.stdout.fileno()
78
+ with open(os.devnull, 'w') as sink:
79
+ os.dup2(sink.fileno(), descriptor)
80
+ except (OSError, ValueError, AttributeError):
81
+ sys.stdout = open(os.devnull, 'w')
82
+ return code
83
+
84
+
85
+ if __name__ == '__main__':
86
+ sys.exit(entrypoint())
importroute/core.py ADDED
@@ -0,0 +1,230 @@
1
+ """Bounded directory lookup. No target module or path hook is executed."""
2
+ import importlib.machinery as machinery
3
+ import os
4
+ import stat
5
+ import sys
6
+ from itertools import islice
7
+
8
+ MAX_MODULES = 128
9
+ MAX_ROOTS = 64
10
+ MAX_DEPTH = 32
11
+ MAX_ENTRIES = 100_000
12
+ SCOPE = ('exact-case directory FileFinder model only; not a runtime import, '
13
+ 'loadability, code-safety or atomic-filesystem certificate')
14
+
15
+
16
+ class ScanLimitError(Exception):
17
+ pass
18
+
19
+
20
+ def _bounded(values, limit, label):
21
+ if isinstance(values, (str, bytes, os.PathLike)):
22
+ raise ValueError(label + ' must be an iterable, not one string or path')
23
+ result = list(islice(values, limit + 1))
24
+ if not result or len(result) > limit:
25
+ raise ValueError(label + ' requires 1 to ' + str(limit) + ' entries')
26
+ return result
27
+
28
+
29
+ def _path(value):
30
+ value = os.fspath(value)
31
+ if not isinstance(value, str) or '\x00' in value:
32
+ raise ValueError('paths must be NUL-free strings or string-valued path objects')
33
+ return os.path.abspath(value)
34
+
35
+
36
+ def _mode(path):
37
+ try:
38
+ return os.stat(path).st_mode
39
+ except (FileNotFoundError, NotADirectoryError):
40
+ return None
41
+
42
+
43
+ class _Probe:
44
+ def __init__(self):
45
+ self.cache = {}
46
+ self.entries = 0
47
+
48
+ def names(self, path):
49
+ if path not in self.cache:
50
+ if self.entries >= MAX_ENTRIES:
51
+ raise ScanLimitError('directory-entry budget exceeded')
52
+ names = set()
53
+ with os.scandir(path) as entries:
54
+ for entry in entries:
55
+ self.entries += 1
56
+ if self.entries > MAX_ENTRIES:
57
+ raise ScanLimitError('directory-entry budget exceeded')
58
+ names.add(entry.name)
59
+ self.cache[path] = names
60
+ return self.cache[path]
61
+
62
+
63
+ def _suffixes():
64
+ # CPython's default FileFinder loader order, not arbitrary sys.path_hooks.
65
+ return [(suffix, kind) for suffixes, kind in (
66
+ (machinery.EXTENSION_SUFFIXES, 'extension'),
67
+ (machinery.SOURCE_SUFFIXES, 'source'),
68
+ (machinery.BYTECODE_SUFFIXES, 'bytecode')) for suffix in suffixes]
69
+
70
+
71
+ def _scan(probe, root, name, root_position):
72
+ mode = _mode(root)
73
+ if mode is None:
74
+ return [], 'missing_root'
75
+ if not stat.S_ISDIR(mode):
76
+ raise ValueError('non-directory search roots, including archives, are outside the model')
77
+ names = probe.names(root)
78
+ candidates = []
79
+ directory = os.path.join(root, name)
80
+ directory_mode = _mode(directory) if name in names else None
81
+ package = directory_mode is not None and stat.S_ISDIR(directory_mode)
82
+ package_names = probe.names(directory) if package else set()
83
+ suffixes = _suffixes()
84
+ for prefix, parent, available, candidate_kind in (
85
+ ('__init__', directory, package_names, 'package'),
86
+ (name, root, names, 'module')):
87
+ for suffix, storage in suffixes:
88
+ filename = prefix + suffix
89
+ if filename not in available:
90
+ continue
91
+ origin = os.path.join(parent, filename)
92
+ mode = _mode(origin)
93
+ if mode is not None and stat.S_ISREG(mode):
94
+ candidates.append({'root_position': root_position, 'root': root,
95
+ 'kind': candidate_kind, 'storage': storage,
96
+ 'origin': origin,
97
+ 'locations': [directory] if candidate_kind == 'package' else []})
98
+ if package and not any(c['kind'] == 'package' for c in candidates):
99
+ candidates.append({'root_position': root_position, 'root': root,
100
+ 'kind': 'namespace', 'storage': None, 'origin': None,
101
+ 'locations': [directory]})
102
+ return candidates, None
103
+
104
+
105
+ def _step(probe, fullname, roots):
106
+ candidates = []
107
+ ignored = []
108
+ errors = []
109
+ for position, root in enumerate(roots, 1):
110
+ try:
111
+ found, reason = _scan(probe, root, fullname.rsplit('.', 1)[-1], position)
112
+ candidates.extend(found)
113
+ if reason:
114
+ ignored.append({'root_position': position, 'root': root, 'reason': reason})
115
+ except (OSError, ValueError, ScanLimitError) as exc:
116
+ errors.append({'root_position': position, 'root': root,
117
+ 'error': type(exc).__name__, 'detail': str(exc)})
118
+ concrete = next((i for i, c in enumerate(candidates) if c['kind'] != 'namespace'), None)
119
+ selected = ([concrete] if concrete is not None else
120
+ [i for i, c in enumerate(candidates) if c['kind'] == 'namespace'])
121
+ for index, candidate in enumerate(candidates):
122
+ if index in selected:
123
+ reason = 'selected' if concrete is not None else 'namespace_portion'
124
+ elif candidate['kind'] == 'namespace':
125
+ reason = 'namespace_discarded_by_concrete'
126
+ elif candidate['root_position'] == candidates[concrete]['root_position']:
127
+ reason = 'lower_priority_same_root'
128
+ else:
129
+ reason = 'later_search_root'
130
+ candidate['disposition'] = reason
131
+ selection = None
132
+ if selected:
133
+ chosen = candidates[selected[0]]
134
+ selection = {'kind': chosen['kind'], 'storage': chosen['storage'],
135
+ 'origin': chosen['origin'],
136
+ 'locations': [location for i in selected for location in candidates[i]['locations']]}
137
+ return {'module': fullname, 'search_roots': list(roots), 'candidates': candidates,
138
+ 'selection': selection, 'ignored_roots': ignored, 'errors': errors}
139
+
140
+
141
+ def _expectation(steps, expected):
142
+ outside = []
143
+ for step in steps:
144
+ selection = step['selection']
145
+ if selection is None:
146
+ continue
147
+ paths = ([selection['origin']] if selection['origin'] else selection['locations'])
148
+ for path in paths:
149
+ physical = os.path.realpath(path, strict=True)
150
+ try:
151
+ inside = os.path.commonpath([expected, physical]) == expected
152
+ except ValueError:
153
+ inside = False
154
+ if not inside:
155
+ outside.append({'module': step['module'], 'path': path, 'physical_path': physical})
156
+ return {'root': expected, 'matches': not outside, 'outside': outside,
157
+ 'scope': 'every selected component, including all namespace portions; physical paths'}
158
+
159
+
160
+ def _trace(probe, module, roots, expected):
161
+ top = module.split('.')[0]
162
+ # These normal runtime finders precede the default path-based finder.
163
+ # Do not pretend a declared directory candidate wins over them.
164
+ builtin = top in sys.builtin_module_names
165
+ frozen = machinery.FrozenImporter.find_spec(top) is not None
166
+ if builtin or frozen:
167
+ return {'module': module, 'status': 'INCOMPLETE', 'steps': [],
168
+ 'reason': 'top-level name has builtin or frozen precedence in this interpreter',
169
+ 'runtime_precedence': 'builtin' if builtin else 'frozen'}
170
+ steps = []
171
+ parts = module.split('.')
172
+ status = 'LOCATED'
173
+ for index in range(len(parts)):
174
+ step = _step(probe, '.'.join(parts[:index + 1]), roots)
175
+ steps.append(step)
176
+ if step['errors']:
177
+ status = 'INCOMPLETE'
178
+ break
179
+ selection = step['selection']
180
+ if selection is None:
181
+ status = 'MISSING'
182
+ break
183
+ if index < len(parts) - 1 and selection['kind'] == 'module':
184
+ status = 'PARENT_NOT_PACKAGE'
185
+ break
186
+ roots = selection['locations']
187
+ result = {'module': module, 'status': status, 'steps': steps}
188
+ if expected is not None and status == 'LOCATED':
189
+ try:
190
+ result['expectation'] = _expectation(steps, expected)
191
+ if not result['expectation']['matches']:
192
+ result['status'] = 'EXPECTATION_FAILED'
193
+ except OSError as exc:
194
+ result['status'] = 'INCOMPLETE'
195
+ result['reason'] = 'could not check physical-path expectation: ' + str(exc)
196
+ return result
197
+
198
+
199
+ def trace_imports(modules, search_paths, *, expected_root=None):
200
+ """Explain explicit ordered directory lookup without importing targets.
201
+
202
+ This models default, exact-case CPython filesystem selection only. It never
203
+ changes sys.path, calls path hooks, reads source or loads bytecode/binaries.
204
+ Regular-package child lookup assumes its default directory __path__. Dynamic
205
+ __path__, module cache, custom finders, .pth and archives are not evaluated.
206
+ """
207
+ modules = _bounded(modules, MAX_MODULES, 'modules')
208
+ for module in modules:
209
+ if (not isinstance(module, str) or len(module.split('.')) > MAX_DEPTH
210
+ or not all(part.isidentifier() for part in module.split('.'))):
211
+ raise ValueError('modules must be absolute dotted identifiers with at most 32 parts')
212
+ roots = [_path(path) for path in _bounded(search_paths, MAX_ROOTS, 'search_paths')]
213
+ expected = None
214
+ if expected_root is not None:
215
+ expected = os.path.realpath(_path(expected_root), strict=True)
216
+ if not stat.S_ISDIR(os.stat(expected).st_mode):
217
+ raise ValueError('expected_root must be an existing directory')
218
+ probe = _Probe()
219
+ reports = [_trace(probe, module, roots, expected) for module in modules]
220
+ status = ('INCOMPLETE' if any(r['status'] == 'INCOMPLETE' for r in reports) else
221
+ 'FAILED' if any(r['status'] != 'LOCATED' for r in reports) else 'LOCATED')
222
+ return {'format': 'importroute/v1', 'status': status, 'search_paths': roots,
223
+ 'modules': reports, 'directory_entries_scanned': probe.entries,
224
+ 'suffix_order': [{'suffix': suffix, 'storage': kind} for suffix, kind in _suffixes()],
225
+ 'scope': SCOPE,
226
+ 'assumptions': ['explicit roots only; not the target process sys.path',
227
+ 'no custom import hooks or module-cache entries',
228
+ 'regular packages keep their default directory __path__',
229
+ 'no initializer execution or loadability check',
230
+ 'directory observations may race with filesystem changes']}
@@ -0,0 +1,149 @@
1
+ Metadata-Version: 2.4
2
+ Name: importroute
3
+ Version: 0.1.0
4
+ Summary: Explain declared Python filesystem import routes without importing target packages
5
+ Author: Anish Pentyala
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/anishpentyala/importroute
8
+ Project-URL: Repository, https://github.com/anishpentyala/importroute
9
+ Project-URL: Issues, https://github.com/anishpentyala/importroute/issues
10
+ Keywords: python,imports,debugging,static-analysis
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: license-file
15
+
16
+ # importroute
17
+
18
+ [![Tests](https://github.com/anishpentyala/importroute/actions/workflows/tests.yml/badge.svg)](https://github.com/anishpentyala/importroute/actions)
19
+
20
+ Explain where a Python name would be found in an explicit, ordered set of directories, without importing the target package.
21
+
22
+ ## Quickstart
23
+
24
+ ```sh
25
+ python -m pip install "git+https://github.com/anishpentyala/importroute.git"
26
+ mkdir -p demo/checkout demo/site
27
+ printf 'raise RuntimeError("do not import this")\n' > demo/checkout/widget.py
28
+ printf 'pass\n' > demo/site/widget.py
29
+ importroute widget --path demo/checkout --path demo/site --expect-under demo/site --json
30
+ ```
31
+
32
+ This exits 1 with top-level `FAILED` and per-module `EXPECTATION_FAILED`: the first root selects the checkout's
33
+ `widget.py`, outside the expected site directory. The exception in that file
34
+ does not run. Reverse the two `--path` arguments and this example passes.
35
+ This models declared filesystem roots, not custom import hooks or a live
36
+ process's full import behavior.
37
+
38
+ A PyPI release is being prepared. Until its package page is linked here, use the
39
+ source-install command above.
40
+
41
+ A checkout can hide an installed dependency. A regular package in a later root can replace earlier namespace portions. A package can also win over a same-name module at one root. `importroute` shows the candidates and the route through each dotted-name component, and can fail a CI check when that route leaves an expected directory.
42
+
43
+ This is a bounded filesystem model, **not proof of what a running process imports**. It does not evaluate initializers, custom finders, editable-install hooks, `.pth` files, archives, the module cache, or a package's dynamic `__path__` changes. It does not prove that selected code can load or is safe.
44
+
45
+ ## Install
46
+
47
+ Python 3.10 or newer. No runtime dependencies.
48
+
49
+ ```sh
50
+ python -m pip install .
51
+ importroute --help
52
+ ```
53
+
54
+ Run the tool with the interpreter whose default extension suffixes you want to model. Installation from this checkout is the supported installation instruction. No package-registry release is assumed.
55
+
56
+ ## A reproducible shadowing check
57
+
58
+ ```sh
59
+ mkdir -p demo/checkout demo/site
60
+ printf 'raise RuntimeError("do not import this")\n' > demo/checkout/widget.py
61
+ printf 'pass\n' > demo/site/widget.py
62
+
63
+ importroute widget --path demo/checkout --path demo/site
64
+ ```
65
+
66
+ The report selects `demo/checkout/widget.py` and lists `demo/site/widget.py` as a later-root candidate. Paths are displayed as absolute paths. The first file's exception does not run.
67
+
68
+ Require the selected route to stay under the intended directory:
69
+
70
+ ```sh
71
+ importroute widget --path demo/checkout --path demo/site \
72
+ --expect-under demo/site --json
73
+ ```
74
+
75
+ This exits 1 with top-level `FAILED` and per-module `EXPECTATION_FAILED`, because the first directory wins. Reversing the two `--path` arguments makes this example pass.
76
+
77
+ For a dotted name:
78
+
79
+ ```sh
80
+ importroute acme.plugins.reader --path ./src --path ./vendor --json
81
+ ```
82
+
83
+ Each component has its own `search_roots`, `candidates`, `selection`, `ignored_roots`, and `errors`. Child lookup follows the selected package directories, not the original top-level roots. Regular packages are assumed to retain their default directory `__path__`.
84
+
85
+ ## Python API
86
+
87
+ ```python
88
+ from importroute import trace_imports
89
+
90
+ report = trace_imports(
91
+ ["widget", "acme.plugins.reader"],
92
+ ["./src", "./vendor"],
93
+ expected_root="./src",
94
+ )
95
+ print(report["status"])
96
+ ```
97
+
98
+ Inputs must be iterables, not one string. Module names are absolute dotted identifiers. Relative names and path/glob patterns are rejected. Paths are literal: no environment-variable or tilde expansion. An empty path means the current directory. The function does not change `sys.path`.
99
+
100
+ ## Selection rules
101
+
102
+ The model uses exact-case directory entries and the running interpreter's default extension, source, then legacy-bytecode suffix order.
103
+
104
+ - Within one root, a regular package beats a same-name module, including extension modules. Among matching files, default loader suffix order applies.
105
+ - Across roots, the first concrete module or regular package wins.
106
+ - Namespace portions combine in root order only if there is no concrete match. A later concrete match discards earlier namespace portions.
107
+ - A plain module cannot have a child. A selected regular package's missing child does not fall back to unrelated top-level roots.
108
+ - `__pycache__` entries without source are not treated as legacy same-directory `.pyc` candidates. Extension and bytecode files are located, never loaded or validated.
109
+
110
+ `--expect-under` checks the physical path of **every selected component**, including every namespace portion. A symlink pointing outside fails even when its lexical path is inside. The expected root must be an existing directory. This is a location check, not a trust or containment sandbox.
111
+
112
+ ## Reports and exit codes
113
+
114
+ JSON reports use `format: "importroute/v1"`. All queries are retained. The overall status gives `INCOMPLETE` priority over failures.
115
+
116
+ | Exit | Meaning |
117
+ | --- | --- |
118
+ | 0 | Every query is `LOCATED`, with any expectation satisfied |
119
+ | 1 | A query is `MISSING`, `PARENT_NOT_PACKAGE`, or `EXPECTATION_FAILED` |
120
+ | 2 | Invalid input, command usage, or output failure |
121
+ | 3 | At least one query is `INCOMPLETE` |
122
+
123
+ An `INCOMPLETE` step may include a tentative selection from readable roots. Do not treat it as a passing result. Unreadable directories, non-directory roots such as archives, scan-budget exhaustion, and failed physical-path checks are explicit failures to complete the model. Missing roots are listed and ignored. Even an unsupported root after an apparent winner causes `INCOMPLETE`, because this tool promises a candidate inventory, not only a winner.
124
+
125
+ Top-level names with builtin or frozen precedence in this interpreter return `INCOMPLETE` instead of pretending a directory candidate is the runtime winner. Other non-filesystem behavior is excluded by the stated assumptions, not detected automatically.
126
+
127
+ Limits per call: 128 queries, 64 initial roots, 32 components per query, and 100,000 directory entries. One additional entry may be observed to detect that the entry budget was exceeded. Directory-name caches live only for the call. These are work limits, not a timeout: a slow filesystem or network mount can still block an operating-system call.
128
+
129
+ ## When to use something else
130
+
131
+ For the spec selected by the real import system, use `importlib.util.find_spec`. Looking up a dotted name there can execute its parent package. If runtime behavior matters, reproduce the real process and inspect the actual imported module instead of relying on this model.
132
+
133
+ Ruff's `A005` checks standard-library name shadowing. deptry checks dependency declarations and imports. Import Linter checks architecture contracts. Those solve different problems; this tool does not replace them. Its narrower task is an explicit-directory route explanation with all candidates and an expected-root gate.
134
+
135
+ [Detect Shadowed Modules](https://github.com/iloveitaly/detect-shadowed-modules/blob/master/README.md) is a closer alternative for duplicate-directory checks across an environment's search paths. Its CLI includes uv editable locations and installed-distribution ownership; its Python API also accepts explicit roots. Prefer it for that environment-wide inventory. `importroute` instead follows requested dotted names, includes ordinary module files and loader suffix precedence, distinguishes namespace accumulation from concrete-package selection, and checks the physical path of every selected component against an expected root.
136
+
137
+ Do not run Python itself on a hostile checkout merely because this tool does not import target packages. Interpreter startup, the installed tool, and its own imports remain part of your execution environment. Use a trusted installation and working directory. Filesystem observations can race with concurrent changes and are not an atomic snapshot. The model intentionally does not follow platform case-folding or `PYTHONCASEOK` behavior.
138
+
139
+ ## Development
140
+
141
+ ```sh
142
+ python -m unittest discover -s tests -v
143
+ ```
144
+
145
+ Tests compare 25 two-root layout pairs with the standard-library finder and 120 seeded nested layouts with actual harmless imports in isolated child processes. They also cover namespace precedence, suffix selection, symlinks, scan limits, no target execution, and output failures. This is Linux validation, not a claim of complete cross-platform import emulation.
146
+
147
+ See [design and sources](docs/design.md) for the scope and evidence.
148
+
149
+ MIT licensed.
@@ -0,0 +1,9 @@
1
+ importroute/__init__.py,sha256=OFaUwB2GTquWfWE0GejEwiuIoSrRYZXG5MU_8SJx7Uw,125
2
+ importroute/__main__.py,sha256=OCvYN-UHbV7TjNfSaHMaR84hXFSUBKn_d4a2dj4fnYs,3608
3
+ importroute/core.py,sha256=vKsd5iWZ40SvYoFj0FL_pdJCO9V0khyGNKS1Ydr4BAc,10156
4
+ importroute-0.1.0.dist-info/licenses/LICENSE,sha256=5yembAmR4hjWu7NOBFMDqvjvtnM8Ta_OGaPrAsVcI-I,1071
5
+ importroute-0.1.0.dist-info/METADATA,sha256=YFJ5SKxvwELV4SUq_mdgaARvEQ6z0E-mIPCjggCPbO4,9083
6
+ importroute-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
7
+ importroute-0.1.0.dist-info/entry_points.txt,sha256=c5MGYgDju6ue5LnOIRPwY6LnYt8UezBwyL0UVMuKtlk,64
8
+ importroute-0.1.0.dist-info/top_level.txt,sha256=jKP58PFUmamIF2snj1LlwAV7ALjda8KCrlqd3aFzlVw,12
9
+ importroute-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ importroute = importroute.__main__:entrypoint
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Anish Pentyala
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.
@@ -0,0 +1 @@
1
+ importroute