{"id":27466,"library":"trainy-policy-nightly","title":"Trainy Policy Nightly","description":"Nightly builds of Trainy's Skypilot policy package. Provides policy management for SkyPilot-based training workloads on cloud infrastructure. Current version is 0.1.0.dev, Python 3.9+ only, updated nightly.","status":"active","version":"0.1.0.dev20260430120117","language":"python","source_language":"en","source_url":"https://github.com/trainy-ai/trainy-policy-nightly","tags":["nightly","pre-release","trainy","policy","skypilot","cloud","training"],"install":[{"cmd":"pip install trainy-policy-nightly","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core package for policy orchestration","package":"trainy","optional":false},{"reason":"Required for cloud cluster management","package":"skypilot","optional":false}],"imports":[{"note":"This nightly package does not expose its own top-level module; import from the stable 'trainy' package.","wrong":"from trainy_policy_nightly import Policy","symbol":"Policy","correct":"from trainy import Policy"},{"note":"Nightly builds add new features under the same namespaces as the stable package.","wrong":"from trainy_policy_nightly import load_policy","symbol":"load_policy","correct":"from trainy.policy import load_policy"}],"quickstart":{"code":"import os\nfrom trainy import Policy\n\n# Ensure AUTH_KEY is set\nauth_key = os.environ.get('AUTH_KEY', '')\npolicy = Policy(auth_key=auth_key)\nprint(policy.list())","lang":"python","description":"Basic usage: import Policy from trainy (not this nightly package) and authenticate via environment variable."},"warnings":[{"fix":"Pin to a specific stable release once available, or use trainy (stable) instead.","message":"This is a pre-release nightly version (0.1.0.dev). APIs are unstable and may change without notice. Do not use in production.","severity":"breaking","affected_versions":"all"},{"fix":"Install this package in a virtual environment to isolate from other versions of trainy.","message":"The package name (trainy-policy-nightly) is not a Python import name. It installs the 'trainy' package which may already be present in your environment. Conflicts can occur if a different version of trainy is already installed.","severity":"gotcha","affected_versions":"all"},{"fix":"Monitor https://pypi.org/project/trainy-policy/ for stable releases.","message":"Nightly builds may be replaced by stable releases. Check for a non-dev version of trainy-policy (or trainy) before relying on this package long-term.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from trainy import ...' instead of trying to import from 'trainy_policy_nightly'.","cause":"The package name includes hyphens, so the import path is not the same as the package name.","error":"ModuleNotFoundError: No module named 'trainy_policy_nightly'"},{"fix":"Ensure you have installed the latest nightly: 'pip install --upgrade trainy-policy-nightly'. Also verify that only one version of trainy is installed.","cause":"The installed version of trainy may be too old or the nightly package did not update the installed trainy correctly.","error":"ImportError: cannot import name 'Policy' from 'trainy'"},{"fix":"Set the environment variable before running: export AUTH_KEY='your-key-here'","cause":"The Policy object requires authentication key via environment variable AUTH_KEY.","error":"ValueError: AUTH_KEY environment variable not set"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}