twine.repository module

class twine.repository.ProgressBar[source]
update_to(n: int) None[source]

Update the bar in the way compatible with requests-toolbelt.

This is identical to tqdm.update, except n will be the current value - not the delta as tqdm expects.

class twine.repository.Repository[source]
__init__(repository_url: str, username: Optional[str], password: Optional[str], disable_progress_bar: bool = False) None[source]
static _make_adapter_with_retries() requests.adapters.HTTPAdapter[source]
static _make_user_agent_string() str[source]
close() None[source]
static _convert_data_to_list_of_tuples(data: Dict[str, Any]) List[Tuple[str, Any]][source]
set_certificate_authority(cacert: Optional[str]) None[source]
set_client_certificate(clientcert: Optional[str]) None[source]
register(package: twine.package.PackageFile) requests.models.Response[source]
_upload(package: twine.package.PackageFile) requests.models.Response[source]
upload(package: twine.package.PackageFile, max_redirects: int = 5) requests.models.Response[source]
package_is_uploaded(package: twine.package.PackageFile, bypass_cache: bool = False) bool[source]
release_urls(packages: List[twine.package.PackageFile]) Set[str][source]
verify_package_integrity(package: twine.package.PackageFile) None[source]