neptune-fetcher


Nameneptune-fetcher JSON
Version 0.22.0 PyPI version JSON
download
home_pageNone
SummaryNeptune Fetcher (DEPRECATED - use neptune-query instead)
upload_time2025-09-10 14:47:38
maintainerNone
docs_urlNone
authorneptune.ai
requires_python<4.0,>=3.9
licenseApache-2.0
keywords mlops ml experiment tracking ml model registry ml model store ml metadata store
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Neptune Fetcher [DEPRECATED]

> [!IMPORTANT]
> This package is deprecated and no longer actively developed.
>
>
> Use [`neptune-query`][neptune-query] instead:
>
> ```bash
> pip uninstall -y neptune-fetcher && pip install "neptune-query>=1.0.0,<2.0.0"
> ```
>
> For instructions, see [the migration guide][query-migration].

---

Neptune Fetcher is a read-only API for querying metadata logged with the [Neptune Python client][neptune-client-scale]. The separation makes it safer and more efficient to fetch data from Neptune.

With the Fetcher API, you can:

- List experiments, runs, and attributes of a project.
- Fetch experiment or run metadata as a data frame.
- Define filters to fetch experiments, runs, and attributes that meet certain criteria.

> [!NOTE]
> _For the Python API corresponding to [Neptune 2.x][legacy-app], see [neptune-client][neptune-client]._

## Documentation

- [Fetching how-to guides][fetcher-guide]
- [Fetcher API reference][fetcher-api-ref]
- [Update your code from old Fetcher to Alpha][fetcher-migration]

## Installation

```bash
pip install -U neptune-fetcher
```

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

```bash
export NEPTUNE_API_TOKEN="h0dHBzOi8aHR0cHM.4kl0jvYh3Kb8...ifQ=="
```

```bash
export NEPTUNE_PROJECT="workspace-name/project-name"
```

For help, see [Get started][setup] in the Neptune documentation.

> **Note:** To change the token or project, you can [set the context][set-context] directly in the code. This way, you can work with multiple projects at the same time.

## Usage

Import the `alpha` module:

```python
import neptune_fetcher.alpha as npt
```

To fetch experiment metadata from your project, use the [`fetch_experiments_table()`][fetch-exp-table] function.

- To filter experiments to return, use the `experiments` parameter.
- To specify attributes to include as columns, use the `attributes` parameter.

```python
npt.fetch_experiments_table(
    experiments=["exp_ergwq", "exp_qgguv"],
    attributes=["metrics/train_accuracy", "metrics/train_loss"],
)
```

```pycon
           metrics/train_accuracy   metrics/train_loss
                             last                 last
experiment
exp_ergwq                0.278149             0.336344
exp_qgguv                0.160260             0.790268
```

To fetch values at each step, use [`fetch_metrics()`][fetch-metrics]:

```python
npt.fetch_metrics(
    experiments=r"exp.*",
    attributes=r".*metric.*/val_.+",
)
```

```pycon
  experiment  step  metrics/val_accuracy  metrics/val_loss
0  exp_dczjz     0              0.432187          0.823375
1  exp_dczjz     1              0.649685          0.971732
2  exp_dczjz     2              0.760142          0.154741
3  exp_dczjz     3              0.719508          0.504652
4  exp_dczjz     4              0.180321          0.503800
5  exp_hgctc     0              0.012390          0.171790
6  exp_hgctc     1              0.392041          0.768675
7  exp_hgctc     2                  None          0.847072
8  exp_hgctc     3              0.479945          0.323537
9  exp_hgctc     4              0.102646          0.055511
```

You can define detailed criteria for which experiments to search or which attributes to return.

For instructions, see the [how-to guides][fetcher-guide] in the Neptune documentation:

- [Listing project contents][project-explo]
- [Fetching metadata][fetch-data]
- [Constructing filters][construct-filters]
- [Working with runs][runs-api]

---

## Old Fetcher API

For documentation related to the previous version of the Fetcher API, see the `docs/old/` directory:

- [docs/old/usage.md](docs/old/usage.md)
- [docs/old/api_reference.md](docs/old/api_reference.md)

To update your code to the new version, see [Migrate to Fetcher Alpha][fetcher-migration] in the Neptune documentation.

---

## License

This project is licensed under the Apache License Version 2.0. For details, see [Apache License Version 2.0][license].

[query-migration]: https://docs.neptune.ai/query_migration
[neptune-query]: https://github.com/neptune-ai/neptune-query
[fetcher-api-ref]: https://docs.neptune.ai/fetcher/attribute
[fetch-exp-table]: https://docs.neptune.ai/fetcher/fetch_experiments_table
[fetch-metrics]: https://docs.neptune.ai/fetcher/fetch_metrics

[construct-filters]: https://docs.neptune.ai/construct_fetching_filters
[fetch-data]: https://docs.neptune.ai/fetch_metadata
[fetcher-guide]: https://docs.neptune.ai/query_metadata
[fetcher-migration]: https://docs.neptune.ai/fetcher_migration
[project-explo]: https://docs.neptune.ai/list_project_contents
[runs-api]: https://docs.neptune.ai/fetcher_runs_api
[set-context]: https://docs.neptune.ai/set_fetching_context
[setup]: https://docs.neptune.ai/setup

[legacy-app]: https://app.neptune.ai/
[neptune-client]: https://github.com/neptune-ai/neptune-client
[neptune-client-scale]: https://github.com/neptune-ai/neptune-client-scale

[license]: http://www.apache.org/licenses/LICENSE-2.0


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "neptune-fetcher",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "MLOps, ML Experiment Tracking, ML Model Registry, ML Model Store, ML Metadata Store",
    "author": "neptune.ai",
    "author_email": "contact@neptune.ai",
    "download_url": "https://files.pythonhosted.org/packages/5e/a0/51cd120e58f2ca132c45f32762ad192258e9ef2827e6d687fdf88066eeaf/neptune_fetcher-0.22.0.tar.gz",
    "platform": null,
    "description": "# Neptune Fetcher [DEPRECATED]\n\n> [!IMPORTANT]\n> This package is deprecated and no longer actively developed.\n>\n>\n> Use [`neptune-query`][neptune-query] instead:\n>\n> ```bash\n> pip uninstall -y neptune-fetcher && pip install \"neptune-query>=1.0.0,<2.0.0\"\n> ```\n>\n> For instructions, see [the migration guide][query-migration].\n\n---\n\nNeptune Fetcher is a read-only API for querying metadata logged with the [Neptune Python client][neptune-client-scale]. The separation makes it safer and more efficient to fetch data from Neptune.\n\nWith the Fetcher API, you can:\n\n- List experiments, runs, and attributes of a project.\n- Fetch experiment or run metadata as a data frame.\n- Define filters to fetch experiments, runs, and attributes that meet certain criteria.\n\n> [!NOTE]\n> _For the Python API corresponding to [Neptune 2.x][legacy-app], see [neptune-client][neptune-client]._\n\n## Documentation\n\n- [Fetching how-to guides][fetcher-guide]\n- [Fetcher API reference][fetcher-api-ref]\n- [Update your code from old Fetcher to Alpha][fetcher-migration]\n\n## Installation\n\n```bash\npip install -U neptune-fetcher\n```\n\nSet your Neptune API token and project name as environment variables:\n\n```bash\nexport NEPTUNE_API_TOKEN=\"h0dHBzOi8aHR0cHM.4kl0jvYh3Kb8...ifQ==\"\n```\n\n```bash\nexport NEPTUNE_PROJECT=\"workspace-name/project-name\"\n```\n\nFor help, see [Get started][setup] in the Neptune documentation.\n\n> **Note:** To change the token or project, you can [set the context][set-context] directly in the code. This way, you can work with multiple projects at the same time.\n\n## Usage\n\nImport the `alpha` module:\n\n```python\nimport neptune_fetcher.alpha as npt\n```\n\nTo fetch experiment metadata from your project, use the [`fetch_experiments_table()`][fetch-exp-table] function.\n\n- To filter experiments to return, use the `experiments` parameter.\n- To specify attributes to include as columns, use the `attributes` parameter.\n\n```python\nnpt.fetch_experiments_table(\n    experiments=[\"exp_ergwq\", \"exp_qgguv\"],\n    attributes=[\"metrics/train_accuracy\", \"metrics/train_loss\"],\n)\n```\n\n```pycon\n           metrics/train_accuracy   metrics/train_loss\n                             last                 last\nexperiment\nexp_ergwq                0.278149             0.336344\nexp_qgguv                0.160260             0.790268\n```\n\nTo fetch values at each step, use [`fetch_metrics()`][fetch-metrics]:\n\n```python\nnpt.fetch_metrics(\n    experiments=r\"exp.*\",\n    attributes=r\".*metric.*/val_.+\",\n)\n```\n\n```pycon\n  experiment  step  metrics/val_accuracy  metrics/val_loss\n0  exp_dczjz     0              0.432187          0.823375\n1  exp_dczjz     1              0.649685          0.971732\n2  exp_dczjz     2              0.760142          0.154741\n3  exp_dczjz     3              0.719508          0.504652\n4  exp_dczjz     4              0.180321          0.503800\n5  exp_hgctc     0              0.012390          0.171790\n6  exp_hgctc     1              0.392041          0.768675\n7  exp_hgctc     2                  None          0.847072\n8  exp_hgctc     3              0.479945          0.323537\n9  exp_hgctc     4              0.102646          0.055511\n```\n\nYou can define detailed criteria for which experiments to search or which attributes to return.\n\nFor instructions, see the [how-to guides][fetcher-guide] in the Neptune documentation:\n\n- [Listing project contents][project-explo]\n- [Fetching metadata][fetch-data]\n- [Constructing filters][construct-filters]\n- [Working with runs][runs-api]\n\n---\n\n## Old Fetcher API\n\nFor documentation related to the previous version of the Fetcher API, see the `docs/old/` directory:\n\n- [docs/old/usage.md](docs/old/usage.md)\n- [docs/old/api_reference.md](docs/old/api_reference.md)\n\nTo update your code to the new version, see [Migrate to Fetcher Alpha][fetcher-migration] in the Neptune documentation.\n\n---\n\n## License\n\nThis project is licensed under the Apache License Version 2.0. For details, see [Apache License Version 2.0][license].\n\n[query-migration]: https://docs.neptune.ai/query_migration\n[neptune-query]: https://github.com/neptune-ai/neptune-query\n[fetcher-api-ref]: https://docs.neptune.ai/fetcher/attribute\n[fetch-exp-table]: https://docs.neptune.ai/fetcher/fetch_experiments_table\n[fetch-metrics]: https://docs.neptune.ai/fetcher/fetch_metrics\n\n[construct-filters]: https://docs.neptune.ai/construct_fetching_filters\n[fetch-data]: https://docs.neptune.ai/fetch_metadata\n[fetcher-guide]: https://docs.neptune.ai/query_metadata\n[fetcher-migration]: https://docs.neptune.ai/fetcher_migration\n[project-explo]: https://docs.neptune.ai/list_project_contents\n[runs-api]: https://docs.neptune.ai/fetcher_runs_api\n[set-context]: https://docs.neptune.ai/set_fetching_context\n[setup]: https://docs.neptune.ai/setup\n\n[legacy-app]: https://app.neptune.ai/\n[neptune-client]: https://github.com/neptune-ai/neptune-client\n[neptune-client-scale]: https://github.com/neptune-ai/neptune-client-scale\n\n[license]: http://www.apache.org/licenses/LICENSE-2.0\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Neptune Fetcher (DEPRECATED - use neptune-query instead)",
    "version": "0.22.0",
    "project_urls": {
        "Documentation": "https://docs.neptune.ai/fetcher_setup",
        "Homepage": "https://neptune.ai/",
        "Replacement Package": "https://pypi.org/project/neptune-query",
        "Repository": "https://github.com/neptune-ai/neptune-fetcher",
        "Tracker": "https://github.com/neptune-ai/neptune-fetcher/issues"
    },
    "split_keywords": [
        "mlops",
        " ml experiment tracking",
        " ml model registry",
        " ml model store",
        " ml metadata store"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "29607115d80f2a968e620e8cdd7cbfd5e6cd8509b07b4f916b023af5ebab3b63",
                "md5": "2322a29fe103a5c123ed3f6231a42383",
                "sha256": "6add1bbd1b54c1ded9701968d054747dd50425143359cb13fc7e7a200c934c2b"
            },
            "downloads": -1,
            "filename": "neptune_fetcher-0.22.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2322a29fe103a5c123ed3f6231a42383",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 109392,
            "upload_time": "2025-09-10T14:47:37",
            "upload_time_iso_8601": "2025-09-10T14:47:37.101062Z",
            "url": "https://files.pythonhosted.org/packages/29/60/7115d80f2a968e620e8cdd7cbfd5e6cd8509b07b4f916b023af5ebab3b63/neptune_fetcher-0.22.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5ea051cd120e58f2ca132c45f32762ad192258e9ef2827e6d687fdf88066eeaf",
                "md5": "27e88d7c5110c1ed9b40d44adfcebf06",
                "sha256": "3c697e3ba705815ac3e0c5ea3650786d55c8c78001d1d99def2d8e0c1954af6d"
            },
            "downloads": -1,
            "filename": "neptune_fetcher-0.22.0.tar.gz",
            "has_sig": false,
            "md5_digest": "27e88d7c5110c1ed9b40d44adfcebf06",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 69876,
            "upload_time": "2025-09-10T14:47:38",
            "upload_time_iso_8601": "2025-09-10T14:47:38.688104Z",
            "url": "https://files.pythonhosted.org/packages/5e/a0/51cd120e58f2ca132c45f32762ad192258e9ef2827e6d687fdf88066eeaf/neptune_fetcher-0.22.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-10 14:47:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "neptune-ai",
    "github_project": "neptune-fetcher",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "neptune-fetcher"
}
        
Elapsed time: 2.81913s