Skip to main content
App version: 3.4.8

list_runs()

Python package: neptune-fetcher

Returns a list of runs in a project.

NameTypeDefaultDescription
runsUnion[str, Filter]-A filter specifying which runs to include:
  • a regex that the run ID must match, or
  • a Filter object.
contextContext, optionalNoneWhich project and API token to use for the fetching operation. Useful for switching projects.

Examples

List all runs in a project:

from neptune_fetcher.alpha import runs


runs.list_runs()

Search a different project than the current global context and list only runs whose ID match a certain regex pattern:

my_secondary_project = npt.get_context().with_project("team-beta/project-y")

runs.list_runs(
runs=r"kittiwake_02.*25$",
context=my_secondary_project,
)
Output
['onerous-kittiwake_0287625', 'spurious-kittiwake_025c425']