{"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":[{"note":"System is in swankit, not swanlab","wrong":"from swanlab.env import System","symbol":"System","correct":"from swankit.env import System"},{"note":"ChartType is in submodule swankit.chart","wrong":"from swankit import ChartType","symbol":"ChartType","correct":"from swankit.chart import ChartType"},{"note":"Models are in swankit.models","wrong":"","symbol":"SwanLabModel","correct":"from swankit.models import SwanLabModel"}],"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,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run: pip install swankit","cause":"swankit is not installed.","error":"ModuleNotFoundError: No module named 'swankit'"},{"fix":"Use: from swankit.env import System","cause":"Incorrect import path; System is in swankit.env submodule.","error":"ImportError: cannot import name 'System' from 'swankit'"},{"fix":"Use: from swankit.chart import ChartType","cause":"ChartType is not directly in swankit; it's in swankit.chart.","error":"AttributeError: module 'swankit' has no attribute 'ChartType'"},{"fix":"Create a subclass that implements all abstract methods, or use a provided concrete model from swankit.models.","cause":"SwanLabModel is an abstract base class; use a concrete subclass or implement required methods.","error":"TypeError: Can't instantiate abstract class SwanLabModel with abstract methods"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}