wandb API reference
400 public APIs from wandb (wandb/wandb) — 104 classes, 102 functions, 194 methods. Signatures extracted by static analysis of the actual source.
Repository: wandb/wandb
| Kind | Count |
|---|---|
| Classes | 104 |
| Functions | 102 |
| Methods | 194 |
API list
func
core.hatch.build_wandb_core(go_binary:pathlib.Path, output_path:pathlib.PurePath, with_code_coverage:bool, with_race_detection:bool, with_cgo:bool, wandb_commit_sha:str | None, target_system, target_arch) -> NoneBuilds the wandb-core Go module.
class
parquet-rust-wrapper.hatch.ArrowRsWrapperBuildErrorRaised when building arrow-rs-wrapper fails.
func
parquet-rust-wrapper.hatch.build_arrow_rs_wrapper(cargo_binary:pathlib.Path, output_path:pathlib.Path, target_triple:str | None=None) -> NoneBuild the arrow-rs-wrapper Rust library.
class
wandb._filters.expressions.FilterExprA MongoDB filter expression on a specific field.
func
wandb._iterutils.one(iterable:Iterable[T], too_short:type[Exception] | Exception | None=None, too_long:type[Exception] | Exception | None=None) -> TReturn the only item in the iterable.
method
wandb._pydantic.pagination.Connection.has_next() -> boolReturns True if there are more pages to fetch.
method
wandb._pydantic.pagination.Connection.nodes() -> Iterator[NodeT]Returns an iterator over the nodes in the connection.
class
wandb._pydantic.pagination.EdgeA wrapper around a single result item in a paginated response.
func
wandb._pydantic.utils.from_json(s:str | bytes) -> AnyQuickly deserialize a JSON string to a Python object.
func
wandb._pydantic.utils.gql_typename(cls:type[BaseModel]) -> strGet the GraphQL typename for a Pydantic model.
func
wandb._pydantic.utils.to_json(v:Any) -> strQuickly serialize a (possibly Pydantic) object to a JSON string.
func
wandb._strutils.b64decode_ascii(s:str) -> strReturns the decoded base64 string interpreted as ASCII.
func
wandb._strutils.b64encode_ascii(s:str) -> strReturns the base64 encoding of the string's ASCII bytes.
func
wandb._strutils.ensureprefix(s:str, prefix:str) -> strEnsures the string has the given prefix prepended.
func
wandb._strutils.nameof(obj:Any, full:bool=True) -> strInternal convenience helper that returns the object's `__name__` or `__qualname__`.
class
wandb.analytics.opentelemetry.opentelemetry_proxy.TelemetryRecorderRecords OpenTelemetry events (metrics and logs).
method
wandb.analytics.opentelemetry.opentelemetry_proxy.TelemetryRecorder.exception(message:str, exc:Exception) -> NoneRecord an exception as both a counter metric and an error log.
method
wandb.analytics.opentelemetry.opentelemetry_proxy.TelemetryRecorder.reraise(exc:Exception) -> NeverLog the exception to telemetry, then re-raise it.
func
wandb.analytics.sentry.get_sentry() -> SentryReturn the Sentry singleton for the current process (fork-aware).
method
wandb.apis.attrs.Attrs.display(height=420, hidden=False) -> boolDisplay this object in jupyter.
class
wandb.apis.internal.ApiInternal proxy to the official internal API.
class
wandb.apis.paginator.PaginatorAn iterator for paginated objects from GraphQL requests.
method
wandb.apis.paginator.Paginator.cursor() -> str | NoneThe start cursor to use for the next fetched page.
method
wandb.apis.paginator.Paginator.more() -> boolWhether there are more pages to be fetched.
method
wandb.apis.paginator.Paginator.update_variables() -> NoneUpdate the query variables for the next page fetch.
class
wandb.apis.paginator.RelayPaginatorA Paginator for GQL relay-style nodes parsed via Pydantic.
class
wandb.apis.paginator.SizedPaginatorA Paginator for objects with a known total count.
class
wandb.apis.public.api.ApiUsed for querying the W&B server.
method
wandb.apis.public.api.Api.artifact(name:str, type:str | None=None)Returns a single artifact.
method
wandb.apis.public.api.Api.artifact_collection(type_name:str, name:str) -> ArtifactCollectionReturns a single artifact collection by type.
method
wandb.apis.public.api.Api.artifact_type(type_name:str, project:str | None=None) -> ArtifactTypeReturns the matching `ArtifactType`.
method
wandb.apis.public.api.Api.artifact_types(project:str | None=None, start:str | None=None) -> ArtifactTypesReturns a collection of matching artifact types.
method
wandb.apis.public.api.Api.artifact_versions(type_name, name, per_page=50)Deprecated.
method
wandb.apis.public.api.Api.artifacts(type_name:str, name:str, order:str | None=None, per_page:int=50, tags:list[str] | None=None, start:str | None=None) -> ArtifactsReturn an `Artifacts` collection.
method
wandb.apis.public.api.Api.automation(name:str, *entity:str | None=None) -> AutomationReturns the only Automation matching the parameters.
method
wandb.apis.public.api.Api.create_automation(obj:NewAutomation, *fetch_existing:bool=False, **kwargs:Unpack[WriteAutomationsKwargs]) -> AutomationCreate a new Automation.
method
wandb.apis.public.api.Api.create_project(name:str, entity:str) -> NoneCreate a new project.
method
wandb.apis.public.api.Api.create_registry(name:str, visibility:Literal['organization', 'restricted'], organization:str | None=None, description:str | None=None, artifact_types:list[str] | None=None) -> RegistryCreate a new registry.
method
wandb.apis.public.api.Api.create_run(*run_id:str | None=None, *project:str | None=None, *entity:str | None=None) -> public.RunCreate a new run.
method
wandb.apis.public.api.Api.create_team(team:str, admin_username:str | None=None) -> TeamCreate a new team.
method
wandb.apis.public.api.Api.create_user(email:str, admin:bool | None=False) -> UserCreate a new user.
method
wandb.apis.public.api.Api.default_entity() -> str | NoneReturns the default W&B entity.
method
wandb.apis.public.api.Api.delete_automation(obj:Automation | str) -> Literal[True]Delete an automation.
method
wandb.apis.public.api.Api.flush()Flush the local cache.
method
wandb.apis.public.api.Api.from_path(path:str)Return a run, sweep, project or report from a path.
method
wandb.apis.public.api.Api.integrations(entity:str | None=None, *per_page:int=50, *start:str | None=None) -> Iterator[Integration]Return an iterator of all integrations for an entity.
method
wandb.apis.public.api.Api.job(name:str | None, path:str | None=None) -> public.JobReturn a `Job` object.
method
wandb.apis.public.api.Api.list_jobs(entity:str, project:str) -> list[dict[str, Any]]Return a list of jobs, if any, for the given entity and project.
method
wandb.apis.public.api.Api.organization(name:str | None=None) -> OrganizationReturn the matching `Organization`.
method
wandb.apis.public.api.Api.project(name:str, entity:str | None=None) -> public.ProjectReturn the `Project` with the given name (and entity, if given).
method
wandb.apis.public.api.Api.projects(entity:str | None=None, per_page:int=200) -> public.ProjectsGet projects for a given entity.
method
wandb.apis.public.api.Api.registry(name:str, organization:str | None=None) -> RegistryReturn a registry given a registry name.
method
wandb.apis.public.api.Api.reports(path:str='', name:str | None=None, per_page:int=50) -> public.ReportsGet reports for a given project path.
method
wandb.apis.public.api.Api.run_queue(entity:str, name:str)Return the named `RunQueue` for entity.
method
wandb.apis.public.api.Api.team(team:str) -> TeamReturn the matching `Team` with the given name.
method
wandb.apis.public.api.Api.update_automation(obj:Automation, *create_missing:bool=False, **kwargs:Unpack[WriteAutomationsKwargs]) -> AutomationUpdate an existing automation.
method
wandb.apis.public.api.Api.user(username_or_email:str) -> User | NoneReturn a user from a username or email address.
method
wandb.apis.public.api.Api.user_agent() -> strReturns W&B public user agent.
method
wandb.apis.public.api.Api.users(username_or_email:str) -> list[User]Return all users from a partial username or email address query.
method
wandb.apis.public.api.Api.viewer() -> UserReturns the viewer object.
method
wandb.apis.public.artifacts.ArtifactCollection.artifacts(per_page:int=50, start:str | None=None) -> ArtifactsGet all artifacts in the collection.
method
wandb.apis.public.artifacts.ArtifactCollection.change_type(new_type:str) -> NoneDeprecated, change type directly with `save` instead.
method
wandb.apis.public.artifacts.ArtifactCollection.created_at() -> strThe creation date of the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.delete() -> NoneDelete the entire artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.description() -> str | NoneA description of the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.entity() -> strThe entity (user or team) that owns the project.
method
wandb.apis.public.artifacts.ArtifactCollection.id() -> strThe unique identifier of the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.is_sequence() -> boolReturn whether the artifact collection is a sequence.
method
wandb.apis.public.artifacts.ArtifactCollection.name() -> strThe name of the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.project() -> strThe project that contains the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.save() -> NonePersist any changes made to the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.tags() -> list[str]The tags associated with the artifact collection.
method
wandb.apis.public.artifacts.ArtifactCollection.type()Returns the type of the artifact collection.
class
wandb.apis.public.artifacts.ArtifactCollectionsArtifact collections of a specific type in a project.
class
wandb.apis.public.artifacts.ArtifactFilesA paginator for files in an artifact.
method
wandb.apis.public.artifacts.ArtifactFiles.path() -> list[str]Returns the path of the artifact.
method
wandb.apis.public.artifacts.ArtifactType.collection(name:str) -> ArtifactCollectionGet a specific artifact collection by name.
method
wandb.apis.public.artifacts.ArtifactType.id() -> strThe unique identifier of the artifact type.
method
wandb.apis.public.artifacts.ArtifactType.load() -> ArtifactTypeFragmentLoad the artifact type attributes from W&B.
method
wandb.apis.public.artifacts.ArtifactType.name() -> strThe name of the artifact type.
class
wandb.apis.public.artifacts.ProjectArtifactCollectionsArtifact collections in a project.
class
wandb.apis.public.files.FileFile saved to W&B.
method
wandb.apis.public.files.File.delete() -> NoneDelete the file from the W&B server.
method
wandb.apis.public.files.File.path_uri() -> strReturns the URI path to the file in the storage bucket.
method
wandb.apis.public.files.File.size() -> intReturns the size of the file in bytes.
class
wandb.apis.public.files.FilesA lazy iterator over a collection of `File` objects.
method
wandb.apis.public.files.Files.convert_objects() -> list[File]Converts GraphQL edges to File objects.
method
wandb.apis.public.files.Files.cursor() -> str | NoneReturns the cursor position for pagination of file results.
method
wandb.apis.public.files.Files.more() -> boolReturns whether there are more files to fetch.
method
wandb.apis.public.files.Files.update_variables() -> NoneUpdates the GraphQL query variables for pagination.
class
wandb.apis.public.history.HistoryScanIterator for scanning complete run history.
method
wandb.apis.public.history.HistoryScan.max_step() -> intThe highest step that can be yielded by this scan.
class
wandb.apis.public.integrations.IntegrationsA lazy iterator of `Integration` objects.
class
wandb.apis.public.integrations.SlackIntegrationsA lazy iterator of `SlackIntegration` objects.
class
wandb.apis.public.integrations.WebhookIntegrationsA lazy iterator of `WebhookIntegration` objects.
method
wandb.apis.public.jobs.Job.name() -> strThe name of the job.
method
wandb.apis.public.jobs.Job.set_entrypoint(entrypoint:list[str]) -> NoneSet the entrypoint for the job.
class
wandb.apis.public.jobs.QueuedRunA single queued run associated with an entity and project.
method
wandb.apis.public.jobs.QueuedRun.delete(delete_artifacts:bool=False) -> NoneDelete the given queued run from the wandb backend.
method
wandb.apis.public.jobs.QueuedRun.entity() -> strThe entity associated with the queued run.
method
wandb.apis.public.jobs.QueuedRun.id() -> strThe id of the queued run.
method
wandb.apis.public.jobs.QueuedRun.project() -> strThe project associated with the queued run.
method
wandb.apis.public.jobs.QueuedRun.queue_name() -> strThe name of the queue.
method
wandb.apis.public.jobs.QueuedRun.state() -> strThe state of the queued run.
class
wandb.apis.public.jobs.RunQueueClass that represents a run queue in W&B.
method
wandb.apis.public.jobs.RunQueue.access() -> RunQueueAccessTypeThe access level of the queue.
method
wandb.apis.public.jobs.RunQueue.create(name:str, resource:RunQueueResourceType, entity:str | None=None, prioritization_mode:RunQueuePrioritizationMode | None=None, config:dict | None=None, template_variables:dict | None=None) -> RunQueueCreate a RunQueue.
method
wandb.apis.public.jobs.RunQueue.default_resource_config() -> dict[str, Any]The default configuration for resources.
method
wandb.apis.public.jobs.RunQueue.delete() -> NoneDelete the run queue from the wandb backend.
method
wandb.apis.public.jobs.RunQueue.entity() -> strThe entity that owns the queue.
method
wandb.apis.public.jobs.RunQueue.external_links() -> dict[str, str]External resource links for the queue.
method
wandb.apis.public.jobs.RunQueue.id() -> strThe id of the queue.
method
wandb.apis.public.jobs.RunQueue.items() -> list[QueuedRun]Up to the first 100 queued runs.
method
wandb.apis.public.jobs.RunQueue.name() -> strThe name of the queue.
method
wandb.apis.public.jobs.RunQueue.prioritization_mode() -> RunQueuePrioritizationModeThe prioritization mode of the queue.
method
wandb.apis.public.jobs.RunQueue.template_variables() -> dict[str, Any]Variables for resource templates.
method
wandb.apis.public.jobs.RunQueue.type() -> RunQueueResourceTypeThe resource type for execution.
class
wandb.apis.public.organizations.OrganizationA read-only representation of a W&B organization.
class
wandb.apis.public.projects.ProjectA project is a namespace for runs.
method
wandb.apis.public.projects.Project.artifacts_types(per_page:int=50) -> public.ArtifactTypesReturns all artifact types associated with this project.
method
wandb.apis.public.projects.Project.owner() -> public.UserReturns the project owner as a User object.
method
wandb.apis.public.projects.Project.path() -> list[str]Returns the path of the project.
method
wandb.apis.public.projects.Project.to_html(height:int=420, hidden:bool=False) -> strGenerate HTML containing an iframe displaying this project.
method
wandb.apis.public.projects.Project.url() -> strReturns the URL of the project.
class
wandb.apis.public.projects.ProjectsAn lazy iterator of `Project` objects.
method
wandb.apis.public.projects.Projects.length() -> NoneReturns the total number of projects.
class
wandb.apis.public.query_generator.QueryGeneratorQueryGenerator is a helper object to write filters for runs.
method
wandb.apis.public.query_generator.QueryGenerator.format_order_key(key:str)Format a key for sorting.
class
wandb.apis.public.registries._members.MemberKindIdentifies what kind of object a registry member is.
class
wandb.apis.public.registries._members.MemberRoleIdentifies the role of a member.
method
wandb.apis.public.registries._utils.Visibility.from_gql(value:str) -> VisibilityConvert a GraphQL `visibility` value to a Visibility enum.
method
wandb.apis.public.registries._utils.Visibility.from_python(name:str) -> VisibilityConvert a visibility string to a `Visibility` enum.
func
wandb.apis.public.registries._utils.fetch_org_entity_from_organization(service_api:ServiceApi, organization:str) -> strFetch the org entity from the organization.
func
wandb.apis.public.registries._utils.prepare_artifact_types_input(artifact_types:Collection[str] | None) -> list[dict[str, str]] | NoneFormat the artifact types for the GQL input.
class
wandb.apis.public.registries.registries_search.RegistriesA lazy iterator of `Registry` objects.
class
wandb.apis.public.registries.registries_search.VersionsAn lazy iterator of `Artifact` objects in a Registry.
class
wandb.apis.public.registries.registry.RegistryA single registry in the Registry.
method
wandb.apis.public.registries.registry.Registry.add_members(*members:User | UserMember | Team | TeamMember | str) -> SelfAdds users or teams to this registry.
method
wandb.apis.public.registries.registry.Registry.create(api:Api, organization:str, name:str, visibility:Literal['organization', 'restricted'], description:str | None=None, artifact_types:list[str] | None=None) -> SelfCreate a new registry.
method
wandb.apis.public.registries.registry.Registry.created_at() -> strTimestamp of when the registry was created.
method
wandb.apis.public.registries.registry.Registry.delete() -> NoneDelete the registry.
method
wandb.apis.public.registries.registry.Registry.description() -> str | NoneDescription of the registry.
method
wandb.apis.public.registries.registry.Registry.entity() -> strOrganization entity of the registry.
method
wandb.apis.public.registries.registry.Registry.id() -> strThe unique ID for this registry.
method
wandb.apis.public.registries.registry.Registry.load() -> NoneLoad registry attributes from the backend.
method
wandb.apis.public.registries.registry.Registry.organization() -> strOrganization name of the registry.
method
wandb.apis.public.registries.registry.Registry.remove_members(*members:User | UserMember | Team | TeamMember | str) -> SelfRemoves users or teams from this registry.
method
wandb.apis.public.registries.registry.Registry.save() -> NoneSave registry attributes to the backend.
method
wandb.apis.public.registries.registry.Registry.updated_at() -> str | NoneTimestamp of when the registry was last updated.
method
wandb.apis.public.registries.registry.Registry.visibility() -> Literal['organization', 'restricted']Visibility of the registry.
class
wandb.apis.public.reports.BetaReportBetaReport is a class associated with reports created in W&B.
method
wandb.apis.public.reports.BetaReport.runs(section:dict[str, Any], per_page:int=50, only_selected:bool=True) -> public.RunsGet runs associated with a section of the report.
method
wandb.apis.public.reports.BetaReport.to_html(height:int=1024, hidden:bool=False) -> strGenerate HTML containing an iframe displaying this report.
class
wandb.apis.public.reports.ReportsReports is a lazy iterator of `BetaReport` objects.
method
wandb.apis.public.reports.Reports.convert_objects() -> list[BetaReport]Converts GraphQL edges to File objects.
method
wandb.apis.public.reports.Reports.more() -> boolReturns whether there are more files to fetch.
method
wandb.apis.public.reports.Reports.update_variables() -> NoneUpdates the GraphQL query variables for pagination.
class
wandb.apis.public.runhistory.downloads.DownloadHistoryResultResult of downloading a run's history exports.
class
wandb.apis.public.runhistory.downloads.IncompleteRunHistoryErrorRaised when run history has incomplete history.
class
wandb.apis.public.runs.AgentRunsA lazy iterator of `Run` objects for a single sweep agent.
class
wandb.apis.public.runs.RunA single run associated with an entity and project.
method
wandb.apis.public.runs.Run.config() -> dict[str, Any]Get run config.
method
wandb.apis.public.runs.Run.create(api:public.Api, run_id:str | None=None, project:str | None=None, entity:str | None=None, state:Literal['running', 'pending']='running') -> RunCreate a run for the given project.
method
wandb.apis.public.runs.Run.delete(delete_artifacts:bool=False) -> NoneDelete the given run from the wandb backend.
method
wandb.apis.public.runs.Run.entity() -> strThe entity associated with the run.
method
wandb.apis.public.runs.Run.file(name:str) -> public.FileReturn the path of a file with a given name in the artifact.
method
wandb.apis.public.runs.Run.id() -> strThe unique identifier for the run.
method
wandb.apis.public.runs.Run.json_config() -> strReturn the run config as a JSON string.
method
wandb.apis.public.runs.Run.lastHistoryStep() -> intReturns the last step logged in the run's history.
method
wandb.apis.public.runs.Run.load(force:bool=False) -> dict[str, Any]Load run data using appropriate fragment based on lazy mode.
method
wandb.apis.public.runs.Run.log_artifact(artifact:wandb.Artifact, aliases:Collection[str] | None=None, tags:Collection[str] | None=None) -> wandb.ArtifactDeclare an artifact as output of a run.
method
wandb.apis.public.runs.Run.logged_artifacts(per_page:int=100) -> public.RunArtifactsFetches all artifacts logged by this run.
method
wandb.apis.public.runs.Run.metadata() -> dict[str, Any] | NoneMetadata about the run from wandb-metadata.json.
method
wandb.apis.public.runs.Run.name() -> str | NoneThe name of the run.
method
wandb.apis.public.runs.Run.path() -> list[str]The path of the run.
method
wandb.apis.public.runs.Run.rawconfig() -> dict[str, Any]Get raw run config including internal keys.
method
wandb.apis.public.runs.Run.save() -> NonePersist changes to the run object to the W&B backend.
method
wandb.apis.public.runs.Run.state() -> strThe state of the run.
method
wandb.apis.public.runs.Run.stop() -> NoneRequest that this run stop gracefully.
method
wandb.apis.public.runs.Run.storage_id() -> strThe unique storage identifier for the run.
method
wandb.apis.public.runs.Run.summary() -> HTTPSummaryGet run summary metrics.
method
wandb.apis.public.runs.Run.summary_metrics() -> dict[str, Any]Get run summary metrics.
method
wandb.apis.public.runs.Run.sweep() -> public.Sweep | NoneThe sweep associated with this run.
method
wandb.apis.public.runs.Run.sweep_name() -> str | NoneGet sweep name.
method
wandb.apis.public.runs.Run.system_metrics() -> dict[str, Any]Get run system metrics.
method
wandb.apis.public.runs.Run.to_html(height:int=420, hidden:bool=False) -> strGenerate HTML containing an iframe displaying this run.
method
wandb.apis.public.runs.Run.update() -> NonePersist changes to the run object to the wandb backend.
method
wandb.apis.public.runs.Run.update_state(state:str) -> boolUpdate the state of a run.
method
wandb.apis.public.runs.Run.upload_file(path:str, root:str='.') -> public.FileUpload a local file to W&B, associating it with this run.
method
wandb.apis.public.runs.Run.url() -> strThe URL of the run.
method
wandb.apis.public.runs.Run.use_artifact(artifact:wandb.Artifact, use_as:str | None=None) -> wandb.ArtifactDeclare an artifact as an input to a run.
method
wandb.apis.public.runs.Run.used_artifacts(per_page:int=100) -> public.RunArtifactsFetches artifacts explicitly used by this run.
method
wandb.apis.public.runs.Run.username() -> strThis API is deprecated.
method
wandb.apis.public.runs.Run.wait_until_finished() -> NoneCheck the state of the run until it is finished.
class
wandb.apis.public.runs.RunNotFoundErrorRaised when a run's data is not able to be loaded.
method
wandb.apis.public.runs.Runs.convert_objects() -> list[Run]Converts GraphQL edges to Runs objects.
method
wandb.apis.public.runs.Runs.more() -> boolReturns whether there are more runs to fetch.
method
wandb.apis.public.runs.Runs.upgrade_to_full() -> NoneUpgrade this Runs collection from lazy to full mode.
class
wandb.apis.public.summary.SummaryStore summary metrics (eg.
class
wandb.apis.public.summary.SummarySubDictNested dict-like object.
method
wandb.apis.public.sweeps.Agent.runs(per_page:int=50) -> AgentRunsReturn a paginated collection of runs executed by this agent.
class
wandb.apis.public.sweeps.SweepThe set of runs associated with the sweep.
method
wandb.apis.public.sweeps.Sweep.agent(agent_id:str) -> AgentQuery an agent by ID for this sweep.
method
wandb.apis.public.sweeps.Sweep.agents() -> list[Agent]Query the list of all agents for this sweep.
method
wandb.apis.public.sweeps.Sweep.enqueue_run(config:dict, display_name:str | None=None) -> strEnqueue a run for the sweep.
method
wandb.apis.public.sweeps.Sweep.entity() -> strThe entity associated with the sweep.
method
wandb.apis.public.sweeps.Sweep.name()The name of the sweep.
method
wandb.apis.public.sweeps.Sweep.order()Return the order key for the sweep.
method
wandb.apis.public.sweeps.Sweep.path()Returns the path of the project.
method
wandb.apis.public.sweeps.Sweep.to_html(height:int=420, hidden:bool=False) -> strGenerate HTML containing an iframe displaying this sweep.
method
wandb.apis.public.sweeps.Sweep.url()The URL of the sweep.
method
wandb.apis.public.sweeps.Sweep.username() -> strDeprecated.
class
wandb.apis.public.sweeps.SweepsA lazy iterator over a collection of `Sweep` objects.
method
wandb.apis.public.sweeps.Sweeps.cursor() -> str | NoneReturns the cursor for the next page of sweeps.
method
wandb.apis.public.sweeps.Sweeps.more() -> boolReturns whether there are more sweeps to fetch.
class
wandb.apis.public.teams.MemberA member of a team.
method
wandb.apis.public.teams.Member.delete()Remove a member from a team.
class
wandb.apis.public.teams.TeamA class that represents a W&B team.
method
wandb.apis.public.teams.Team.create(api:Api, team:str, admin_username:str | None=None) -> TeamCreate a new team.
method
wandb.apis.public.teams.Team.create_service_account(description:str) -> Member | NoneCreate a service account for the team.
method
wandb.apis.public.teams.Team.invite(username_or_email:str, admin:bool=False) -> boolInvite a user to a team.
method
wandb.apis.public.teams.Team.load(force:bool=False) -> dict[str, Any]Return members that belong to a team.
class
wandb.apis.public.users.UserA user on a W&B instance.
method
wandb.apis.public.users.User.api_keys() -> list[str]Names of the user's API keys.
method
wandb.apis.public.users.User.create(api:Api, email:str, admin:bool | None=False) -> SelfCreate a new user.
method
wandb.apis.public.users.User.delete_api_key(api_key:str) -> boolDelete a user's API key.
method
wandb.apis.public.users.User.generate_api_key(description:str | None=None) -> str | NoneGenerate a new API key.
method
wandb.apis.public.users.User.teams() -> list[str]Names of the user's teams.
method
wandb.apis.public.users.User.user_api() -> Api | NoneA `wandb.Api` instance using the user's credentials.
func
wandb.apis.public.utils.parse_org_from_registry_path(path:str, path_type:PathType) -> strParse the org from a registry path.
func
wandb.apis.public.utils.parse_s3_url_to_s3_uri(url) -> strConvert an S3 HTTP(S) URL to an S3 URI.
class
wandb.automations._run_metric_filters.AggSupported run metric aggregation operations.
class
wandb.automations._run_metric_filters.ChangeDirDescribes the direction of the metric change.
class
wandb.automations._run_state_filters.StateOperandDescriptor type, returned on accessing `RunEvent.state`.
method
wandb.automations._run_state_filters.StateOperand.eq(state:str | ReportedRunState) -> StateFilterReturns a filter that watches for `run_state == state`.
method
wandb.automations._run_state_filters.StateOperand.in_(states:Iterable[str | ReportedRunState]) -> StateFilterReturns a filter that watches for `run_state in states`.
class
wandb.automations._utils.ActionSpecInputInput action spec for saving an automation.
class
wandb.automations._validators.LenientStrEnumA string enum allowing for case-insensitive lookups by value.
func
wandb.automations._validators.ensure_json(v:Any) -> AnyIn case the incoming value isn't serialized JSON, reserialize it.
func
wandb.automations._validators.parse_input_action(v:Any) -> AnyIf necessary (and possible), convert the object to an input action.
func
wandb.automations._validators.parse_saved_action(v:Any) -> AnyIf necessary (and possible), convert the object to a saved action.
func
wandb.automations._validators.wrap_mutation_event_filter(f:MongoLikeFilter) -> MongoLikeFilterWrap filters as `{"$or": [{"$and": [<original_filter>]}]}`.
class
wandb.automations.actions.ActionTypeThe type of action triggered by an automation.
class
wandb.automations.actions.DoNothingDefines an automation action that intentionally does nothing.
class
wandb.automations.actions.SendWebhookDefines an automation action that sends a webhook request.
class
wandb.automations.automations.NewAutomationA new automation to be created.
class
wandb.automations.events.EventTypeThe type of event that triggers an automation.
class
wandb.automations.events.OnAddArtifactAliasA new alias is assigned to an artifact.
class
wandb.automations.events.OnAddArtifactTagA new tag is assigned to an artifact version.
class
wandb.automations.events.OnAddCollectionTagA new tag is assigned to an artifact collection.
class
wandb.automations.events.OnCreateArtifactA new artifact is created.
class
wandb.automations.events.OnLinkArtifactA new artifact is linked to a collection.
class
wandb.automations.events.OnRemoveArtifactTagA tag is removed from an artifact version.
class
wandb.automations.events.OnRemoveCollectionTagA tag is removed from an artifact collection.
class
wandb.automations.events.OnRunMetricA run metric satisfies a user-defined condition.
class
wandb.automations.events.OnRunStateA run state changes.
class
wandb.automations.events.OnUnlinkArtifactAn artifact version is unlinked from a collection.
method
wandb.automations.events.RunEvent.metric(name:str) -> MetricValDefine a metric filter condition.
class
wandb.automations.events.SavedEventA triggering event from a saved automation.
class
wandb.automations.scopes.OrgScopeA scope defined by an org `Entity`.
class
wandb.automations.scopes.ProjectScopeA scope defined by a `Project`.
class
wandb.automations.scopes.ScopeTypeThe kind of scope that triggers an automation.
class
wandb.automations.scopes.TeamScopeA scope defined by a team `Entity`.
func
wandb.cli.beta.beta(ctx:click.Context) -> NoneBeta versions of wandb CLI commands.
func
wandb.cli.beta.start(idle_timeout:str) -> NoneStart a detached wandb-core service.
func
wandb.cli.beta.stop() -> NoneStop a detached wandb-core service.
func
wandb.cli.beta_core.start(*idle_timeout:str) -> NoneStart a detached wandb-core service.
func
wandb.cli.beta_core.stop(*exit_code:int=0) -> NoneStop a detached wandb-core service addressed by WANDB_SERVICE.
class
wandb.cli.beta_sandbox.SandboxGroupClick group for sandbox commands.
func
wandb.cli.beta_sandbox.exec_in_sandbox(sandbox_id:str, command_args:tuple[str, ...], cwd:str | None, timeout_seconds:float | None) -> NoneExecute a command in a sandbox.
func
wandb.cli.beta_sandbox.list_sandboxes(status:str | None, include_stopped:bool, tags:tuple[str, ...], output_format:str) -> NoneList sandboxes.
func
wandb.cli.beta_sandbox.logs(sandbox_id:str, follow:bool, tail_lines:int | None, since_time:datetime | None, timestamps:bool) -> NoneStream logs from a sandbox's main process.
func
wandb.cli.beta_sandbox.sandbox() -> NoneManage W&B sandboxes.
func
wandb.cli.beta_sandbox.shell(sandbox_id:str, cmd:str) -> NoneOpen an interactive shell in a sandbox.
func
wandb.cli.clean.clean(ctx:click.Context, min_hours:int, include_unsynced:bool, force:bool) -> NoneRemove synced run data.
func
wandb.cli.cli.agent(ctx, project, entity, count, forward_signals, term_timeout, sweep_id)Start a sweep agent.
func
wandb.cli.cli.cleanup(target_size, remove_temp)Reduce the local artifact cache size.
func
wandb.cli.cli.disabled(service)Disable W&B functionality.
func
wandb.cli.cli.get(path, root, type)Download an artifact from W&B by its path.
func
wandb.cli.cli.ls(path, type)List all artifacts in a W&B project.
func
wandb.cli.cli.online()Re-enable cloud syncing for W&B runs.
func
wandb.cli.cli.projects(entity, display=True)List projects for the current entity.
func
wandb.cli.cli.pull(run, project, entity)Download files from a W&B run.
func
wandb.cli.cli.put(path, name, description, type, alias, run_id, resume, skip_cache, policy)Upload an artifact to W&B.
func
wandb.cli.cli.stop()Stop a running local W&B server.
class
wandb.cli.leet.DefaultCommandGroupA click Group that falls through to a default command.
class
wandb.cli.leet.LaunchConfigConfiguration for launching LEET.
class
wandb.cli.leet.LocalLaunchConfigConfiguration for launching LEET.
class
wandb.cli.leet.RemoteLaunchConfigConfiguration for launching LEET against a remote run.
func
wandb.cli.leet.config() -> NoneEdit LEET configuration.
func
wandb.cli.leet.launch(path:str | None, pprof:str) -> NeverLaunch the LEET TUI.
func
wandb.cli.leet.launch_config() -> NeverLaunch the LEET configuration editor.
func
wandb.cli.leet.launch_symon(pprof:str='', interval:str='') -> NeverLaunch the standalone system monitor.
func
wandb.cli.leet.leet() -> NoneW&B LEET: the Lightweight Experiment Exploration Tool.
func
wandb.cli.leet.run(path:str | None=None, pprof:str='') -> NoneLaunch the LEET TUI.
func
wandb.cli.leet.symon(pprof:str='', interval:str='') -> NoneLaunch the standalone system monitor.
class
wandb.docker.DockerErrorRaised when attempting to execute a docker command.
func
wandb.docker.get_image_uid(image_name:str) -> intRetrieve the image default uid through brute force.
func
wandb.docker.image_id(image_name:str) -> str | NoneRetrieve the image id from the local docker daemon or remote registry.
func
wandb.docker.image_id_from_registry(image_name:str) -> str | NoneQuery the image manifest to get its full ID including the digest.
func
wandb.docker.is_buildx_installed() -> boolReturn `True` if docker buildx is installed and working.
func
wandb.docker.is_docker_installed() -> boolReturn `True` if docker is installed and working, else `False`.
func
wandb.docker.login(username:str, password:str, registry:str) -> str | NoneLogin to a registry.
class
wandb.docker.names.InvalidRepositoryErrorThe given string is not a valid repository name.
func
wandb.docker.push(image:str, tag:str) -> str | NonePush an image to a remote registry.
func
wandb.docker.shell(cmd:list[str]) -> str | NoneSimple wrapper for calling docker,.
func
wandb.docker.tag(image_name:str, tag:str) -> str | NoneTag an image.
func
wandb.env.strtobool(val:str) -> boolConvert a string representation of truth to true or false.
class
wandb.errors.errors.AuthenticationErrorRaised when authentication fails.
class
wandb.errors.errors.CommErrorError communicating with W&B servers.
class
wandb.errors.errors.ErrorBase W&B Error.
class
wandb.errors.errors.UnsupportedErrorRaised when trying to use a feature that is not supported.
class
wandb.errors.errors.UsageErrorRaised when an invalid usage of the SDK API is detected.
class
wandb.errors.errors.WandbCoreNotAvailableErrorRaised when wandb core is not available.
class
wandb.errors.links.RegistryA collection of URLs that can be associated with a name.
method
wandb.errors.links.Registry.description(name:str) -> strGet the description associated with the given name.
method
wandb.errors.links.Registry.url(name:str) -> strGet the URL associated with the given name.
class
wandb.errors.term.DynamicBlockA handle to a changeable text area in the terminal.
method
wandb.errors.term.DynamicBlock.set_text(text:str, prefix:bool=True) -> NoneReplace the text in this block.
class
wandb.errors.term.SupportsLeveledLoggingPortion of the standard logging.Logger used in this module.
func
wandb.errors.term.can_use_terminput() -> boolReturns True if terminput won't raise a NotATerminalError.
func
wandb.errors.term.confirm(prompt:str) -> boolPrompt the user with a yes/no question.
func
wandb.errors.term.termerror(string:str, newline:bool=True, repeat:bool=True, prefix:bool=True) -> NoneLog an error to stderr.
func
wandb.errors.term.terminput(prompt:str, *timeout:float | None=None, *hide:bool=False) -> strPrompt the user for input.
func
wandb.errors.term.termlog(string:str='', newline:bool=True, repeat:bool=True, prefix:bool=True) -> NoneLog an informational message to stderr.
func
wandb.errors.term.termsetup(settings:wandb.Settings, logger:SupportsLeveledLogging | None) -> NoneConfigure the global logging functions.
func
wandb.errors.term.termwarn(string:str, newline:bool=True, repeat:bool=True, prefix:bool=True) -> NoneLog a warning to stderr.
class
wandb.errors.util.ProtobufErrorHandlerConverts protobuf errors to exceptions and vice versa.
method
wandb.errors.util.ProtobufErrorHandler.from_exception(exc:Error) -> pb.ErrorInfoConvert an wandb error to a protobuf error message.
method
wandb.errors.util.ProtobufErrorHandler.to_exception(error:pb.ErrorInfo) -> Error | NoneConvert a protobuf error to an exception.
class
wandb.errors.warnings.WandbWarningBase W&B Warning.
class
wandb.filesync.dir_watcher.PolicyEndThis policy only updates at the end of the run.
class
wandb.filesync.dir_watcher.PolicyLiveEvent handler that uploads respecting throttling.
class
wandb.filesync.dir_watcher.PolicyNowThis policy only uploads files now.
class
wandb.filesync.step_prepare.StepPrepareA thread that batches requests to our file prepare API.
method
wandb.integration.dspy.dspy.WandbDSPyCallback.on_evaluate_end(call_id:str, outputs:Any | None, exception:Exception | None=None) -> NoneHandle end of a DSPy evaluation call.
method
wandb.integration.dspy.dspy.WandbDSPyCallback.on_evaluate_start(call_id:str, instance:Any, inputs:dict[str, Any]) -> NoneHandle start of a DSPy evaluation call.
class
wandb.integration.fastai.WandbCallbackCallback for saving model topology, losses & metrics.
method
wandb.integration.fastai.WandbCallback.on_train_begin(**kwargs:Any) -> NoneCall watch method to log model topology, gradients & weights.
method
wandb.integration.fastai.WandbCallback.on_train_end(**kwargs:Any) -> NoneLoad the best model.
func
wandb.integration.gym.monitor()Monitor a gym environment.
class
wandb.integration.keras.callbacks.metrics_logger.WandbMetricsLoggerLogger that sends system metrics to W&B.
method
wandb.integration.keras.callbacks.metrics_logger.WandbMetricsLogger.on_epoch_end(epoch:int, logs:dict[str, Any] | None=None) -> NoneCalled at the end of an epoch.
func
wandb.integration.kfp._patch_utils.unpatch(module_name:str) -> NoneRestore original functions previously replaced by `patch`.
func
wandb.integration.kfp.kfp_patch.patch_kfp() -> NoneApply KFP monkey-patches for the detected KFP version.
func
wandb.integration.kfp.kfp_patch.unpatch_kfp() -> NoneUndo all KFP monkey-patches applied by `patch_kfp`.
func
wandb.integration.kfp.wandb_log_v2.wandb_log(func:Callable | None=None) -> CallableWrap a KFP v2 component function and log to W&B.
func
wandb.integration.lightgbm.wandb_callback(log_params:bool=True, define_metric:bool=True) -> CallableAutomatically integrates LightGBM with wandb.
func
wandb.integration.metaflow.data_pandas.is_dataframe(data:Any) -> TypeIs[pd.DataFrame]Returns whether the data is a Pandas DataFrame.
func
wandb.integration.metaflow.data_pandas.track_dataframe(name:str, data:pd.DataFrame, run:wandb.Run | None, testing:bool=False) -> str | NoneLog a DataFrame output as an artifact.
func
wandb.integration.metaflow.data_pandas.use_dataframe(name:str, run:wandb.Run | None, testing:bool=False) -> str | NoneLog a dependency on a DataFrame input.
func
wandb.integration.metaflow.data_pytorch.is_nn_module(data:Any) -> TypeIs[nn.Module]Returns whether the data is a PyTorch nn.Module.
func
wandb.integration.metaflow.data_pytorch.track_nn_module(name:str, data:nn.Module, run:wandb.Run | None, testing:bool=False) -> str | NoneLog a PyTorch model output as an artifact.
func
wandb.integration.metaflow.data_pytorch.use_nn_module(name:str, run:wandb.Run | None, testing:bool=False) -> str | NoneLog a dependency on a PyTorch model input.
func
wandb.integration.metaflow.data_sklearn.is_estimator(data:Any) -> TypeIs[BaseEstimator]Returns whether the data is an sklearn BaseEstimator.
func
wandb.integration.metaflow.data_sklearn.track_estimator(name:str, data:BaseEstimator, run:wandb.Run | None, testing:bool=False) -> str | NoneLog an sklearn estimator output as an artifact.
func
wandb.integration.metaflow.data_sklearn.use_estimator(name:str, run:wandb.Run | None, testing:bool=False) -> str | NoneLog a dependency on an sklearn estimator.
class
wandb.integration.metaflow.errors.MissingDependencyErrorAn optional dependency is missing.
method
wandb.integration.metaflow.errors.MissingDependencyError.warn() -> NonePrint a warning for the problem.
func
wandb.integration.prodigy.prodigy.create_table(data)Create a W&B Table.
func
wandb.integration.prodigy.prodigy.named_entity(docs)Create a named entity visualization.
class
wandb.integration.sacred.WandbObserverLog sacred experiment data to W&B.
method
wandb.integration.sacred.WandbObserver.resource_event(filename)TODO: Maintain resources list.
func
wandb.integration.sagemaker.config.is_using_sagemaker() -> boolReturns whether we're in a SageMaker environment.
func
wandb.integration.sagemaker.config.parse_sm_config() -> dict[str, Any]Parses SageMaker configuration.
func
wandb.integration.sagemaker.resources.parse_sm_secrets() -> dict[str, str]We read our api_key from secrets.env in SageMaker.
func
wandb.integration.sagemaker.resources.set_global_settings(settings:wandb.Settings) -> NoneSet global W&B settings based on the SageMaker environment.
func
wandb.integration.sagemaker.resources.set_run_id(run_settings:wandb.Settings) -> boolSet a run ID and group when using SageMaker.
class
wandb.integration.sb3.sb3.WandbCallbackCallback for logging experiments to Weights and Biases.
func
wandb.integration.tensorboard.log.tf_summary_to_dict(tf_summary_str_or_pb:Any, namespace:str='') -> dict[str, Any] | NoneConvert a Tensorboard Summary to a dictionary.
class
wandb.integration.torch.wandb_torch.TorchHistoryHistory methods specific to PyTorch.
method
wandb.integration.torch.wandb_torch.TorchHistory.add_log_parameters_hook(module:Module, name:str='', prefix:str='', log_freq:int=0) -> NoneThis instruments hooks into the pytorch module.
func
wandb.integration.torch.wandb_torch.log_track_init(log_freq:int) -> list[int]Create tracking structure used by log_track_update.
class
wandb.integration.ultralytics.callback.WandBUltralyticsCallbackStateful callback for logging to W&B.
func
wandb.integration.weave.interface.active_run_path() -> RunPath | NoneReturns the path of an initialized, unfinished run.
func
wandb.integration.weave.weave.init_weave(entity:str | None, project:str | None) -> NoneInitialize weave for a W&B entity/project.
method
wandb.integration.xgboost.xgboost.WandbCallback.after_iteration(model:xgb.Booster, epoch:int, evals_log:_EvalsLog) -> boolRun after each iteration.
method
wandb.integration.xgboost.xgboost.WandbCallback.after_training(model:xgb.Booster) -> xgb.BoosterRun after training is finished.
method
wandb.integration.xgboost.xgboost.WandbCallback.before_training(model:xgb.Booster) -> xgb.BoosterRun before training is finished.
method
wandb.jupyter.Notebook.probe_ipynb()Return notebook as dict or None.
func
wandb.jupyter.display_if_magic_is_used(run:wandb.Run) -> boolDisplay a run's page if the cell has the %%wandb cell magic.
func
wandb.jupyter.notebook_metadata(silent:bool) -> dict[str, str]Attempt to query jupyter for the path and name of the notebook file.
func
wandb.plot.bar.bar(table:wandb.Table, label:str, value:str, title:str='', split_table:bool=False) -> CustomChartConstructs a bar chart from a wandb.Table of data.
func
wandb.plot.histogram.histogram(table:wandb.Table, value:str, title:str='', split_table:bool=False) -> CustomChartConstructs a histogram chart from a W&B Table.
func
wandb.plot.line.line(table:wandb.Table, x:str, y:str, stroke:str | None=None, title:str='', split_table:bool=False) -> CustomChartConstructs a customizable line chart.
func
wandb.plot.line_series.line_series(xs:Iterable[Iterable[Any]] | Iterable[Any], ys:Iterable[Iterable[Any]], keys:Iterable[str] | None=None, title:str='', xname:str='x', split_table:bool=False) -> CustomChartConstructs a line series chart.
func
wandb.plot.scatter.scatter(table:wandb.Table, x:str, y:str, title:str='', split_table:bool=False) -> CustomChartConstructs a scatter plot from a wandb.Table of data.
func
wandb.sandbox._auth.override_sandbox_entity(entity:str | None=None) -> Generator[None]Temporarily override the sandbox entity for sandbox auth.
class
wandb.sandbox._sandbox.SandboxW&B sandbox wrapper with W&B Serverless policy guardrails.
class
wandb.sandbox._sandbox.SessionW&B sandbox session wrapper with W&B Serverless policy guardrails.
class
wandb.sandbox._secret.SecretW&B sandbox secret with a default team secret store.
func
wandb.sdk.artifacts._gqlutils.org_info_from_entity(service_api:ServiceApi, entity:str) -> FetchOrgInfoFromEntityEntity | NoneReturns the organization info for a given entity.
func
wandb.sdk.artifacts._gqlutils.server_supports(service_api:ServiceApi, feature:str | int) -> boolReturn whether the current server supports the given feature.
class
wandb.sdk.artifacts._internal_artifact.InternalArtifactAn Artifact intended for internal use only.
func
wandb.sdk.artifacts._internal_artifact.sanitize_artifact_name(name:str) -> strSanitize the string to satisfy constraints on artifact names.
class
wandb.sdk.artifacts._models.manifest.ArtifactManifestV1DataData model for the v1 artifact manifest.
class
wandb.sdk.artifacts._models.registry.RegistryDataTransport-free model for local `Registry` data.
method
wandb.sdk.artifacts._validators.ArtifactPath.from_str(path:str) -> SelfInstantiate by parsing a string artifact path.
class
wandb.sdk.artifacts._validators.FullArtifactPathSame as ArtifactPath, but with all parts required.
func
wandb.sdk.artifacts._validators.validate_aliases(aliases:Iterable[str] | str) -> list[str]Validate the artifact aliases and return them as a list.
About this data
These signatures were extracted from the public source of wandb/wandb
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.