-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
not easyNot an easy task to fix this issue/PRNot an easy task to fix this issue/PR
Description
PyPI username / owner namespace validation
Category: dev
Goal: Add a validator to check whether a given username/owner exists on PyPI (useful for claiming a consistent package namespace).
Ideas to explore:
- PyPI does not have a super-clear per-user profile URL, but owners can often be inferred from simple endpoints or search filters.
- One approach:
- Try
https://pypi.org/user/{username}/and inspect whether it returns a distinct status or content for existing vs non-existing users.
- Try
Logic (to confirm):
- If
200vs404works, usestatus_validate(). - Otherwise, use
generic_validate()and parse the page text.
Implementation notes:
- Add
dev/pypi.py. - Implement
validate_pypi(username: str). - Keep behavior consistent with other dev platforms (Available/Taken/Error).
Metadata
Metadata
Assignees
Labels
not easyNot an easy task to fix this issue/PRNot an easy task to fix this issue/PR