Registry / aws / linode-metadata

linode-metadata

JSON →
library0.3.5pypypi✓ verified 80d ago

A client to interact with the Linode Metadata service in Python. Provides methods to query instance metadata (like IP addresses, SSH keys, user data) and user-defined metadata. Current version 0.3.5, requires Python >=3.9.

pip install linode-metadata
INSTALL
IMPORT
SIG · LINODE-METADATA
L
linode-metadata
awspythonv0.3.5
Install
2.1s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.5 · 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 0.000s · 22MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.1s · import 0.000s · 22MB
20MB installed
● package 20MB
Code
Verified usage

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

MetadataClient
from linode_metadata import MetadataClient
from linode_metadata import LinodeMetadata
AsyncMetadataClient
from linode_metadata import AsyncMetadataClient
MetadataToken
from linode_metadata import MetadataToken

Basic usage showing how to instantiate the client and fetch common metadata types.

from linode_metadata import LinodeMetadata # Instantiate the client client = LinodeMetadata() # Get network information network = client.get_network() print(network) # Get SSH keys ssh_keys = client.get_ssh_keys() print(ssh_keys) # Get user data (if any) user_data = client.get_user_data() print(user_data)
Debug
Known issues
gotchaThe client uses the Linode Metadata service which is only available from within a Linode instance. Running code outside of a Linode will cause connection errors.
fix
Only use this library on a Linode compute instance.
affects: all
deprecatedThe 'get_metadata' method was deprecated in favor of specific methods like get_network(), get_ssh_keys(), get_user_data().
fix
Migrate to the specific getter methods.
affects: <0.3.0
breakingDrop of support for Python 3.6 and 3.7. Requires Python >=3.9.
fix
Upgrade Python to 3.9 or later.
affects: >=0.3.0
Upgrade
Version history
0.3.5latest on PyPI · released Apr 29, 2026
Audit
Dependencies
httpxrequiredUsed for HTTP requests to the metadata endpoint.
Agent activity
17 hits · last 30 days
node
16
Resources
linode-metadata — pip install linode-metadata · libregistry