symbex 1.4__py3-none-any.whl → 1.4.1__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.
- symbex/cli.py +1 -9
- {symbex-1.4.dist-info → symbex-1.4.1.dist-info}/METADATA +20 -10
- symbex-1.4.1.dist-info/RECORD +10 -0
- {symbex-1.4.dist-info → symbex-1.4.1.dist-info}/WHEEL +1 -1
- symbex-1.4.dist-info/RECORD +0 -10
- {symbex-1.4.dist-info → symbex-1.4.1.dist-info}/LICENSE +0 -0
- {symbex-1.4.dist-info → symbex-1.4.1.dist-info}/entry_points.txt +0 -0
- {symbex-1.4.dist-info → symbex-1.4.1.dist-info}/top_level.txt +0 -0
symbex/cli.py
CHANGED
@@ -396,7 +396,7 @@ def cli(
|
|
396
396
|
for directory in directories:
|
397
397
|
for path in pathlib.Path(directory).rglob("*.py"):
|
398
398
|
# Skip if path is inside any of 'excludes'
|
399
|
-
if any(
|
399
|
+
if any(path.resolve().is_relative_to(exclude) for exclude in excludes):
|
400
400
|
continue
|
401
401
|
if path.is_file():
|
402
402
|
yield path
|
@@ -601,14 +601,6 @@ def cli(
|
|
601
601
|
filepath.write_text(new, "utf-8")
|
602
602
|
|
603
603
|
|
604
|
-
def is_subpath(path: pathlib.Path, parent: pathlib.Path) -> bool:
|
605
|
-
try:
|
606
|
-
path.relative_to(parent)
|
607
|
-
return True
|
608
|
-
except ValueError:
|
609
|
-
return False
|
610
|
-
|
611
|
-
|
612
604
|
def is_dunder(name):
|
613
605
|
return name.startswith("__") and name.endswith("__")
|
614
606
|
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: symbex
|
3
|
-
Version: 1.4
|
3
|
+
Version: 1.4.1
|
4
4
|
Summary: Find the Python code for specified symbols
|
5
5
|
Home-page: https://github.com/simonw/symbex
|
6
6
|
Author: Simon Willison
|
@@ -13,13 +13,23 @@ Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
14
14
|
Requires-Dist: click
|
15
15
|
Provides-Extra: test
|
16
|
-
Requires-Dist: pytest
|
17
|
-
Requires-Dist: pytest-icdiff
|
18
|
-
Requires-Dist: cogapp
|
19
|
-
Requires-Dist: PyYAML
|
20
|
-
Requires-Dist: ruff
|
21
|
-
|
22
|
-
|
16
|
+
Requires-Dist: pytest; extra == "test"
|
17
|
+
Requires-Dist: pytest-icdiff; extra == "test"
|
18
|
+
Requires-Dist: cogapp; extra == "test"
|
19
|
+
Requires-Dist: PyYAML; extra == "test"
|
20
|
+
Requires-Dist: ruff; extra == "test"
|
21
|
+
Dynamic: author
|
22
|
+
Dynamic: description
|
23
|
+
Dynamic: description-content-type
|
24
|
+
Dynamic: home-page
|
25
|
+
Dynamic: license
|
26
|
+
Dynamic: project-url
|
27
|
+
Dynamic: provides-extra
|
28
|
+
Dynamic: requires-dist
|
29
|
+
Dynamic: requires-python
|
30
|
+
Dynamic: summary
|
31
|
+
|
32
|
+
# Symbex
|
23
33
|
|
24
34
|
[](https://pypi.org/project/symbex/)
|
25
35
|
[](https://github.com/simonw/symbex/releases)
|
@@ -28,7 +38,7 @@ Requires-Dist: ruff ; extra == 'test'
|
|
28
38
|
|
29
39
|
Find the Python code for specified symbols
|
30
40
|
|
31
|
-
Read [
|
41
|
+
Read [Symbex: search Python code for functions and classes, then pipe them into a LLM](https://simonwillison.net/2023/Jun/18/symbex/) for background on this project.
|
32
42
|
|
33
43
|
## Installation
|
34
44
|
|
@@ -0,0 +1,10 @@
|
|
1
|
+
symbex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
symbex/__main__.py,sha256=8hDtWlaFZK24KhfNq_ZKgtXqYHsDQDetukOCMlsbW0Q,59
|
3
|
+
symbex/cli.py,sha256=kGCltpO79yjVpXEerJlae5Sc22kOp3evy08dy0SZcU0,18096
|
4
|
+
symbex/lib.py,sha256=CiKKOOyc6Ne_7igzNItMZpa5I6o12LEbIPrQU9al7Ro,11436
|
5
|
+
symbex-1.4.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
6
|
+
symbex-1.4.1.dist-info/METADATA,sha256=vUyXJ1kEdUDfM_ye3sE7LDqjCcHfEavgEfEzED9vpbM,21564
|
7
|
+
symbex-1.4.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
8
|
+
symbex-1.4.1.dist-info/entry_points.txt,sha256=YgMSEfEGqNMHM9RysFObH8lkQKVZKyymKLnXbVue_Uk,42
|
9
|
+
symbex-1.4.1.dist-info/top_level.txt,sha256=qwle8HjAaYgpdMIHlJcTcN4gaG4wmDqUvkt54beTBTs,7
|
10
|
+
symbex-1.4.1.dist-info/RECORD,,
|
symbex-1.4.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
symbex/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
symbex/__main__.py,sha256=8hDtWlaFZK24KhfNq_ZKgtXqYHsDQDetukOCMlsbW0Q,59
|
3
|
-
symbex/cli.py,sha256=aphJzLYES-kqvNMl2Pa2wxAounWPhyhqUbp8qxLK8U8,18257
|
4
|
-
symbex/lib.py,sha256=CiKKOOyc6Ne_7igzNItMZpa5I6o12LEbIPrQU9al7Ro,11436
|
5
|
-
symbex-1.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
6
|
-
symbex-1.4.dist-info/METADATA,sha256=HK_k1FuVTT4MG4dA48RicoMravije7-lzfhywwpE_g4,21350
|
7
|
-
symbex-1.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
8
|
-
symbex-1.4.dist-info/entry_points.txt,sha256=YgMSEfEGqNMHM9RysFObH8lkQKVZKyymKLnXbVue_Uk,42
|
9
|
-
symbex-1.4.dist-info/top_level.txt,sha256=qwle8HjAaYgpdMIHlJcTcN4gaG4wmDqUvkt54beTBTs,7
|
10
|
-
symbex-1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|