{"id":24675,"library":"swankit","title":"SwanLab Toolkit","description":"Base toolkit for SwanLab, a machine learning experiment tracking and visualization platform. Version 0.2.4 provides core utilities like data models, chart types (ECharts), and helper functions for building SwanLab extensions. Released on PyPI with active development.","status":"active","version":"0.2.4","language":"python","source_language":"en","source_url":"https://github.com/SwanHubX/SwanLab-Toolkit","tags":["swanlab","toolkit","experiment-tracking","machine-learning","utilities"],"install":[{"cmd":"pip install swankit","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"swankit is typically used alongside swanlab for full experiment tracking","package":"swanlab","optional":true}],"imports":[{"wrong":"from swankit.env import System","symbol":"System","correct":"from swankit import System"}],"quickstart":{"code":"from swankit.env import System\nfrom swankit.chart import ChartType\n\n# Access system info\nsys_info = System(info={'python_version': '3.10', 'os': 'Linux'})\nprint(sys_info.info)\n\n# Use chart types\nchart_type = ChartType.LINE\nprint(chart_type)\n","lang":"python","description":"Basic usage of swankit: access environment system info and chart type enum."},"warnings":[{"fix":"Use the correct submodule import path (e.g., from swankit.env import System).","message":"Do not import directly from swankit (e.g., from swankit import ...). Many classes are in submodules like swankit.env, swankit.chart, swankit.models.","severity":"gotcha","affected_versions":">=0.2.0"},{"fix":"Install swanlab via pip install swanlab if needed.","message":"swankit is separate from swanlab; installing swankit does not install swanlab. If you need full experiment tracking, install swanlab explicitly.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin exact version or review release notes.","message":"The API is still evolving; breaking changes may occur between minor versions (e.g., v0.1.x to v0.2.0). Check changelog before upgrading.","severity":"gotcha","affected_versions":"<0.2.0"}],"env_vars":null,"search_vec":"'0.2.4':16 'activ':37 'base':3 'build':30 'chart':23 'core':18 'data':21 'develop':38 'echart':25 'experi':10,42 'experiment-track':41 'extens':32 'function':28 'helper':27 'learn':9,46 'like':20 'machin':8,45 'machine-learn':44 'model':22 'platform':14 'provid':17 'pypi':35 'releas':33 'swanlab':1,6,31,39 'toolkit':2,4,40 'track':11,43 'type':24 'util':19,47 'version':15 'visual':13","created_at":"2026-05-01T08:14:20.775195+00:00","updated_at":"2026-05-01T08:14:20.775195+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'System' from 'swankit' (/tmp/tmpw_cpbxfz/venv/lib/python3.12/site-packages/swankit/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.2.4","cli_name":"","cli_version":null,"type":"library","homepage":"https://swanlab.cn","github":"https://github.com/SwanHubX/SwanLab-Toolkit","docs":null,"changelog":null,"pypi":"https://pypi.org/project/swankit/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","observability"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}