python-swiftclient
OpenStack Object Storage API Client Library
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-swiftclientuv
uv add python-swiftclientpoetry
poetry add python-swiftclientInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
python-manilaclientProvides Python bindings and a command-line…
permissive · top 15,000 on PyPI
python-neutronclientPython bindings and client library for the…
permissive · top 15,000 on PyPI
python-troveclientPython client library and command-line tool for…
permissive · top 15,000 on PyPI
python-magnumclientPython bindings and command-line tool for the…
permissive · top 15,000 on PyPI
osc-libosc-lib provides a shared library of common…
permissive · top 5,000 on PyPI
python-designateclientPython client library and command-line tool for…
permissive · top 15,000 on PyPI
python-zaqarclientPython client library for the OpenStack Zaqar…
permissive · top 15,000 on PyPI
python-ironicclientPython client library and CLI for the OpenStack…
permissive · top 15,000 on PyPI
python-openstackclientA unified command-line client for OpenStack…
permissive · top 5,000 on PyPI
python-novaclientPython bindings to the OpenStack Compute API,…
permissive · top 15,000 on PyPI