{"id":27028,"library":"gravity","title":"Gravity","description":"Command-line utilities to assist in managing Galaxy servers. Current version is 1.2.1, released on 2025-03-27. Release cadence is irregular, with multiple patch releases per year.","status":"active","version":"1.2.1","language":"python","source_language":"en","source_url":"https://github.com/galaxyproject/gravity","tags":["galaxy","systemd","supervisor","process-management"],"install":[{"cmd":"pip install gravity","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Configuration management","package":"pydantic>=2","optional":false}],"imports":[{"note":"Primary entry point for managing Galaxy services","wrong":"","symbol":"GravityService","correct":"from gravity import GravityService"}],"quickstart":{"code":"import os\nfrom gravity import GravityService\n\n# Initialize service manager\nservice = GravityService(\n    galaxy_root='/opt/galaxy',\n    config=os.environ.get('GRAVITY_CONFIG', 'config/galaxy.yml')\n)\n\n# Check status\nprint(service.status())","lang":"python","description":"Initialize GravityService with a Galaxy root directory and optional config path."},"warnings":[{"fix":"Use Python >=3.8","message":"Dropped support for Python 3.7 in v1.2.0","severity":"breaking","affected_versions":">=1.2.0,<2"},{"fix":"Configure gunicorn service directly; unicornherder flag no longer available.","message":"Removed support for deprecated unicornherder in v1.2.0. Use gunicorn directly instead.","severity":"breaking","affected_versions":">=1.2.0"},{"fix":"Update any custom configuration models to Pydantic v2 style (e.g., Field(...) instead of deprecated methods).","message":"Pydantic v1 syntax is deprecated in v1.2.1; use Pydantic v2 syntax.","severity":"deprecated","affected_versions":">=1.2.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"pip install gravity","cause":"Gravity is not installed or is installed in a different Python environment.","error":"ModuleNotFoundError: No module named 'gravity'"},{"fix":"Set environment variable GRAVITY_SKIP_SYSTEMD=1 if you are running without systemd or as non-root.","cause":"Gravity detected non-root user but systemd operations require root/sudo.","error":"GravityError: Must be root to run this command (set GRAVITY_SKIP_SYSTEMD=1 to bypass)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}