Skip to main content
App version: 3.20251006
caution

You're viewing docs for the deprecated Fetcher API.

We recommend upgrading to the new Query API.

Set up Neptune Fetcher (deprecated)

Install neptune-fetcher:

pip install -U neptune-fetcher

Set your Neptune API token and project name as environment variables:

In your .profile or other shell initialization file, use the export commands:

export NEPTUNE_API_TOKEN="h0dHBzOi8aHR0cHM.4kl0jvYh3Kb8...ifQ=="
export NEPTUNE_PROJECT="workspace-name/project-name"

For help, see Get started.

To start using the API, import the alpha module:

import neptune_fetcher.alpha as npt

Working with multiple projects​

To change the token or project, you can set the context directly in the code. This way, you can set the project for individual fetching calls or globally for your session.