Commit Graph

143 Commits

Author SHA1 Message Date
Roger Meier
05ab89a128 THRIFT-1745 Python JSON protocol
fix typo detected by cross language test suite


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1404914 13f79535-47bb-0310-9956-ffa450edef68
2012-11-02 10:36:59 +00:00
Roger Meier
85fb6de7f4 THRIFT-1745 Python JSON protocol
TJSONProtocol.py: Frederic Delbos

THRIFT-847 Test Framework harmonization across all languages 
Integration into py lib and test suite



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1404838 13f79535-47bb-0310-9956-ffa450edef68
2012-11-02 00:05:42 +00:00
Jake Farrell
6fcecd45a7 Updating Thrift trunk version to 1.0.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1397293 13f79535-47bb-0310-9956-ffa450edef68
2012-10-11 20:34:25 +00:00
Jake Farrell
6c5ee6ad20 Thrift-1604:Python exxception handeling for changes from PEP3110
Client: py
Patch: Jake Farrell

Python PEP 3110 changed exception handling by replacing the ',' with 'as'. This was initially introduced in python 2.6 and in 3.0 the ',' usage is no longer suppported. Since exception handling through out the py lib uses the ',' it will need to be converted over to using the 'as' syntax for exceptions



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1339941 13f79535-47bb-0310-9956-ffa450edef68
2012-05-18 01:00:39 +00:00
Roger Meier
cfff8569bb THRIFT-1569 thrift: add stop() method to python TNonblockingServer
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325784 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:24:55 +00:00
Roger Meier
3f5a264cd9 THRIFT-1568 Thrift: Add User-Agent header to Python THttpClient
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325781 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 14:20:08 +00:00
Roger Meier
fa392e91ad THRIFT-1560 Add setCustomHeaders() method to python thrift lib
Patch: Dave Watson

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325041 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 22:15:15 +00:00
Bryan Duxbury
6972041392 THRIFT-1480. py: remove tabs, adjust whitespace and address PEP8 warnings
This patch addresses a host of PEP8 lint problems.

Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1226890 13f79535-47bb-0310-9956-ffa450edef68
2012-01-03 17:32:30 +00:00
Jake Farrell
9901069442 Updating trunk to 0.9.0 version.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1208214 13f79535-47bb-0310-9956-ffa450edef68
2011-11-30 02:09:46 +00:00
Jake Farrell
a0dd75d7c8 Thrift-386: Make it possible to build the Python library without the extension
Client: py
Patch: Jake Farrell

patch for py lib which will attempt to build the C extension and if it fails falls back to just building the library without any extensions.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1206398 13f79535-47bb-0310-9956-ffa450edef68
2011-11-26 05:23:09 +00:00
Jake Farrell
e0c5316736 Thrift-1426: Dist package missing files for release 0.8
Client: build
Patch: Jake Farrell

Cleans up dist target and removes extra folders.



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1202686 13f79535-47bb-0310-9956-ffa450edef68
2011-11-16 12:58:36 +00:00
Jake Farrell
1290d42162 THRIFT-1407: Typo in Python socket server causes Thrift to fail when we enable a global socket timout
Client: py
Patch: adalc

Fixes typo in python socket server timeout



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189170 13f79535-47bb-0310-9956-ffa450edef68
2011-10-26 12:36:17 +00:00
Roger Meier
c3f033f40b THRIFT-1342 Compilation problem on Windows of fastbinary.c
Patch: alexandre parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170180 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 13:54:05 +00:00
Roger Meier
f4eec7a57b THRIFT-1115 python TBase class for dynamic (de)serialization, and __slots__ option for memory savings
Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1169492 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 18:16:21 +00:00
Jake Farrell
ff1c69bc1c Updating python setup.py for deploying client to pypi
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1158869 13f79535-47bb-0310-9956-ffa450edef68
2011-08-17 19:00:33 +00:00
Jake Farrell
9c76258564 updating trunk from 0.7.0-dev to 0.8.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1157426 13f79535-47bb-0310-9956-ffa450edef68
2011-08-13 21:29:36 +00:00
Roger Meier
345ecc739a THRIFT-690 add new ApplicationExceptions (INTERNAL_ERROR, PROTOCOL_ERROR) to the following languages: as3, c_glib, cocoa, cpp, erl, hs, js, nodejs, ocaml, perl, py, rb
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153412 13f79535-47bb-0310-9956-ffa450edef68
2011-08-03 09:49:27 +00:00
Bryan Duxbury
54df97c507 THRIFT-1208. py: Compact protocol always reads and writes booleans as true
Patch: liwei

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1146180 13f79535-47bb-0310-9956-ffa450edef68
2011-07-13 18:11:29 +00:00
Bryan Duxbury
1606659171 THRIFT-1103. py: TZlibTransport for python, a zlib compressed transport
This patch adds a new TZlibTransport to the Python library and extends the test suite to exercise it.

Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1084276 13f79535-47bb-0310-9956-ffa450edef68
2011-03-22 18:06:04 +00:00
Bryan Duxbury
5040911bfa THRIFT-1100. py: python TSSLSocket improvements, including certificate validation
This patch adds a number of features to TSSLSocket and TSSLServerSocket.

Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083880 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 17:59:49 +00:00
Bryan Duxbury
59d4efda81 THRIFT-1094. py: bug in TCompactProto python readMessageEnd method and updated test cases
This patch fixes a TCompactProtocol bug and expands the test cases to exercise the problem.

Patch: Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1083877 13f79535-47bb-0310-9956-ffa450edef68
2011-03-21 17:38:22 +00:00
Bryan Duxbury
df4cffd34a THRIFT-1093. py: several bugs in python TCompactProtocol
Patch; Will Pierce

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1081864 13f79535-47bb-0310-9956-ffa450edef68
2011-03-15 17:16:09 +00:00
Bryan Duxbury
a48b7d6e52 THRIFT-1083. py: Preforking python process pool server
Patch: Dvir Volk

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1079913 13f79535-47bb-0310-9956-ffa450edef68
2011-03-09 18:05:58 +00:00
Bryan Duxbury
2b969add48 THRIFT-1068. py: Python SSL Socket Support
A python implementation of TSSLSocket.

Patch: Kevin Worth

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073447 13f79535-47bb-0310-9956-ffa450edef68
2011-02-22 18:20:53 +00:00
Bryan Duxbury
e0498c984e THRIFT-1049. py: Allow for TServerSocket python library to bind to a specific host
This patch adds a new host argument to TServerSocket that allows it to bind to a specific host.

Patch: Jake Farrell

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1063806 13f79535-47bb-0310-9956-ffa450edef68
2011-01-26 17:54:02 +00:00
Bryan Duxbury
c216556bd6 update version numbers to 0.7.0-dev
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1056453 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 18:45:29 +00:00
Roger Meier
a8b52c7a8b THRIFT-6 TLP URL's and email's, haskell, more details
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1029964 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 07:33:30 +00:00
Roger Meier
2287278140 THRIFT-6 update Version Info for several languages, add print-version to Makefile.am
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1026299 13f79535-47bb-0310-9956-ffa450edef68
2010-10-22 11:20:25 +00:00
David Reiss
abafd79aee THRIFT-335. python: Initial implementation of TCompactProtocol
Seems to work.  No interoperability testing with other languages yet.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001827 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 17:28:15 +00:00
David Reiss
a9ca25a81e THRIFT-666. python: Allow THttpServer's responses to be overridden
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991986 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:36:03 +00:00
David Reiss
c564fa5692 THRIFT-596. python: Make the TBufferedTransport read buffer size configurable
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991985 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:36:00 +00:00
Bryan Duxbury
d6a02ff99b THRIFT-597. py: Python THttpServer performance improvements
This enables buffered I/O and ThreadingMixin.

Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991971 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:14:27 +00:00
Bryan Duxbury
f2ef59ffbf THRIFT-598. py: Allow Python's threading servers to use daemon threads
Patch: David Reiss

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991969 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 15:12:06 +00:00
Anthony F. Molinaro
7112c0712e THRIFT-875 : missing dist file
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991813 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 05:09:05 +00:00
Bryan Duxbury
727d67dcfa THRIFT-721. py: THttpClient ignores url parameters
Respect query string in THttpClient and generated remotes. Also, add an error message on unknown methods.

Patch: Thomas Kho

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991786 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 01:00:19 +00:00
Bryan Duxbury
686d92ce66 THRIFT-824. py: TApplicationException.__str__() refers to class constants as globals
Refer to constants via 'self'.

Patch: Peter Schuller

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@991781 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02 00:36:18 +00:00
David Reiss
73af3b7c4c THRIFT-869. python: Disguise ECONNRESET as EOF on BSD
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990955 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 21:57:07 +00:00
Bryan Duxbury
0d28efac2d THRIFT-855. py: Include optimized compiled python objects in install
This patch causes the .pyc files to be included in the install.

Patch: Anthony Molinaro

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@987593 13f79535-47bb-0310-9956-ffa450edef68
2010-08-20 17:59:17 +00:00
Bryan Duxbury
b7887b860b THRIFT-789. Files missing proper Apache license header
Added the Apache license header to a bunch of files that were missing it.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@953167 13f79535-47bb-0310-9956-ffa450edef68
2010-06-09 21:30:54 +00:00
Bryan Duxbury
cb6d9708e2 THRIFT-438. py: Add support for Twisted.web in servers and clients
This patch adds a Twisted.web resource that can be used for processing incoming Thrift requests over HTTP

Patch: Esteve Fernandez

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939413 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 18:14:54 +00:00
David Reiss
c548b3dd63 THRIFT-475. python: Eliminate DeprecationWarning
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920661 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 05:19:18 +00:00
David Reiss
ff3d249d41 THRIFT-658. python: Add THttpClient.setTimeout()
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920660 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 05:19:16 +00:00
David Reiss
6acc269d18 THRIFT-695. python: [de]serialize convenience functions
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@916508 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 00:56:02 +00:00
Todd Lipcon
f5dea4c7f3 THRIFT-637. python: Fix mixing of oneway and regular requests in TNonblockingServer
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@886646 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 01:18:44 +00:00
David Reiss
034c49f0fc THRIFT-612. python: Fix exception bug in TFramedTransport.cstringio_refill
readFrame was being called without "self."

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@830673 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28 17:07:14 +00:00
Esteve Fernandez
bff2a35adf THRIFT-586. python: TSocket incorrectly sets the exception type when an end of file error occurs
TTransportException's type was set to "Transport not open" in some cases, which should
be its message.
Use named arguments and set the type for TTransportException to END_OF_FILE in TSocket#read
and TSocket#write.

reviewer: dreiss



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@818429 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24 10:22:00 +00:00
Esteve Fernandez
d3571c2ace THRIFT-535. py: Twisted Thrift protocol max length is too small (fix off-by-one error in MAX_LENGTH)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795187 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 18:35:52 +00:00
Esteve Fernandez
c5a7c151e1 THRIFT-535. py: Twisted Thrift protocol max length is too small
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@795176 13f79535-47bb-0310-9956-ffa450edef68
2009-07-17 18:18:19 +00:00
David Reiss
a043be31fc THRIFT-495. python: Raise a TTransportException if TSocket is not open
Previously, TSocket.write would raise an AttributeError if the transport
had not been opened.  A TTransportException with the code set to
NOT_OPEN is more appropriate.  The cost of the check should be
negligible, since TSocket.write is already fairly expensive (it does a
system call).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773762 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 02:17:43 +00:00
David Reiss
16514d0a72 THRIFT-494. python: Update meta-information in setup.py
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@773306 13f79535-47bb-0310-9956-ffa450edef68
2009-05-10 05:14:44 +00:00