API Reference¶
The following section outlines the API of apip.
Client¶
- asynclist
Package¶
- class apip.Package(name, version, author=None, summary=None, description=None, license=None, author_email=None, classifiers=None, homepage=None, keywords=None, index='https://pypi.org/simple')¶
- await install()¶
Installs itself through the Pip API. Returns itself.
- Returns:
A Package object for the installed package.
- Raises:
PackageNotFoundException – The package was not found.
self.VersionNotFoundException – The version was not found.
ConnectionException – The connection to PyPi was unsuccessful.
- await uninstall()¶
Uninstalls itself through the Pip API.
- Raises:
PackageNotFoundException – The package was not found.
Exceptions¶
The following exceptions are thrown by the library.
- exception apip.errors.ConnectionException¶
Bases:
PipExceptionAn exception raised when the API could not access the server.
- exception apip.errors.PackageException¶
Bases:
PipExceptionA base exception for package errors.
- exception apip.errors.PackageNotFoundException¶
Bases:
PackageExceptionAn exception that is raised when the API could not find the package.
- exception apip.errors.VersionNotFoundException¶
Bases:
PackageExceptionAn exception raised when the version is not available for the specified package.