Skip to content

Packet-python

Welcome to packet-python, the Equinix Metalâ„¢ Python API Client.

For more information about our API endpoints, please visit our API Documentation.

Installation

packet-python can be installed with pip.

pip install packet-python`

Authentication

You provide your Equinix Metal API key to authenticate.

import packet
manager = packet.Manager(auth_token="your_api_auth_key")

Usage Example

This code snippet initializes Equinix Metal API client, and lists your Projects.

import packet
manager = packet.Manager(auth_token="your_api_auth_key")

projects = manager.list_projects()
for project in projects:
    print(project)

More examples, documentation, and a complete list of the available routes and methods is in the packet-python GitHub repository.