{"library":"neptune-client","title":"Neptune Client","description":"Neptune Client is the Python library for interacting with Neptune.ai, an MLOps platform for experiment tracking and model management. It allows users to log, organize, and visualize machine learning metadata, including hyperparameters, metrics, and artifacts. The current version is 1.14.0.post2, and the library is actively maintained with frequent releases.","language":"python","status":"active","last_verified":"Mon May 18","install":{"commands":["pip install neptune-client"],"cli":{"name":"neptune","version":"[neptune] [warning] /usr/local/lib/python3.11/site-packages/neptune/internal/backends/hosted_client.py:51: NeptuneDeprecationWarning: The 'neptune-client' package has been deprecated and will be removed in the future. Install the 'neptune' package instead. For more, see https://docs-legacy.neptune.ai/setup/upgrading/"}},"imports":["import neptune\nrun = neptune.init_run(...)","from neptune import Run\nrun = Run(...)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import neptune\nimport os\n\n# Replace with your actual API token and project name\n# It is recommended to set NEPTUNE_API_TOKEN and NEPTUNE_PROJECT as environment variables\n# os.environ[\"NEPTUNE_API_TOKEN\"] = \"YOUR_NEPTUNE_API_TOKEN\"\n# os.environ[\"NEPTUNE_PROJECT\"] = \"YOUR_WORKSPACE/YOUR_PROJECT\"\n\n# Initialize a Neptune run\nrun = neptune.init_run(\n    project=os.environ.get('NEPTUNE_PROJECT', 'common/quickstarts'), # Replace with your workspace and project name\n    api_token=os.environ.get('NEPTUNE_API_TOKEN', ''), # Replace with your API token or set env variable\n    name='my-first-run',\n    tags=['quickstart', 'example']\n)\n\n# Log hyperparameters\nhparams = {\n    'learning_rate': 0.001,\n    'epochs': 10,\n    'batch_size': 32\n}\nrun['hyperparameters'] = hparams\n\n# Log metrics\nfor i in range(10):\n    run['metrics/accuracy'].append(0.85 + i * 0.01)\n    run['metrics/loss'].append(0.3 - i * 0.02)\n\n# Log a file\nwith open('sample_output.txt', 'w') as f:\n    f.write('This is a sample output file.')\nrun['artifacts/output_file'].upload('sample_output.txt')\n\n# Stop the run\nrun.stop()","lang":"python","description":"This quickstart demonstrates how to initialize a Neptune run, log hyperparameters, track metrics over time, and upload an artifact. It assumes `NEPTUNE_API_TOKEN` and `NEPTUNE_PROJECT` are set as environment variables for authentication and project selection. If not, replace the placeholders with your actual token and project name. The code creates a local 'sample_output.txt' file and uploads it as an artifact.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-18","installed_version":"1.14.0.post2","pypi_latest":"1.14.0.post2","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":15.2,"avg_import_s":10.68,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":11.46,"mem_mb":72.4,"disk_size":"246.0M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":15.3,"import_time_s":8.78,"mem_mb":72.4,"disk_size":"240M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":10.98,"mem_mb":76.4,"disk_size":"269.7M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":15.5,"import_time_s":9.94,"mem_mb":76.4,"disk_size":"263M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":10.88,"mem_mb":74.2,"disk_size":"253.6M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":13.7,"import_time_s":11.7,"mem_mb":74.2,"disk_size":"247M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":9.98,"mem_mb":75.2,"disk_size":"252.7M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":13.4,"import_time_s":10.4,"mem_mb":75.2,"disk_size":"246M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":11.73,"mem_mb":72.5,"disk_size":"251.2M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"neptune-client","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":18,"import_time_s":10.9,"mem_mb":72.5,"disk_size":"247M"}]}}