Manifest
geneva.manifest.mgr.GenevaManifest
A Geneva Manifest represents the files and dependencies used in the execution environment.
created_at
created_at: datetime = field(
factory=lambda: now(utc),
metadata={"pa_type": timestamp("us", tz="UTC")},
)
compute_checksum
Generate a stable checksum of the manifest, ignoring the checksum field. The zip file names include the checksum of the contents so this hash is comprehensive.
create_pip
create_pip(name: str) -> PipManifestBuilder
Create a pip-based manifest builder.
Example: manifest = GenevaManifest.create_pip("my-manifest").pip(["numpy"]).build()
create_conda
create_conda(name: str) -> CondaManifestBuilder
Create a conda-based manifest builder.
Example: manifest = GenevaManifest.create_conda("my-manifest").conda({...}).build()
create_site
create_site(name: str) -> SiteManifestBuilder
Create a site-packages manifest builder.
Uploads local site-packages without external dependencies. upload_site_packages defaults to True.
Example: manifest = GenevaManifest.create_site("my-manifest").build()
geneva.manifest.builder.PipManifestBuilder
Bases: _ManifestBuilderBase
Type-safe builder for pip-based manifests.
This builder does NOT have conda methods - use CondaManifestBuilder for conda.
Example:
manifest = (
PipManifestBuilder.create("my-manifest")
.pip(["numpy", "pandas"])
.build()
)
pip
pip(packages: list[str]) -> PipManifestBuilder
Set the runtime pip packages list.
Cannot be used with .requirements_path().
add_pip
add_pip(package: str) -> PipManifestBuilder
Add a single pip package to the runtime environment.
requirements_path
requirements_path(path: str) -> PipManifestBuilder
Set the path to a requirements.txt file.
Cannot be used with .pip().
create
create(name: str) -> PipManifestBuilder
Create a new pip manifest builder with the given name.
geneva.manifest.builder.CondaManifestBuilder
Bases: _ManifestBuilderBase
Type-safe builder for conda-based manifests.
This builder does NOT have pip methods - use PipManifestBuilder for pip.
Example:
manifest = (
CondaManifestBuilder.create("my-manifest")
.conda({"dependencies": ["python=3.10", "numpy"]})
.build()
)
conda
conda(dependencies: dict[str, Any]) -> CondaManifestBuilder
Set the conda dependencies for the runtime environment.
Cannot be used with .conda_environment_path().
conda_environment_path
conda_environment_path(path: str) -> CondaManifestBuilder
Set the path to a conda environment.yml file.
Cannot be used with .conda().
create
create(name: str) -> CondaManifestBuilder
Create a new conda manifest builder with the given name.
geneva.manifest.builder.SiteManifestBuilder
Bases: _ManifestBuilderBase
Type-safe builder for site-packages manifests.
This builder uploads local site-packages without external dependencies. It does NOT have pip or conda methods.
upload_site_packages defaults to True for this builder.
Example:
manifest = SiteManifestBuilder.create("my-manifest").build()
create
create(name: str) -> SiteManifestBuilder
Create a new site manifest builder with the given name.