PypiPackageData#
A pinned Pypi package.
is_editable: bool
property
#
Whether the package should be installed in editable mode or not.
Examples#
url_or_path: str
property
#
The URL that points to where the artifact can be downloaded from.
Examples#
>>> from rattler import LockFile, Platform
>>> lock_file = LockFile.from_path("../test-data/test.lock")
>>> env = lock_file.default_environment()
>>> pypi_packages = env.pypi_packages()
>>> data = pypi_packages[Platform("osx-arm64")][0][0]
>>> data.url_or_path
'https://files.pythonhosted.org/...'
>>>
__repr__()
#
Returns a representation of the PypiPackageData.