caution
You're viewing docs for the deprecated Fetcher API.
We recommend upgrading to the new Query API.
with_api_token()
Python package: neptune-fetcher
Copies the context and overwrites the api_token
field with the provided Neptune API token.
Parameters
Example
Get the global context, change the Neptune API token, and use the new context:
import neptune_fetcher.alpha as npt
other_account = npt.get_context().with_api_token("SomeOtherNeptuneApiToken")
npt.list_experiments(experiments=r"exp_.*", context=other_account)