pypi_json.typehints¶
Type hints.
Classes:
Information about a versioned archive file from which a Python project release can be installed. |
|
Represents the output of |
|
Information about the project’s roles and organization membership. |
|
Generic information about a specific version of a project. |
|
A user’s role in an organisation. |
|
Information about a vulnerability affecting a project’s. |
-
typeddict
DistributionPackageDict[source]¶ Bases:
TypedDictInformation about a versioned archive file from which a Python project release can be installed.
- Required Keys
comment_text (
str) – Deprecateddownloads (
int) – Deprecatedfilename (
str) – The basename of the package file (including extension).md5_digest (
str) – Deprecatedpackagetype (
str) – The distribution package type. Possible values include'bdist_wheel','sdist','bdist_wininst','bdist_egg','bdist_msi','bdist_dumb','bdist_rpm', and'bdist_dmg'.python_version (
str) – Either'source'or a PEP 425 Python tag.requires_python (
Optional[str]) – Python runtime version required for project.size (
int) – The file size in bytesupload_time (
str) – The time the file was uploaded, in the format'%Y-%m-%dT%H:%M:%S'.upload_time_iso_8601 (
str) – The time the file was uploaded, in ISO 8601 format.url (
str) – The URL from which the package file can be downloaded.yanked (
bool) – Whether this version has been yanked. As defined in PEP 592.yanked_reason (
Optional[str]) – The reason for applying a PEP 592 version yank.
-
typeddict
FileURL[source]¶ Bases:
TypedDictRepresents the output of
ProjectMetadata.get_releases_with_digests.
-
typeddict
OwnershipInfoDict[source]¶ Bases:
TypedDictInformation about the project’s roles and organization membership.
New in version 0.5.0.
- Required Keys
organization (
Optional[str]) – The URL slug of the organization that owns the project (e.g."pypa"), orNoneif the project is not owned by an organization.roles (
List[RoleInfoDict]) – A list of dictionaries representing the project’s owners and maintainers. This is an empty list when the project has no roles assigned.
-
typeddict
ProjectInfoDict[source]¶ Bases:
TypedDictGeneric information about a specific version of a project.
- Required Keys
author (
str) – The name of the company or individual who created the project.author_email (
str) – The author’s email address.bugtrack_url (
Optional[str]) – URL to find issues and bugs for the project.classifiers (
List[str]) – Trove Classifiers for the project.description (
str)description_content_type (
str)docs_url (
Optional[str]) – URL to the project’s documentation.download_url (
str) – Deprecatedhome_page (
str) – URL to project home pagekeywords (
str) – Keywords to use for project searching.license (
str) – The project’s open source license.maintainer (
str) – Project maintainer name.maintainer_email (
str) – Project maintainer email address.name (
str) – Project’s raw (non-normailzed name).package_url (
str) – URL to the project page.platform (
str) – Deprecatedproject_url (
str) – URL to the project page.project_urls (
Dict[str,str]) – Additional URLs that are relevant to the project.release_url (
str) – URL of the release page of this version of the project.requires_python (
Optional[str]) – Python runtime version required for project.summary (
str) – A one-line summary of what the distribution does.version (
str) – A string containing the distribution’s version number in the format specified in PEP 440.yanked (
bool) – Whether this version has been yanked. As defined in PEP 592.yanked_reason (
Optional[str]) – The reason for applying a PEP 592 version yank.
-
typeddict
RoleInfoDict[source]¶ Bases:
TypedDictA user’s role in an organisation.
New in version 0.5.0.
-
typeddict
VulnerabilityInfoDict[source]¶ Bases:
TypedDictInformation about a vulnerability affecting a project’s.
PyPI receives reports on vulnerabilities in the packages hosted on it from the Open Source Vulnerabilities project, which in turn ingests vulnerabilities from the Python Packaging Advisory Database.
New in version 0.2.0.
- Required Keys
id (
str) – The unique identifier of the vulnerability, e.g."PYSEC-001".source (
str) – The source of the vulnerability information.link (
str) – A URL giving further information about the vulnerability.details (
str) – Additional details about the vulnerability.fixed_in (
List[str]) – The version(s) the vulnerability was fixed in, e.g.["3.3.2"].