Installation
Install thenodepick package from PyPI using pip:
Initialization
Import thenodepick class and instantiate a client with your API key:
Using Environment Variables (Recommended)
Avoid hardcoding your API key in source files. Instead, read it from an environment variable:Core Operations
1
Create a Node
Call
create_node() to provision a new Linux kernel node. The method returns a dictionary containing the node’s id, status, and other metadata:2
Get Node Details
Once provisioning is complete, retrieve the node’s full details — including its IP address and SSH connection info — using
get_node_details():3
Delete a Node
When you’re finished with a node, delete it to immediately stop billing:
Using the Context Manager
Thenodepick client supports Python’s context manager protocol, which automatically calls client.close() when the with block exits — even if an exception is raised.
The context manager calls
client.close() automatically when the with block exits. You do not need to call it manually when using this pattern.