twine.repository module¶
- class twine.repository.Repository[source]¶
- __init__(repository_url: str, username: str | None, password: str | None, disable_progress_bar: bool = False) None[source]¶
- register(package: PackageFile) Response[source]¶
- _upload(package: PackageFile) Response[source]¶
- upload(package: PackageFile, max_redirects: int = 5) Response[source]¶
- package_is_uploaded(package: PackageFile, bypass_cache: bool = False) bool[source]¶
Determine if a package has been uploaded to PyPI already.
Warning
This does not support indexes other than PyPI or TestPyPI
- Parameters:
package (
PackageFile) – The package file that will otherwise be uploaded.bypass_cache (bool) – Force a request to PyPI.
- Returns:
True if package has already been uploaded, False otherwise
- Return type:
- verify_package_integrity(package: PackageFile) None[source]¶