Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to access the content of local PyPI mirror #6

Closed
s117 opened this issue Mar 2, 2020 · 6 comments
Closed

Figure out how to access the content of local PyPI mirror #6

s117 opened this issue Mar 2, 2020 · 6 comments
Assignees

Comments

@s117
Copy link
Collaborator

s117 commented Mar 2, 2020

No description provided.

@s117 s117 self-assigned this Mar 2, 2020
@s117
Copy link
Collaborator Author

s117 commented Mar 2, 2020

web/json folder contains 216757 files, and it looks the json metadata for all 216734 mirrored packages are located there, though 23 unknown extra files existed.

json ls                   
0
0-._.-._.-._.-._.-._.-._.-0
00000a
0.0.1
007
00print_lol
00SMALINUX
....
zzz
zzzeeksphinx
zzzfs
zzzutils

json ls |wc -l                        
216757

json cat requests
{
    "info": {
        "author": "Kenneth Reitz",
        "author_email": "[email protected]",
        "bugtrack_url": null,
        ......
        "requires_dist": [
            "chardet (<4,>=3.0.2)",
            "idna (<3,>=2.5)",
            "urllib3 (!=1.25.0,!=1.25.1,<1.26,>=1.21.1)",
            "certifi (>=2017.4.17)",
            "pyOpenSSL (>=0.14) ; extra == 'security'",
            "cryptography (>=1.3.4) ; extra == 'security'",
            "PySocks (!=1.5.7,>=1.5.6) ; extra == 'socks'",
            "win-inet-pton ; (sys_platform == \"win32\" and python_version == \"2.7\") and extra == 'socks'"
        ],
        "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
        "summary": "Python HTTP for Humans.",
        "version": "2.23.0"
    },
    ......
}

@s117 s117 closed this as completed Mar 2, 2020
@s117
Copy link
Collaborator Author

s117 commented Mar 2, 2020

Btw the size of web/json folder is 3.5 GB.

@werwty
Copy link
Owner

werwty commented Mar 5, 2020

@s117 Would you mind uploading a zipped copy of the web/json directory to gdrive and sharing with me?

@s117
Copy link
Collaborator Author

s117 commented Mar 5, 2020

@werwty Here you go:

https://drive.google.com/file/d/13udwIGgPUNdfUE-Rb6_NBw25ASj1CVHd/view?usp=sharing

@s117 s117 reopened this Mar 24, 2020
@s117 s117 changed the title Figure out how to iterate through all the metadata in the local PyPI mirror Figure out how to access the content of local PyPI mirror Mar 24, 2020
@s117
Copy link
Collaborator Author

s117 commented Mar 24, 2020

Since the JSON API cannot provide dependency information accurately (pypi/warehouse#474), reopen this for exploring how to index arbitrary package inside the mirror.

@s117 s117 closed this as completed Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants