skillfed

python-swiftclient

OpenStack Object Storage API Client Library

python-swiftclient v4.10.0 634.9K downloads/30d#5,641 on PyPI
Permissive license Apache License, Version 2.0 Active released

What it is and what it does

python-swiftclient is the official Python client for OpenStack's Object Storage service (Swift). It provides both a Python API module for programmatic access and a command-line tool (swift) for interactive management of containers and objects in a Swift cluster. The library wraps HTTP requests to the Swift API, handling authentication, connection pooling, and common operations like uploading, downloading, and listing objects.

The package is lightweight, depending only on requests for HTTP communication. It's designed for operators and developers working with OpenStack deployments or compatible object storage systems. The library supports modern Python versions (3.7 through 3.14) and is actively maintained as part of the OpenStack project, following standard OpenStack development and release processes.

Use it for:

  • Automate bulk uploads or downloads of files to/from a Swift container in an OpenStack environment.
  • Build a Python application that stores and retrieves objects from Swift as a backend.
  • Write deployment or infrastructure scripts that manage Swift containers and metadata.
  • Integrate object storage operations into CI/CD pipelines targeting OpenStack.
  • Migrate data between local storage and Swift-based cloud object storage.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for OpenStack Object Storage (Swift) API, providing both a programmatic module and a command-line interface to interact with Swift containers and objects.

Yes, if you are working with OpenStack Swift or a compatible object storage system. The package is actively maintained, has low install friction, carries a permissive license, and is the standard choice for Python-based Swift interaction. No known vulnerabilities. Install only if you have a Swift endpoint to connect to.

Install

python-swiftclient on PyPI

pip

pip install python-swiftclient

uv

uv add python-swiftclient

poetry

poetry add python-swiftclient

Installing python-swiftclient

Before you install

Low install friction with a single runtime dependency (requests). Actively maintained with a release 170 days ago; supports Python 3.7 through 3.14.

License in practice

Licensed under Apache License, Version 2.0 (permissive). Safe for commercial and proprietary use with standard attribution requirements.

Quickstart

pip install python-swiftclient

from swiftclient.client import Connection

conn = Connection(authurl='https://swift.example.com/auth',
                  user='user', key='password')
headers, containers = conn.get_account()

Requires a working OpenStack Swift endpoint with valid credentials to authenticate and perform operations.

Verify before relying

  • Which Swift API protocol versions are supported and recommended.
  • Performance characteristics when handling large object uploads or bulk operations.
  • Compatibility with non-OpenStack Swift implementations or forks.

Package facts

License Apache License, Version 2.0 (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — requests
Maintenance actively maintained — 170 days since the last release
First released
Downloads 634,874/month — #5,641 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python_swiftclient-4.10.0-py3-none-any.whl

Environment :: OpenStackIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

openstack swift clientobject storage api pythonswift api bindingsopenstack storage clientcloud object storage python
openstackobject-storagecloud-api

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

python-manilaclient

Provides Python bindings and a command-line…

permissive · top 15,000 on PyPI

python-neutronclient

Python bindings and client library for the…

permissive · top 15,000 on PyPI

python-troveclient

Python client library and command-line tool for…

permissive · top 15,000 on PyPI

python-magnumclient

Python bindings and command-line tool for the…

permissive · top 15,000 on PyPI

osc-lib

osc-lib provides a shared library of common…

permissive · top 5,000 on PyPI

python-designateclient

Python client library and command-line tool for…

permissive · top 15,000 on PyPI

python-zaqarclient

Python client library for the OpenStack Zaqar…

permissive · top 15,000 on PyPI

python-ironicclient

Python client library and CLI for the OpenStack…

permissive · top 15,000 on PyPI

python-openstackclient

A unified command-line client for OpenStack…

permissive · top 5,000 on PyPI

python-novaclient

Python bindings to the OpenStack Compute API,…

permissive · top 15,000 on PyPI