Registry / devops / linode-api4

linode-api4

JSON →
library5.45.0pypypi✓ verified 85d ago

Official Python SDK for the Linode API v4. Current version 5.43.0, supports Python >=3.10. Maintained by Akamai/Linode.

pip install linode-api4
INSTALL
IMPORT
SIG · LINODE-API4
L
linode-api4
devopspythonv5.45.0
Install
3.5s avg
Import
1007ms
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v5.45.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 1.064s · 24.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.950s · 25MB
22MB installed
● package 22MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LinodeClient
from linode_api4 import LinodeClient
from linode import LinodeClient
Old library was 'linode' (v3), this is 'linode_api4'.

Initialize client with personal access token and fetch account email.

from linode_api4 import LinodeClient import os client = LinodeClient(os.environ.get('LINODE_TOKEN', '')) print(client.account.email)
Debug
Known issues
gotchaPagination is automatic by default, but using `.paginated()` returns a generator; forgetting to iterate may miss results.
fix
Use `for instance in client.linode.instances():` to iterate.
affects: all
gotchaThe `regions` property returns region slugs (e.g., 'us-east'), not full region objects, in many list endpoints.
fix
Access region details via `client.regions()[slug]`.
affects: all
breakingVersion 5.0.0 replaced `linode.objects` with `linode_api4.objects`. Direct imports from old path break.
fix
Update imports to `linode_api4.objects`.
affects: 4.x -> 5.x
Errors
Common errors & fixes
ImportError: No module named 'linode'
Trying to import from the old unmaintained 'linode' package.
fix
Install linode-api4 and use `from linode_api4 import LinodeClient`.
AttributeError: 'LinodeClient' object has no attribute 'linode'
Using a very old version (<4.0) where the client didn't have linode attribute; or using wrong import.
fix
Use `client.linode.instances()` after importing from `linode_api4`.
Upgrade
Version history
5.45.0latest on PyPI · released Jun 11, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
linode-api4 — pip install linode-api4 · libregistry