History log of /4.6.4/couchstore/python/ (Results 1 - 25 of 29)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: v6.0.3, v5.5.3, v5.1.2, v5.1.0, v5.0.0, v4.6.0, v4.6.0-DP, v4.5.1-MP1, v4.5.0, v4.5.1, v4.1.0
7d6bc22a12-Oct-2015 Mike Wiederhold <mike@couchbase.com>

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@

MB-16454: Fix issues with python bindings on osx 10.11

Change-Id: If02848550b211fcf3151ca05c594eba4267f7dce
Reviewed-on: http://review.couchbase.org/56276
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

Revision tags: v3.1.2, v3.0.3, v3.0.2, v3.0.1, v3.0.0
069ab01c04-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43

fix size propery of DocumentInfo representation

Change-Id: I05ca5b105835b454593f1e3fbec682306e1bfaa2
Reviewed-on: http://review.couchbase.org/34142
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

2ba0189c02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

remove unused code

Change-Id: Idacdf5040c9d99f83baefb93b00e367e3ec6e2e1
Reviewed-on: http://review.couchbase.org/34109
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-b

remove unused code

Change-Id: Idacdf5040c9d99f83baefb93b00e367e3ec6e2e1
Reviewed-on: http://review.couchbase.org/34109
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

ae31089d02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." names

explicit usage of ctypes namespace

there is no need to populate namespace with something that you
don't use. It can only introduce more unexpected bugs.

explicit "ctypes." namespace prefix makes code more readable and
safe.

Change-Id: I0abf234cf3061cdd4538ac5b7fa46e8724e67eda
Reviewed-on: http://review.couchbase.org/34108
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

fddaf0a002-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller

avoid too long lines

making code more readable

Change-Id: Ib2a886f4cf4dc782ecb8050c2032daa38ed6e1f5
Reviewed-on: http://review.couchbase.org/34107
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

6c1283ac02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Mil

minor code cleanup

based on common sense and PEP 8

Change-Id: Ibe3a956fb0aaf78c0691ada46d59c07354362e5c
Reviewed-on: http://review.couchbase.org/34106
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

5a581ace02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage4

get rid of comments that only repeat class names

Change-Id: I68b05e366be3cb598d0866c65b665840c5497a6b
Reviewed-on: http://review.couchbase.org/34105
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

3865411602-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-b

use 2 blank lines before class declaration

according to PEP 8.

Change-Id: I05c99dfc10232ad667ba6c12d21653abb6731b78
Reviewed-on: http://review.couchbase.org/34104
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

7e67378002-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.

remove whitespaces after function and class names

since it contradicts with existing conventions

Change-Id: Ifcabe238684137bbac7f245f673a8fc7a221533b
Reviewed-on: http://review.couchbase.org/34103
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

6c65a79e02-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdb

use sys function for exit instead of helper

see http://docs.python.org/2/library/constants.html#constants-added-by-the-site-module
for details

Change-Id: Ieb81434e530e54ba8f8bdbdca10695f96874c1bc
Reviewed-on: http://review.couchbase.org/34102
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

63a8a4b302-Mar-2014 pavel-paulau <pavel.paulau@gmail.com>

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://rev

generalize sequence of libcouchstore imports

and avoid unnecessarily repeating try-except statements

Change-Id: I215b2730212e1295635800aa11177c569ea7fc3e
Reviewed-on: http://review.couchbase.org/34101
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

a48827f115-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wi

MB-9661: API to count changes between two sequence numbers

Change-Id: Icf62266bf29b5981d1e9dd6d33aa784a5a90d04f
Reviewed-on: http://review.couchbase.org/32412
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>

show more ...

743d45fb16-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77a

Python binding should look for couchstore.dll

The new CMake based build outputs the couchstore library as
couchstore.dll rather than libcouchstore-1.dll

Change-Id: I70c9c2e7e77ad5c9c40d1ec80d63675875caf114
Reviewed-on: http://review.couchbase.org/32541
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...

1b613a6b14-Jan-2014 Aaron Miller <apage43@ninjawhale.com>

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@

MB-9118 Add API to rewind handle to next-oldest header

Change-Id: I81c46dd0f6d928b163fb3b379e4ad4562b3144dd
Reviewed-on: http://review.couchbase.org/32364
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

9023808d16-Oct-2013 Aaron Miller <apage43@ninjawhale.com>

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: b

Python: Header position should be 64-bits long

Fixes MB-7347

Change-Id: Ibe6bca62d453405eb2e7a38ef2514a3c51d1732d
Reviewed-on: http://review.couchbase.org/29590
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

Revision tags: 2.1.1r, 2.1.0r, 2.0.2r
963fc26e10-May-2013 Aaron Miller <apage43@ninjawhale.com>

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cu

MB-8030 Give explicit types for *all* numbers in couchstore.py

Change-Id: Ie41f09e20a2a6c83061c62fcdc69944c24565fb3
Reviewed-on: http://review.couchbase.org/26248
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

abc2af1306-May-2013 pavel-paulau <pavel.paulau@gmail.com>

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

Al

MB-7879: wrap python integers into c_uint64

Using Python values as they are is not safe. We must explicitly
specify uint64_t in order to avoid problems with 32-bit platforms.

All unit tests passed (both 32-bit and 64-bit GNU/Linux).

Change-Id: Id3c9544908f2c02ac94fcdf62f222d75740f3c89
Reviewed-on: http://review.couchbase.org/26131
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

Revision tags: 2.0.1-macosx, 2.0.1-linux, 2.0.0-couchbase
e99a4e8f02-Dec-2012 Steve Yen <steve.yen@gmail.com>

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platf

MB-7297 Use size_t for python wrapping for 32-bit support

The couchstore/couch_db.h uses size_t for several struct fields, and
size_t can be either 32-bits or 64-bits, depending on platform.
So, instead of c_ulonglong, use c_size_t for those fields.

Here, we assume sizeof(off_t) == sizeof(size_t). Not a 100%
bulletproof assumption, but it seems to work on tests.

Additionally, use uint64_t for the couchstore_open_db() flags
parameter rather than the platform-specific int.

Change-Id: I36898d0260d44d57fe16ff7e16c7759c4686b4e4
Reviewed-on: http://review.couchbase.org/22969
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

d0e70d0d18-Oct-2012 Pavel.Paulau <pavel.paulau@gmail.com>

MB-6928: import ctypes with fallback

Fallback steps:
1. Try to import ctypes from our library
2. If import fails - remove couchbase library from system path and
try again.
3.

MB-6928: import ctypes with fallback

Fallback steps:
1. Try to import ctypes from our library
2. If import fails - remove couchbase library from system path and
try again.
3. Exit if it still fails; otherwise return library to system path
and keep working.

Change-Id: I2b556597bb070b1426ca6824af6e9f58bf363953
Reviewed-on: http://review.couchbase.org/21750
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>

show more ...

267c1a6506-Sep-2012 Aaron Miller <apage43@ninjawhale.com>

MB-100 Tests should not assume deleted keys take 0 space

space_used represents the amount of data in a file that is not "junk",
or that will be retained after compaction. Because metadat

MB-100 Tests should not assume deleted keys take 0 space

space_used represents the amount of data in a file that is not "junk",
or that will be retained after compaction. Because metadata about
deleted items is kept around, a file with all the items that had been
present before will not have a space_used of 0

Change-Id: Ib41f55135ba739a91c08ec6866c84e8b782bf9ef
Reviewed-on: http://review.couchbase.org/20597
Reviewed-by: Jens Alfke <jens@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>

show more ...

Revision tags: 2.0.0r
946c88aa25-Jul-2012 Bin Cui <bin.cui@gmail.com>

CBD-465: Depend on PATH environment variable

Set the environment PATH from caller side.

Change-Id: If9565f049ef4d6d47cce8e17b18074157ef30daf
Reviewed-on: http://review.couchbase

CBD-465: Depend on PATH environment variable

Set the environment PATH from caller side.

Change-Id: If9565f049ef4d6d47cce8e17b18074157ef30daf
Reviewed-on: http://review.couchbase.org/18841
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

c2aaec0d20-Jul-2012 Bin Cui <bin.cui@gmail.com>

CBD-465: Add couchstore binding on windows

Change-Id: I344bbec2a56a7b733bcee70af6bdad03a209c01f
Reviewed-on: http://review.couchbase.org/18624
Reviewed-by: Steve Yen <steve.yen@gmail

CBD-465: Add couchstore binding on windows

Change-Id: I344bbec2a56a7b733bcee70af6bdad03a209c01f
Reviewed-on: http://review.couchbase.org/18624
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

e6371db029-Jun-2012 Jens Alfke <jens@couchbase.com>

MB-5738: Make binary data work in Python API

The Python 'couchstore' library had trouble converting Python strings
to SizedBuf structs when the strings contained embedded null bytes.

MB-5738: Make binary data work in Python API

The Python 'couchstore' library had trouble converting Python strings
to SizedBuf structs when the strings contained embedded null bytes.
Figured out how to fix this.

This patch also incorporates Steve's new unit tests that exposed the
problem, as well as some extra ones I added.

Change-Id: I213c1a38bec990d218917d3b2c6f741cf0b1adff
Reviewed-on: http://review.couchbase.org/17763
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>

show more ...

53d0dbdc20-Jun-2012 Jens Alfke <jens@couchbase.com>

MB-5621: Added couchstore_db_info w/Python binding

Adds ability to get document count and total doc size.
As part of this, extended couchstore_docinfos_by_id and
couchstore_docinfos_

MB-5621: Added couchstore_db_info w/Python binding

Adds ability to get document count and total doc size.
As part of this, extended couchstore_docinfos_by_id and
couchstore_docinfos_by_sequence to support iterating
over ranges (the "fold" mode of btree_lookup,)

Change-Id: Ied2078ce9399da267045b7733e02ea75651a45f2
Reviewed-on: http://review.couchbase.org/17480
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Steve Yen <steve.yen@gmail.com>

show more ...

0ad474ed20-Jun-2012 Jens Alfke <jens@couchbase.com>

MB-5620: Python bindings for local docs

Added a 'localDocs' property to the CouchStore class,
which can be used like a dictionary to get/set local docs.

Change-Id: I864fe0a670f8

MB-5620: Python bindings for local docs

Added a 'localDocs' property to the CouchStore class,
which can be used like a dictionary to get/set local docs.

Change-Id: I864fe0a670f843e1e009614686f9508e255adec1
Reviewed-on: http://review.couchbase.org/17459
Tested-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>

show more ...

12