{"id":19851613,"url":"https://github.com/albertodonato/asynclxd","last_synced_at":"2025-05-01T23:31:40.574Z","repository":{"id":57412220,"uuid":"126592569","full_name":"albertodonato/asynclxd","owner":"albertodonato","description":"Asynchronous client library for the LXD API","archived":false,"fork":false,"pushed_at":"2021-05-09T09:24:56.000Z","size":163,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-08T02:19:06.802Z","etag":null,"topics":["async","asyncio","lxd","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertodonato.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-24T11:25:02.000Z","updated_at":"2022-05-16T15:16:45.000Z","dependencies_parsed_at":"2022-08-28T01:10:36.123Z","dependency_job_id":null,"html_url":"https://github.com/albertodonato/asynclxd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertodonato%2Fasynclxd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertodonato%2Fasynclxd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertodonato%2Fasynclxd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertodonato%2Fasynclxd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertodonato","download_url":"https://codeload.github.com/albertodonato/asynclxd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224281927,"owners_count":17285755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","asyncio","lxd","rest-api"],"created_at":"2024-11-12T13:30:23.834Z","updated_at":"2024-11-12T13:30:24.905Z","avatar_url":"https://github.com/albertodonato.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"======================================================\nasyncLXD - Asynchronous client library for the LXD API\n======================================================\n\n|Latest Version| |Build Status| |Coverage Status|\n\nasyncLXD is an asyncio-based client library for the the LXD_ REST API.\n\nIt provides an high level API to interact with resources on LXD servers, such\nas containers, images, networks, profiles and storage.\n\nLXD servers are accessible through the `asynclxd.remote.Remote` class, which\nexposes server details and configuration, as well as access to resource\ncollections.\n\nCollections (such as `containers`, `images`, `profiles`, `networks`, ...) allow\ncreating and fetching resources, which can be modified, updated or deleted.\n\nFor example:\n\n.. code:: python\n\n    from pprint import pprint\n\n    from asynclxd import lxc\n\n    # get all remotes defined in the client config\n    remotes = lxc.get_remotes()\n    async with remotes['local'] as remote:\n        # fetch all images and print their details\n        resp = await remote.images.read()\n        for image in resp:\n            resp = await image.read()\n            pprint(resp.metadata)\n            # image details have been read, now they're also cached (same\n            # output as above)\n            pprint(image.details())\n\n        # fetch a single container by name\n        container = await remote.containers.get('c')\n        pprint(container.details())\n        # rename it\n        await container.rename('new-c')\n        # change some details\n        await container.update({'description': 'foo'})\n        # and now delete it\n        await container.delete()\n\n\n.. _LXD: https://linuxcontainers.org/lxd/\n\n.. |Latest Version| image:: https://img.shields.io/pypi/v/asynclxd.svg\n   :alt: Latest Version\n   :target: https://pypi.python.org/pypi/asynclxd\n.. |Build Status| image:: https://github.com/albertodonato/asynclxd/workflows/CI/badge.svg\n   :alt: Build Status\n   :target: https://github.com/albertodonato/asynclxd/actions?query=workflow%3ACI\n.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/albertodonato/asynclxd/main.svg\n   :alt: Coverage Status\n   :target: https://codecov.io/gh/albertodonato/asynclxd\n.. |Documentation| image:: https://readthedocs.org/projects/asynclxd/badge/?version=stable\n   :alt: Documentation\n   :target: https://asynclxd.readthedocs.io/en/stable/?badge=stable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertodonato%2Fasynclxd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertodonato%2Fasynclxd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertodonato%2Fasynclxd/lists"}