glpkg
¶
Submodules¶
Package Contents¶
Classes¶
Normalized representation of glpkg.json and user config |
|
Normalized representation of a single package from glpkg.json |
- class glpkg.Config(root: pathlib.Path, downloads: Dict[str, glpkg.package.Package] = {}, uploads: Dict[str, glpkg.package.UploadedPackage] = {})¶
Normalized representation of glpkg.json and user config
- static load(root: Optional[pathlib.Path] = None) Config ¶
Find glpkg.json and initialize
glpkg.Config
from it.- Parameters:
root – the path from which the search should be started.
- find_package(alias: str) glpkg.package.Package ¶
Find a package by its alias.
- Raises:
glpkg.error.PackageNotFoundError – if package was not found
- find_download(alias: str) glpkg.package.Package ¶
Find downloaded package by its alias.
- Raises:
glpkg.error.PackageNotFoundError – if package was not found
- find_upload(alias: str) glpkg.package.UploadedPackage ¶
Find uploaded package by its alias.
- Raises:
glpkg.error.PackageNotFoundError – if package was not found
- class glpkg.Package¶
Normalized representation of a single package from glpkg.json
- config :glpkg.config.Config¶
- alias :str¶
- name :str¶
- version :str¶
- filename :str¶
- gitlab_instance :str¶
- project_id :int¶
- __post_init__()¶
- get_subpath() str ¶
Get string representing both package path in the download directory and its key in the lockfile
- get_path() pathlib.Path ¶
Get path to this package