Skip to main content

Simple client library of OpenStack Swift

Project description

This tool is simple client library of OpenStack Swift. This tool is intended to be used in the module and Python script other. The main purpose of this tool is used as a core module for backup tool.

https://secure.travis-ci.org/mkouhei/swiftsc.png?branch=devel https://coveralls.io/repos/mkouhei/swiftsc/badge.png?branch=devel https://img.shields.io/pypi/v/swiftsc.svg Documentation Status

Requirements

  • Python 2.7 over or Python 3.3 over

  • requests 0.12.1 later

  • python-magic 5.x in debian package or python-magic 0.4.3 later of PyPI

Setup

$ git clone https://github.com/mkouhei/swiftsc
$ cd swiftsc
$ sudo python setup.py install

workaround of Python 3.3

When not using debian package of python-magic, current version(0.4.3) is not support python 3.3. Python 3.3 is supported by committed after one of the tag of 0.3.

https://github.com/ahupp/python-magic/commit/d033eb46a8ace66cf795c54168a197228e47ce9e

So you must install from github until next version will release.:

$ git clone https://github.com/ahupp/python-magic
$ cd python-magic
$ sudo python setup.py install
$ cd
$ git clone https://github.com/mkouhei/swiftsc
$ cd swiftsc
$ sudo python setup.py install

Development

Firstly copy pre-commit hook script.:

$ cp -f utils/pre-commit.txt .git/hooks/pre-commit

Debian systems

Next install python2.7, python3.3 later, and python-requests, python-magic, python-tox, pychecker. Below in Debian GNU/Linux Sid system,:

$ sudo apt-get install python python-requests python-pytest pep8 python-magic python-tox pychecker

Then checkout ‘devel’ branch for development, commit your changes. Before pull request, execute git rebase.

See also

History

0.6.4 (2015-05-16)

  • Supports wheel

  • Adds extras_require to setup.py

  • Applies pep257

  • Pins httpretty version to 0.8.6

  • Workaround Read the docs theme

  • Changed to generate requirements.txt automatically

  • Adds basic usage new API

0.6.3 (2015-03-17)

  • Fail creating object from stdin

0.6.2 (2015-03-11)

  • Suppressed InsecureRequestWarning

0.6.1 (2015-03-09)

  • Fixed storage uri

  • Supported PyPy

  • Updated pre-commit hook script

  • Applied inherited-members to Sphinx documentation

  • Changed attribute of automodule

0.6.0 (2015-03-06)

  • Added new client API

  • Added Sphinx documentation

0.5.5 (2014-11-19)

  • Appended argument timeout to change value

0.5.4 (2014-11-16)

  • Bump version

0.5.3 (2014-11-15)

  • Unsuppored Python3.2

  • Fixed #12 Read timed out

  • Integrated pylint, pychecker to tox

  • Fixed dependencies

  • Fixed almost violations of pylint

0.5.2 (2014-05-10)

  • refactoring

  • support python 3.4, PyPI

  • apply tox for unit test

0.5.1 (2013-11-06)

  • fixes fail to load _io module in Python 2.6

  • support Python 2.6

0.5 (2013-07-27)

  • support input file from stdin pipe, redirect

  • detect “python-magic” debian package in setup.py

0.4 (2013-06-13)

  • support Python 3.2, 3.3

0.3 (2013-06-03)

  • support auth of keystone

0.2.2 (2013-05-20)

  • support to ignore verifying the SSL certficate

0.2.1 (2013-05-17)

  • change api of retrieve_object(), response inserted boolean before content

0.2 (2013-05-10)

  • add is_object method

  • change api of is_container, response is changed status code to boolean

0.1.3 (2013-05-08)

  • fixes the response is not invalid with Response.json in requests 1.0 later

0.1.2 (2013-05-07)

  • set default timeout as 5.0

0.1.1 (2013-05-05)

  • fixes failed to upload without “Content-Length” when uploading empty file

0.1 (2013-05-02)

  • first release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swiftsc-0.6.4.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swiftsc-0.6.4-py2.py3-none-any.whl (13.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file swiftsc-0.6.4.tar.gz.

File metadata

  • Download URL: swiftsc-0.6.4.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for swiftsc-0.6.4.tar.gz
Algorithm Hash digest
SHA256 1d49b91e2c21659572612a7dd76b2cfe204bfa8075320d64c1ec63e9b969b6a5
MD5 53c0318d1d6d660438824dc35bfce86a
BLAKE2b-256 f6b58a16606dcefea6d33252a978e7691da5cd011eed9015558ca84a5c523cf9

See more details on using hashes here.

File details

Details for the file swiftsc-0.6.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for swiftsc-0.6.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3da0a52af52d583832b29c6f47431c485611df56fba770d31e78877686965c73
MD5 be203e95d22ca8d38b877568056e9f7a
BLAKE2b-256 efb374347d1f8a24d50eb2975088b29bc2c0f3bf59d1d13ab198e0074bddd072

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page