pyrefdev 2025.1__tar.gz → 2025.3__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.
- pyrefdev-2025.3/.github/workflows/ci.yml +39 -0
- pyrefdev-2025.3/.github/workflows/pypi_upload.yml +42 -0
- pyrefdev-2025.3/.gitignore +177 -0
- pyrefdev-2025.3/CHANGELOG.md +9 -0
- {pyrefdev-2025.1 → pyrefdev-2025.3}/PKG-INFO +48 -13
- pyrefdev-2025.3/README.md +53 -0
- pyrefdev-2025.3/index.html +348 -0
- {pyrefdev-2025.1 → pyrefdev-2025.3}/pyproject.toml +27 -5
- pyrefdev-2025.3/pyrefdev.service +16 -0
- {pyrefdev-2025.1 → pyrefdev-2025.3/src}/pyrefdev/__init__.py +5 -0
- pyrefdev-2025.3/src/pyrefdev/_version.py +1 -0
- pyrefdev-2025.3/src/pyrefdev/config.py +39 -0
- pyrefdev-2025.3/src/pyrefdev/indexer/__main__.py +20 -0
- pyrefdev-2025.3/src/pyrefdev/indexer/crawl_docs.py +185 -0
- pyrefdev-2025.3/src/pyrefdev/indexer/parse_docs.py +297 -0
- pyrefdev-2025.3/src/pyrefdev/mapping/__init__.py +21 -0
- pyrefdev-2025.1/pyrefdev/mapping.py → pyrefdev-2025.3/src/pyrefdev/mapping/__python__.py +1284 -1031
- pyrefdev-2025.3/src/pyrefdev/mapping/numpy.py +2225 -0
- {pyrefdev-2025.1 → pyrefdev-2025.3/src}/pyrefdev/server.py +1 -3
- pyrefdev-2025.3/tests/test_mapping.py +6 -0
- pyrefdev-2025.3/uv.lock +761 -0
- pyrefdev-2025.1/README.md +0 -23
- {pyrefdev-2025.1 → pyrefdev-2025.3}/LICENSE +0 -0
- {pyrefdev-2025.1 → pyrefdev-2025.3/src}/pyrefdev/__main__.py +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions: {}
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
strategy:
|
|
15
|
+
fail-fast: false
|
|
16
|
+
matrix:
|
|
17
|
+
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
18
|
+
python-version:
|
|
19
|
+
- "3.10"
|
|
20
|
+
- "3.11"
|
|
21
|
+
- "3.12"
|
|
22
|
+
- "3.13"
|
|
23
|
+
- "3.13t"
|
|
24
|
+
- "3.14"
|
|
25
|
+
- "3.14t"
|
|
26
|
+
steps:
|
|
27
|
+
- name: Install uv
|
|
28
|
+
uses: astral-sh/setup-uv@v6
|
|
29
|
+
with:
|
|
30
|
+
version: "latest"
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
- uses: actions/checkout@v4
|
|
33
|
+
with:
|
|
34
|
+
fetch-depth: 0
|
|
35
|
+
persist-credentials: false
|
|
36
|
+
- name: Build pyrefdev
|
|
37
|
+
run: uv sync --locked --dev
|
|
38
|
+
- name: Run pytest
|
|
39
|
+
run: uv run pytest
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Publish on PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
pull_request:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
pypi-publish:
|
|
16
|
+
name: Upload release to PyPI
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
environment:
|
|
19
|
+
name: pypi
|
|
20
|
+
url: https://pypi.org/p/pyrefdev
|
|
21
|
+
permissions:
|
|
22
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
23
|
+
if: github.event_name == 'release'
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@v5
|
|
30
|
+
with:
|
|
31
|
+
python-version: '*'
|
|
32
|
+
|
|
33
|
+
- name: Install latest pip, build
|
|
34
|
+
run: |
|
|
35
|
+
python -m pip install --upgrade --disable-pip-version-check pip
|
|
36
|
+
python -m pip install --upgrade build
|
|
37
|
+
|
|
38
|
+
- name: Build package
|
|
39
|
+
run: python -m build
|
|
40
|
+
|
|
41
|
+
- name: Publish package distributions to PyPI
|
|
42
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Hatch-managed version file
|
|
2
|
+
src/pyrefdev/_version.py
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
share/python-wheels/
|
|
27
|
+
*.egg-info/
|
|
28
|
+
.installed.cfg
|
|
29
|
+
*.egg
|
|
30
|
+
MANIFEST
|
|
31
|
+
|
|
32
|
+
# PyInstaller
|
|
33
|
+
# Usually these files are written by a python script from a template
|
|
34
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
35
|
+
*.manifest
|
|
36
|
+
*.spec
|
|
37
|
+
|
|
38
|
+
# Installer logs
|
|
39
|
+
pip-log.txt
|
|
40
|
+
pip-delete-this-directory.txt
|
|
41
|
+
|
|
42
|
+
# Unit test / coverage reports
|
|
43
|
+
htmlcov/
|
|
44
|
+
.tox/
|
|
45
|
+
.nox/
|
|
46
|
+
.coverage
|
|
47
|
+
.coverage.*
|
|
48
|
+
.cache
|
|
49
|
+
nosetests.xml
|
|
50
|
+
coverage.xml
|
|
51
|
+
*.cover
|
|
52
|
+
*.py,cover
|
|
53
|
+
.hypothesis/
|
|
54
|
+
.pytest_cache/
|
|
55
|
+
cover/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
.pybuilder/
|
|
79
|
+
target/
|
|
80
|
+
|
|
81
|
+
# Jupyter Notebook
|
|
82
|
+
.ipynb_checkpoints
|
|
83
|
+
|
|
84
|
+
# IPython
|
|
85
|
+
profile_default/
|
|
86
|
+
ipython_config.py
|
|
87
|
+
|
|
88
|
+
# pyenv
|
|
89
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
90
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
91
|
+
# .python-version
|
|
92
|
+
|
|
93
|
+
# pipenv
|
|
94
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
95
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
96
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
97
|
+
# install all needed dependencies.
|
|
98
|
+
#Pipfile.lock
|
|
99
|
+
|
|
100
|
+
# UV
|
|
101
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
102
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
103
|
+
# commonly ignored for libraries.
|
|
104
|
+
#uv.lock
|
|
105
|
+
|
|
106
|
+
# poetry
|
|
107
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
108
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
109
|
+
# commonly ignored for libraries.
|
|
110
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
111
|
+
#poetry.lock
|
|
112
|
+
|
|
113
|
+
# pdm
|
|
114
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
115
|
+
#pdm.lock
|
|
116
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
117
|
+
# in version control.
|
|
118
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
119
|
+
.pdm.toml
|
|
120
|
+
.pdm-python
|
|
121
|
+
.pdm-build/
|
|
122
|
+
|
|
123
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
124
|
+
__pypackages__/
|
|
125
|
+
|
|
126
|
+
# Celery stuff
|
|
127
|
+
celerybeat-schedule
|
|
128
|
+
celerybeat.pid
|
|
129
|
+
|
|
130
|
+
# SageMath parsed files
|
|
131
|
+
*.sage.py
|
|
132
|
+
|
|
133
|
+
# Environments
|
|
134
|
+
.env
|
|
135
|
+
.venv
|
|
136
|
+
env/
|
|
137
|
+
venv/
|
|
138
|
+
ENV/
|
|
139
|
+
env.bak/
|
|
140
|
+
venv.bak/
|
|
141
|
+
|
|
142
|
+
# Spyder project settings
|
|
143
|
+
.spyderproject
|
|
144
|
+
.spyproject
|
|
145
|
+
|
|
146
|
+
# Rope project settings
|
|
147
|
+
.ropeproject
|
|
148
|
+
|
|
149
|
+
# mkdocs documentation
|
|
150
|
+
/site
|
|
151
|
+
|
|
152
|
+
# mypy
|
|
153
|
+
.mypy_cache/
|
|
154
|
+
.dmypy.json
|
|
155
|
+
dmypy.json
|
|
156
|
+
|
|
157
|
+
# Pyre type checker
|
|
158
|
+
.pyre/
|
|
159
|
+
|
|
160
|
+
# pytype static type analyzer
|
|
161
|
+
.pytype/
|
|
162
|
+
|
|
163
|
+
# Cython debug symbols
|
|
164
|
+
cython_debug/
|
|
165
|
+
|
|
166
|
+
# PyCharm
|
|
167
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
168
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
169
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
170
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
171
|
+
#.idea/
|
|
172
|
+
|
|
173
|
+
# Ruff stuff:
|
|
174
|
+
.ruff_cache/
|
|
175
|
+
|
|
176
|
+
# PyPI configuration file
|
|
177
|
+
.pypirc
|
|
@@ -1,35 +1,47 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyrefdev
|
|
3
|
-
Version: 2025.
|
|
3
|
+
Version: 2025.3
|
|
4
4
|
Summary: The entry point to Python reference docs
|
|
5
|
-
|
|
5
|
+
Project-URL: Home, https://pyref.dev
|
|
6
|
+
Project-URL: Source, https://github.com/mangoumbrella/pyref.dev
|
|
6
7
|
Author-email: Mango Umbrella LLC <hi@mangoumbrella.com>
|
|
7
|
-
Requires-Python: >=3.9
|
|
8
|
-
Description-Content-Type: text/markdown
|
|
9
8
|
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: documentation
|
|
10
11
|
Classifier: Development Status :: 4 - Beta
|
|
11
12
|
Classifier: Environment :: Console
|
|
12
13
|
Classifier: Intended Audience :: Developers
|
|
13
14
|
Classifier: Operating System :: OS Independent
|
|
14
15
|
Classifier: Programming Language :: Python
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Programming Language :: Python :: Free Threading
|
|
21
23
|
Classifier: Topic :: Documentation
|
|
22
|
-
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Requires-Dist: yib>=0.2.0
|
|
26
|
+
Provides-Extra: indexer
|
|
27
|
+
Requires-Dist: beautifulsoup4>=4.13.4; extra == 'indexer'
|
|
28
|
+
Requires-Dist: cyclopts>=3.19.0; extra == 'indexer'
|
|
29
|
+
Requires-Dist: rich>=14.0.0; extra == 'indexer'
|
|
27
30
|
Provides-Extra: server
|
|
31
|
+
Requires-Dist: fastapi<1,>=0.115.12; extra == 'server'
|
|
32
|
+
Requires-Dist: uvicorn[standard]<1,>=0.34.2; extra == 'server'
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
28
34
|
|
|
29
35
|
# pyref.dev
|
|
30
36
|
|
|
31
37
|
[pyref.dev](https://pyref.dev) is a fast, convenient way to access Python reference docs.
|
|
32
38
|
|
|
39
|
+
<p>
|
|
40
|
+
<a href="https://pypi.org/project/pyrefdev"><img alt="PyPI" src="https://img.shields.io/pypi/v/pyrefdev"></a>
|
|
41
|
+
<a href="https://pypi.org/project/pyrefdev"><img alt="Python veresions supported" src="https://img.shields.io/pypi/pyversions/pyrefdev"></a>
|
|
42
|
+
<a href="https://github.com/mangoumbrella/pyref.dev/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/pyrefdev.svg"></a>
|
|
43
|
+
</p>
|
|
44
|
+
|
|
33
45
|
It allows you to quickly jump to the official documentation for any Python standard library module, class, or function by using a simple URL pattern:
|
|
34
46
|
|
|
35
47
|
```
|
|
@@ -46,7 +58,30 @@ Alternatively, you could also `pip install pyrefdev` and run the `pyrefdev` CLI
|
|
|
46
58
|
|
|
47
59
|
For now, the symbols are case-insensitive.
|
|
48
60
|
|
|
49
|
-
##
|
|
61
|
+
## Server Setup
|
|
62
|
+
|
|
63
|
+
To set up a new server:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
> git clone https://github.com/mangoumbrella/pyref.dev
|
|
67
|
+
> cd pyref.dev
|
|
68
|
+
> sudo cp pyrefdev.service /etc/systemd/system/pyrefdev.service
|
|
69
|
+
> systemctl start pyrefdev.service
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
To update to a new version:
|
|
50
73
|
|
|
51
|
-
|
|
74
|
+
```bash
|
|
75
|
+
> cd pyref.dev
|
|
76
|
+
> git pull
|
|
77
|
+
> uv sync --all-extras
|
|
78
|
+
> systemctl restart pyrefdev.service
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Changelog
|
|
82
|
+
|
|
83
|
+
See [CHANGELOG.md](https://github.com/mangoumbrella/pyref.dev/blob/main/CHANGELOG.md).
|
|
84
|
+
|
|
85
|
+
## License
|
|
52
86
|
|
|
87
|
+
[pyref.dev](https://pyref.dev) is licensed under the terms of the Apache license. See [LICENSE](https://github.com/mangoumbrella/pyref.dev/blob/main/LICENSE) for more information.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# pyref.dev
|
|
2
|
+
|
|
3
|
+
[pyref.dev](https://pyref.dev) is a fast, convenient way to access Python reference docs.
|
|
4
|
+
|
|
5
|
+
<p>
|
|
6
|
+
<a href="https://pypi.org/project/pyrefdev"><img alt="PyPI" src="https://img.shields.io/pypi/v/pyrefdev"></a>
|
|
7
|
+
<a href="https://pypi.org/project/pyrefdev"><img alt="Python veresions supported" src="https://img.shields.io/pypi/pyversions/pyrefdev"></a>
|
|
8
|
+
<a href="https://github.com/mangoumbrella/pyref.dev/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/pypi/l/pyrefdev.svg"></a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
It allows you to quickly jump to the official documentation for any Python standard library module, class, or function by using a simple URL pattern:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
https://pyref.dev/<fully.qualified.symbol.name>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Alternatively, you could also `pip install pyrefdev` and run the `pyrefdev` CLI tool.
|
|
18
|
+
|
|
19
|
+
## Examples
|
|
20
|
+
|
|
21
|
+
* https://pyref.dev/json
|
|
22
|
+
* https://pyref.dev/pathlib.Path
|
|
23
|
+
* https://pyref.dev/datetime.datetime.strftime
|
|
24
|
+
|
|
25
|
+
For now, the symbols are case-insensitive.
|
|
26
|
+
|
|
27
|
+
## Server Setup
|
|
28
|
+
|
|
29
|
+
To set up a new server:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
> git clone https://github.com/mangoumbrella/pyref.dev
|
|
33
|
+
> cd pyref.dev
|
|
34
|
+
> sudo cp pyrefdev.service /etc/systemd/system/pyrefdev.service
|
|
35
|
+
> systemctl start pyrefdev.service
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
To update to a new version:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
> cd pyref.dev
|
|
42
|
+
> git pull
|
|
43
|
+
> uv sync --all-extras
|
|
44
|
+
> systemctl restart pyrefdev.service
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Changelog
|
|
48
|
+
|
|
49
|
+
See [CHANGELOG.md](https://github.com/mangoumbrella/pyref.dev/blob/main/CHANGELOG.md).
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
[pyref.dev](https://pyref.dev) is licensed under the terms of the Apache license. See [LICENSE](https://github.com/mangoumbrella/pyref.dev/blob/main/LICENSE) for more information.
|