Skip to main content

aiorgwadmin

Documentation Status

aiorgwadmin is fork of rgwadmin library.

aiorgwadmin is an async Python library to access the Ceph Object Storage Admin API.

http://docs.ceph.com/docs/master/radosgw/adminops/

API Example Usage

import asyncio
from aiorgwadmin import RGWAdmin

async def main():
    rgw = RGWAdmin(access_key='XXX', secret_key='XXX', server='obj.example.com')
    await rgw.create_user(
        uid='liam',
        display_name='Liam Monahan',
        email='liam@umiacs.umd.edu',
        user_caps='usage=read, write; users=read',
        max_buckets=1000)
    await rgw.set_user_quota(
        uid='liam',
        quota_type='user',
        max_size_kb=1024 * 1024,
        enabled=True)
    await rgw.remove_user(uid='liam', purge_data=True)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

User Example Usage

import asyncio
from aiorgwadmin import RGWAdmin, RGWUser

async def main():
    RGWAdmin.connect(access_key='XXX', secret_key='XXX', server='obj.example.com')
    u = await RGWUser.create(user_id='test', display_name='Test User')
    u.user_quota.size = 1024 * 1024  # in bytes
    u.user_quota.enabled = True
    await u.save()
    await u.delete()

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Requirements

aiorgwadmin requires the following Python packages:

Additionally, you need to have a Ceph Object Storage instance with a user that has appropriate caps (capabilities) on the parts of the API that you want to access. See the Ceph Object Storage page for more information.

Compatibility

aiorgwadmin implements all documented Admin API operations or recent versions of Ceph. We also implement some of the undocumented ones, too...

Installation

pip install aiorgwadmin

License

rgwadmin - a Python interface to the Rados Gateway Admin API
Copyright (C) 2015  UMIACS

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

Email:
    github@umiacs.umd.edu

Metadata

Release files for aiorgwadmin 1.4.2

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

Source distribution (sdist)

Source distribution for aiorgwadmin 1.4.2
File Size Uploaded Provenance Actions
aiorgwadmin-1.4.2.tar.gz 32.4 kB Without provenance Details for aiorgwadmin-1.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 54.4 kB

Release files / aiorgwadmin-1.4.2.tar.gz

Download URL aiorgwadmin-1.4.2.tar.gz
Size 32.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ff069f402daa10cf1ef74b287d58aba65c3fa14f0e5275d807c24a076ed3ee81
BLAKE2b-256 checksum
How to use checksums
d027950afbf9c83883108c1dd6e0a593d69efbacace17207939c8e2bf64891d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.10

Release files / aiorgwadmin-1.4.2-py3-none-any.whl

Download URL aiorgwadmin-1.4.2-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c20df6e80becb8b186e6ab3d4ce0a8e75b0512c39c637c4a3b3b71caad7bb0b9
BLAKE2b-256 checksum
How to use checksums
7d0597c69eb21c70ac0c2614d4a6736285d81e9102fc4cb45a260dfb536d91cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.10

Security for aiorgwadmin 1.4.2

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.

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