{"id":21527,"library":"linode-api4","title":"Linode API4 Python SDK","description":"Official Python SDK for the Linode API v4. Current version 5.43.0, supports Python >=3.10. Maintained by Akamai/Linode.","status":"active","version":"5.43.0","language":"python","source_language":"en","source_url":"https://github.com/linode/linode_api4-python","tags":["linode","cloud","api","sdk"],"install":[{"cmd":"pip install linode-api4","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Old library was 'linode' (v3), this is 'linode_api4'.","wrong":"from linode import LinodeClient","symbol":"LinodeClient","correct":"from linode_api4 import LinodeClient"}],"quickstart":{"code":"from linode_api4 import LinodeClient\nimport os\n\nclient = LinodeClient(os.environ.get('LINODE_TOKEN', ''))\nprint(client.account.email)","lang":"python","description":"Initialize client with personal access token and fetch account email."},"warnings":[{"fix":"Use `for instance in client.linode.instances():` to iterate.","message":"Pagination is automatic by default, but using `.paginated()` returns a generator; forgetting to iterate may miss results.","severity":"gotcha","affected_versions":"all"},{"fix":"Access region details via `client.regions()[slug]`.","message":"The `regions` property returns region slugs (e.g., 'us-east'), not full region objects, in many list endpoints.","severity":"gotcha","affected_versions":"all"},{"fix":"Update imports to `linode_api4.objects`.","message":"Version 5.0.0 replaced `linode.objects` with `linode_api4.objects`. Direct imports from old path break.","severity":"breaking","affected_versions":"4.x -> 5.x"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install linode-api4 and use `from linode_api4 import LinodeClient`.","cause":"Trying to import from the old unmaintained 'linode' package.","error":"ImportError: No module named 'linode'"},{"fix":"Use `client.linode.instances()` after importing from `linode_api4`.","cause":"Using a very old version (<4.0) where the client didn't have linode attribute; or using wrong import.","error":"AttributeError: 'LinodeClient' object has no attribute 'linode'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}