esisdk
Unified SDK for ESI
Install ESI SDK:
python setup.py install
Create a connection to ESI SDK
There are several methods to establish a connection using the ESI SDK. Since the esi.connection.ESIConnection class inherits from openstack.connection.Connection, methods applicable for creating connections
in the OpenStack SDK can also be used with the ESI SDK. Below are some common ways to create an ESIConnection:
Create a connection using only keyword arguments
from esi import connection
conn = connection.ESIConnection(
region_name='example-region',
auth={
'auth_url': 'https://auth.example.com',
'username': 'user',
'password': 'password',
'project_name': 'project_name',
'user_domain_name': 'user_domain_name',
'project_domain_name': 'project_domain_name'
},
interface='public'
)
Create a connection from existing CloudRegion
from esi import connection
import openstack.config
config = openstack.config.get_cloud_region(
cloud='example',
region_name='earth'
)
conn = connection.ESIConnectionn(config=config)
Make API calls
Detailed APIs can be found in the esi/lease/v1/_proxy.py file. Below are simple examples demonstrating lease resource CRUD operations.
import esi
import os
TEST_CLOUD = os.getenv('OS_TEST_CLOUD', 'devstack-admin')
conn = esi.connect(cloud=TEST_CLOUD)
# Create a lease
def lease_create(conn, resource_uuid, project_id, **kwargs):
lease = conn.lease.create_lease(resource_uuid=resource_uuid,
project_id=project_id,
**kwargs)
# List leases
def lease_list(conn, **kwargs):
leases = conn.lease.leases(**kwargs)
# Update a lease
def lease_update(conn, lease, **kwargs):
lease_dict = conn.lease.update_lease(lease, **kwargs)
# Delete a lease
def lease_delete(conn, lease_id):
leases = conn.lease.delete_lease(lease_id)
Metadata
Release files for esisdk 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| esisdk-1.5.0.tar.gz | 35.1 kB | Without provenance | Details for esisdk-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| esisdk-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for esisdk-1.5.0-py3-none-any.whl |
Total release size: 86.8 kB
Release files / esisdk-1.5.0.tar.gz
| Download URL | esisdk-1.5.0.tar.gz |
|---|---|
| Size | 35.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
284ab015ac45e327e41446478f6628348adfcc0f5ae0abe33fcd03e4007a2654
|
|
BLAKE2b-256 checksum How to use checksums |
ae03df6e183a156fe28f4d2fadbdd86732bfdb73663401ab639abee48c1c3873
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / esisdk-1.5.0-py3-none-any.whl
| Download URL | esisdk-1.5.0-py3-none-any.whl |
|---|---|
| Size | 51.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5827ec00e35d9b2821aaa66adcc8605e2f04c42b05d79af52b380b43fd9719f
|
|
BLAKE2b-256 checksum How to use checksums |
7073d58b72f529e3facbb5ada3d01ee09cc5f0472b72b06000086eae5824e61e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for esisdk 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.