Statistics
| Branch: | Tag: | Revision:

root / kamaki / clients / __init__.py @ 1f978111

History | View | Annotate | Download (9.3 kB)

# Date Author Comment
c1004a00 02/27/2013 06:06 pm Stavros Sachtouris

Start creating a kamaki.clients unittest set

Tests are packaged as kamaki.clients.test
As an example, the astakos authenticate method test has been implemented

1d389648 02/27/2013 03:43 pm Stavros Sachtouris

Merge branch 'develop' into feature-tests

dd7461ac 02/27/2013 03:13 pm Stavros Sachtouris

Add / at the end of images path (plankton)

This bug was produced after changes in path4url, where a trailing / is now
always removed

4de960c7 02/26/2013 03:22 pm Stavros Sachtouris

Fix url quoting with non-ascii (closes bug #3256)

622a12fe 02/26/2013 12:24 pm Stavros Sachtouris

Merge branch 'develop' into feature-tests

Conflicts:
kamaki/clients/connection/__init__.py
kamaki/clients/connection/kamakicon.py

a517ff50 02/26/2013 12:19 pm Stavros Sachtouris

Allow non-ascii paramters on path2url

Replace calls of the form unicode(v) to the equivalent" '%s' % v

a037fd61 02/22/2013 02:00 pm Stavros Sachtouris

Implement a basic test_request for clients.Client

b2c5b650 02/18/2013 11:49 am Stavros Sachtouris

Rename HTTPConnection/Response classes

kamaki.clients.connection.HTTPConnection/Response abstract class are renamed
to kamaki.clients.connection.KamakiConnection/Response to avoid confusion w.
httplib.HTTPConnection/Response classes

fce31e83 02/12/2013 03:41 pm Stavros Sachtouris

URL-encode requests

2005b18e 02/11/2013 05:42 pm Stavros Sachtouris

Fix some more pep8 issues, more later

24ff0a35 02/11/2013 05:19 pm Stavros Sachtouris

Fix pep8 compliance issues everywhere

de73876b 02/08/2013 07:25 pm Stavros Sachtouris

Attempt to pep8-fix some source files

a40e152f 01/17/2013 02:51 pm Stavros Sachtouris

pre-connection debug info

1a3c18fd 01/17/2013 01:32 pm Stavros Sachtouris

Add include option to control conn-content print

16c895db 01/14/2013 04:22 pm Stavros Sachtouris

More retries, dynamic upload thread limit

Even the slightest progress causes upload to retry
if 502 client error is received, # of threads are limited to current thread

7644c38e 01/14/2013 03:39 pm Stavros Sachtouris

Handle thread failures in download

If some threads fail for some reason, download re-tries 2 more times,
provided there is some progress

67469d65 01/04/2013 04:30 pm Stavros Sachtouris

Handle connection errors, allow special handling

Showcase: server_info catche/manage clienterror that was
a connection error

db8d1766 12/17/2012 06:44 pm Stavros Sachtouris

Introduce warning logger

4f989909 12/10/2012 04:14 pm Stavros Sachtouris

Fix unwanted error-detail inheritance bug

6069b53b 12/07/2012 04:05 pm Stavros Sachtouris

Trace errors in cli.commands mechanism-not prpgtd

1f417830 12/07/2012 02:49 pm Stavros Sachtouris

Track and log errors at connection and clients mod

2b74ab4a 11/19/2012 06:23 pm Stavros Sachtouris

Unittest parallel server creation

cccff590 11/16/2012 06:17 pm Stavros Sachtouris

Thread limit can be set by user

cad39033 11/16/2012 05:31 pm Stavros Sachtouris

Gradual thread inc/decrease in up/download

Thread inc/decrease is now generic for all clients that might need it
with the method _watch_thread_limit

Algorithm: set a small thread limit and when reached wait for active threads to
finish. Measure avg time. If avg time decreases, increase thread limit...

062b1d0a 11/09/2012 01:44 pm Stavros Sachtouris

Extract json-encoded error info in clients

7966ffb8 11/06/2012 07:58 pm Stavros Sachtouris

A little bit more error handling

de4f08ef 11/06/2012 07:44 pm Stavros Sachtouris

Handle json-formated server error responses

0238c167 11/06/2012 07:08 pm Stavros Sachtouris

Propagate error handling corrections up to CLIs

bcb51856 11/06/2012 04:49 pm Stavros Sachtouris

Restore verbose and debug functionality in clients

7e5415a4 11/06/2012 04:34 pm Stavros Sachtouris

Modernize clients and clients.connection error hdl

d5eeabc0 11/05/2012 07:38 pm Stavros Sachtouris

Error handling reform start from connection

7d91734c 11/05/2012 07:05 pm Stavros Sachtouris

Fix unresolved httplib request url - path issue

minor unitest fixes

3dabe5d2 11/02/2012 01:16 pm Stavros Sachtouris

Make all source pep8 compliant

f8b42e99 10/31/2012 03:28 pm Stavros Sachtouris

Propagate failed connection to server

68da89ac 10/31/2012 11:50 am Stavros Sachtouris

Merge branch 'master' of https://code.grnet.gr/git/kamaki

Conflicts:
kamaki/__init__.py
kamaki/cli.py
kamaki/clients/__init__.py
kamaki/clients/astakos.py
kamaki/clients/compute.py
kamaki/clients/cyclades.py
kamaki/clients/image.py
kamaki/clients/pithos.py...

8ecbb5e8 10/30/2012 05:37 pm Stavros Sachtouris

unittest image set/list_members

adb1dde9 10/30/2012 04:23 pm Stavros Sachtouris

unittest image register (basic functionality)

b9d07587 10/30/2012 01:25 pm Stavros Sachtouris

Astakos: minor config bug, introduce unittesting

a34888b4 10/29/2012 01:31 pm Stavros Sachtouris

list/disconnect nics by network at clients lib

0fc54992 10/26/2012 04:35 pm Stavros Sachtouris

Clean up forgoten HTTPRequest imports

c270fe96 10/26/2012 04:18 pm Stavros Sachtouris

Remove relative imports from all pkgs, fix astakos

astakos imports an anused (and soon deprecated) module

6ce9fc72 10/25/2012 07:37 pm Stavros Sachtouris

Handle connection.close in repeated requests

1785ad41 09/18/2012 03:55 pm Stavros Sachtouris

Voodo-fix mysterious header-destroying request bug

9a7efb0d 09/18/2012 12:11 pm Stavros Sachtouris

Greenlet/thread safe header/param requests

Requests can now distinguish between "global" headers/params
and thread-specific.

74275b1a 09/12/2012 12:16 pm Stavros Sachtouris

Minor bugfixes

5b263ba2 09/11/2012 06:10 pm Stavros Sachtouris

Implement kamakicon, use it

kamakicon: an httplib/ObjectPool based connection class

b1713259 09/10/2012 04:30 pm Stavros Sachtouris

Minor bugfixes

6ad245d5 09/07/2012 12:51 pm Stavros Sachtouris

Use connection pool after redesigning http connect

HTTPRequestsXxx objects now use connection pooling
Atually, connections are not pooled, but responses are.

Implementation of connection pooling with httplib not ready yet

Pooling tested in uploads

58821ef5 08/30/2012 03:51 pm Stavros Sachtouris

Handle requests exceptions

a52d2256 08/29/2012 07:31 pm Stavros Sachtouris

Reset headers and params at every request

ab9cdbc3 08/29/2012 06:08 pm Stavros Sachtouris

Minor bigfixes in error handling

2f749e6e 08/29/2012 05:26 pm Stavros Sachtouris

Major changes in client, fixed setup

Seperate Client to Client and HTTPConnection
The later is put in a separate package kamaki.client.connection
It manages headers, params, method, url and data of a connection
but the actuall http connection is not implemented at this...

5cffe0b4 08/28/2012 06:48 pm Stavros Sachtouris

Create HTTPRequest class

Implements HTTPConnection using the requests pypi package

a2e8e549 08/28/2012 05:22 pm Stavros Sachtouris

Seperate commands specs and connection packages

d804de82 08/24/2012 05:51 pm Stavros Sachtouris

Add more functionalities to dnl/hashmap/versions

download: progressbar control, overide file, resume (default)
all: extra options for conditional retrieval

d726b3d0 08/24/2012 01:46 pm Stavros Sachtouris

Fixed bug with reset_headers

Now headers are reset after each request by default
but there is an option for not reseting headers, in low
level

71ff5136 08/06/2012 06:49 pm Stavros Sachtouris

Create CLIError class, use it in pithos_cli

435008b6 08/01/2012 05:48 pm Stavros Sachtouris

Asynchronous uploads with gevent-greenlet

Merge with koukis-fix

b08af3e6 07/31/2012 05:09 pm Stavros Sachtouris

Start unittest for large file pithos operations

16ce7b91 07/26/2012 03:36 pm Stavros Sachtouris

Adjusting account/container opps + bug fixes

9f74ca46 07/24/2012 05:37 pm Stavros Sachtouris

Added tests for object_put + minor bug fixes

4adfa919 07/17/2012 02:59 pm Stavros Sachtouris

Full Pithos+ support at object level

Rest calls HEAD GET PUT COPY MOVE POST DELETE at object level fully
support Pithos+ capabilities by adding generic methods. Adjusted
existing methods to take advantage of these
Not thoroughly tested...

e742badc 07/10/2012 05:09 pm Stavros Sachtouris

Simplified Client code

Added set_header method then replaced code that pushes headers to the query with calls to this much simpler method

f49084df 07/10/2012 05:09 pm Stavros Sachtouris

Not optimal append and truncate

In CLI added append and truncate for objects

In storage added update_object which acts as a multifunction. It currently loads the whole file on memory, so it needs optimization

6de1f262 07/10/2012 05:09 pm Stavros Sachtouris

Fixed and optiomized delmeta for objects

In storage, fixed delmeta which was disfunctional
In pithos added an optimized implementation using the pithos update parameter

72462fc2 07/10/2012 05:09 pm Giorgos Verigakis

Move to requests 0.12.1

44b8928d 07/10/2012 05:09 pm Giorgos Verigakis

Make source PEP8 compliant

f3a722d4 07/10/2012 05:09 pm Stavros Sachtouris

Added mkdir functionality to storage

0e4bec91 07/10/2012 05:09 pm Stavros Sachtouris

Added set_account_meta

In CLI:
- added store_set_account_meta
- added auxiliary dict_from_args in utils.py

In storage:
- added set_account_meta
- created client/util.py to store auxiliary methods semantically indepented Client
- added auxiliary prefix_keys to client/utils.py...

af3b2b36 07/10/2012 05:09 pm Stavros Sachtouris

Added store_setmeta (pithos API implementation)

-In CLI:
- store_meta for account, container and/or object
- minor fixes to meta

In storage,pithos:
- methods replace_account/container/object_meta in storage (OpenStack API)
- methods set_account/container/object_meta in pithos (Pithos API)...

e6b39366 07/10/2012 05:09 pm Stavros Sachtouris

Added store_delmenta (delete specific meta)

In CLI:
- store_delmeta for account, container, object
In storage,pithos:
- store_account_delmeta
- store_container_delemeta
- store_object_delmeta (is buggy, hope to fix it soon)...
87688514 07/10/2012 05:09 pm Stavros Sachtouris

Added un/publish object

8614814c 05/17/2012 03:36 pm Giorgos Verigakis

Make source PEP8 compliant

bb2e6a2c 05/14/2012 04:43 pm Giorgos Verigakis

Move to requests 0.12.1

2e84ea08 05/09/2012 01:18 pm Giorgos Verigakis

Call superclass init in ClientError

2aa8f6d1 05/09/2012 01:18 pm Giorgos Verigakis

Add Content-Length header when sending data

215321e9 05/09/2012 01:18 pm Giorgos Verigakis

Disable certificate verification

Was failing with the production server

dba6ec94 05/09/2012 01:18 pm Giorgos Verigakis

Add support for Astakos API

Add "astakos authenticate" command

a591a7b4 05/09/2012 01:18 pm Giorgos Verigakis

Add a store list command

df79206f 05/09/2012 01:18 pm Giorgos Verigakis

Refactored networking

Adds requests dependency.

59dec327 04/19/2012 07:21 pm Giorgos Verigakis

Call superclass init in ClientError

6c62a96d 04/04/2012 12:55 pm Giorgos Verigakis

Add Content-Length header when sending data

be4f79ea 03/19/2012 06:33 pm Giorgos Verigakis

Disable certificate verification

Was failing with the production server

43ca98ee 03/05/2012 04:23 pm Giorgos Verigakis

Add support for Astakos API

Add "astakos authenticate" command

2bcb595a 02/28/2012 07:53 pm Giorgos Verigakis

Add a store list command

6a0b1658 02/21/2012 07:51 pm Giorgos Verigakis

Refactored networking

Adds requests dependency.

d2cea1e2 01/19/2012 06:41 pm Giorgos Verigakis

Add Pithos support

  • Use Pithos' smart upload if available
  • Add store container command
  • Add store delete command
a1c50326 01/19/2012 01:08 pm Giorgos Verigakis

Modularize clients