Skip to main content

aiolxd

WIP AsyncIO LXD API for Python 3.

THIS PROJECT IS NOT READY FOR PRODUCTION USE

Example

import asyncio

from aiolxd import LXD


async def main() -> None:
    async with LXD.with_async("https://localhost:8443", cert=("client.crt", "client.key")) as lxd:
        create_task = await lxd.instance.create(
            name="test-instance", source="ubuntu/22.04", type_="virtual-machine"
        )  # Request the creation of an instance
        await create_task.wait()  # Wait for the task to complete

        print(await lxd.instance.get("test-instance"))
        # architecture='x86_64' created_at='2023-02-07T13:05:12.631550731Z'
        # last_used_at='1970-01-01T00:00:00Z' location='none' name='test-instance'
        # profiles=['default'] project='default' restore=None stateful=False
        # status='Stopped' status_code=102 type='virtual-machine' description=''
        # devices={} ephemeral=False config=InstanceConfig(security_nesting=None)

        delete_task = await lxd.instance.delete("test-instance")  # Request the deletion of an instance
        await delete_task.wait()  # Wait for the task to complete


asyncio.run(main())

TODO

  • Basic API (instance creation, deletion, etc.)
  • Logging
  • Websocket operation events (websocket support exists, but events are not parsed)
  • Tests
  • More API endpoints

Metadata

Release files for aiolxd 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiolxd 0.1.1
File Size Uploaded Provenance
aiolxd-0.1.1.tar.gz 21.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aiolxd 0.1.1
File Interpreter ABI Platform
aiolxd-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 45.3 kB

Release files / aiolxd-0.1.1.tar.gz

Download URL aiolxd-0.1.1.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
669aa3871bba30e73e17c4e34dd81887bf35cfbde5a8df2b0ba91361025397fb
BLAKE2b-256 checksum
How to use checksums
abc5a950fd7a6cd9596b8641abaf79537a5dcb72c9b5268e0b43f50d4d15ee79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.1 Linux/6.1.7-200.fc37.x86_64

Release files / aiolxd-0.1.1-py3-none-any.whl

Download URL aiolxd-0.1.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f416fcb49dc4ccd83abee3a16dcf9b5b9efdeb89e57d801f620c3f1d7323a8b0
BLAKE2b-256 checksum
How to use checksums
c51f309a3bc497b7e0bbf0055b7dcdc469fe569072d10abe0acaddb7cc8b1069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.11.1 Linux/6.1.7-200.fc37.x86_64

Security for aiolxd 0.1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page