services/python-requests.git
12 years agofix test for 2.6's unittest
Kenneth Reitz [Thu, 17 May 2012 00:13:55 +0000 (17:13 -0700)]
fix test for 2.6's unittest

12 years agoauthors
Kenneth Reitz [Thu, 17 May 2012 00:09:43 +0000 (17:09 -0700)]
authors

12 years agoIssue #505: Allow disabling of cookie persistence/sending
Arup Malakar [Wed, 16 May 2012 22:07:15 +0000 (15:07 -0700)]
Issue #505: Allow disabling of cookie persistence/sending

12 years agoMerge pull request #562 from slingamn/urandom
Kenneth Reitz [Wed, 16 May 2012 05:49:27 +0000 (22:49 -0700)]
Merge pull request #562 from slingamn/urandom

replace utils.randombytes with os.urandom

12 years agoreplace utils.randombytes with os.urandom
Shivaram Lingamneni [Wed, 2 May 2012 01:20:44 +0000 (18:20 -0700)]
replace utils.randombytes with os.urandom

12 years agoMerge pull request #614 from ib-lundgren/multipart_fix
Kenneth Reitz [Tue, 15 May 2012 15:39:20 +0000 (08:39 -0700)]
Merge pull request #614 from ib-lundgren/multipart_fix

Better content-type detection and unicode fix

12 years agoUnicode fix for py3
Ib Lundgren [Tue, 15 May 2012 15:37:15 +0000 (17:37 +0200)]
Unicode fix for py3

12 years agoMerge pull request #613 from surajbarkale/patch-1
Kenneth Reitz [Tue, 15 May 2012 15:31:43 +0000 (08:31 -0700)]
Merge pull request #613 from surajbarkale/patch-1

Remove sharing of base_headers config between sessions.

12 years agoBetter content-type detection and unicode fix
Ib Lundgren [Tue, 15 May 2012 15:20:01 +0000 (17:20 +0200)]
Better content-type detection and unicode fix

12 years agoRemove sharing of base_headers config between sessions.
Suraj Barkale [Tue, 15 May 2012 14:17:02 +0000 (19:47 +0530)]
Remove sharing of base_headers config between sessions.
Since base_headers is a dictionary, it's reference was shared with all instances of
Session objects. Using deepcopy here should not incur large performance penalty.

12 years agoMerge pull request #611 from pnasrat/develop
Kenneth Reitz [Mon, 14 May 2012 02:47:19 +0000 (19:47 -0700)]
Merge pull request #611 from pnasrat/develop

Improve developer documentation.

12 years agoImprove developer documentation.
Paul Nasrat [Sun, 13 May 2012 23:09:52 +0000 (16:09 -0700)]
Improve developer documentation.

I cloned, followed the todo and had failures as no certifi or chardet.

Fixed up so easy to get started.

12 years agoMerge pull request #610 from medwards/whitespace
Kenneth Reitz [Sun, 13 May 2012 18:01:22 +0000 (11:01 -0700)]
Merge pull request #610 from medwards/whitespace

Removed extra whitespace

12 years agoRemoved extra whitespace
Michael Edwards [Sun, 13 May 2012 09:59:31 +0000 (11:59 +0200)]
Removed extra whitespace

12 years agoMerge pull request #607 from ztest/develop
Kenneth Reitz [Sat, 12 May 2012 21:23:04 +0000 (14:23 -0700)]
Merge pull request #607 from ztest/develop

Fix a docstring typo (of -> if).

12 years agoFix a docstring typo (of -> if).
ztest [Sat, 12 May 2012 17:09:14 +0000 (13:09 -0400)]
Fix a docstring typo (of -> if).

12 years agoremove unused import
Shivaram Lingamneni [Thu, 10 May 2012 22:14:44 +0000 (15:14 -0700)]
remove unused import

12 years agosemver
Kenneth Reitz [Thu, 10 May 2012 22:11:35 +0000 (17:11 -0500)]
semver

12 years agoremove oreos
Kenneth Reitz [Thu, 10 May 2012 22:10:47 +0000 (17:10 -0500)]
remove oreos

12 years agoremove gevent extras_require
Kenneth Reitz [Thu, 10 May 2012 22:09:53 +0000 (17:09 -0500)]
remove gevent extras_require

12 years agoremove requests async tests
Kenneth Reitz [Thu, 10 May 2012 22:02:22 +0000 (17:02 -0500)]
remove requests async tests

12 years agoremove requests.async
Kenneth Reitz [Thu, 10 May 2012 22:01:09 +0000 (17:01 -0500)]
remove requests.async

12 years agomakin' history
Kenneth Reitz [Thu, 10 May 2012 18:10:50 +0000 (13:10 -0500)]
makin' history

12 years agoMerge pull request #603 from benmao/develop
Kenneth Reitz [Thu, 10 May 2012 18:07:00 +0000 (11:07 -0700)]
Merge pull request #603 from benmao/develop

get cookie like dict, such as s.cookies.get('test', 'no cookie')

12 years agoMerge pull request #604 from joshimhoff/develop
Kenneth Reitz [Thu, 10 May 2012 18:06:24 +0000 (11:06 -0700)]
Merge pull request #604 from joshimhoff/develop

New implementation of safe_mode.

12 years agoget cookie like dict, such as self.cookies.get('test', 'no cookie')
ben [Thu, 10 May 2012 14:17:23 +0000 (22:17 +0800)]
get cookie like dict, such as self.cookies.get('test', 'no cookie')

12 years agoNow, safe_mode will catch socket.timeout too.
Josh Imhoff [Wed, 9 May 2012 19:13:12 +0000 (15:13 -0400)]
Now, safe_mode will catch socket.timeout too.

12 years agoNew implementation of safe_mode. Now, we throw exceptions in models.py regardless...
Josh Imhoff [Wed, 9 May 2012 18:47:29 +0000 (14:47 -0400)]
New implementation of safe_mode. Now, we throw exceptions in models.py regardless of safe_mode. We catch those exceptions at the API level and return a blank Response. See safe_mode.py for details.

12 years agoMerge pull request #595 from reclosedev/sess-cookies-no-resp
Kenneth Reitz [Tue, 8 May 2012 15:06:51 +0000 (08:06 -0700)]
Merge pull request #595 from reclosedev/sess-cookies-no-resp

Session cookies not saved when Session.request is called with return_response=False

12 years agoAdd myself to AUTHORS.rst
Roman Haritonov [Tue, 8 May 2012 10:30:24 +0000 (14:30 +0400)]
Add myself to AUTHORS.rst

12 years agoMove session cookie saving from Session.request() to Request._build_response()
Roman Haritonov [Tue, 8 May 2012 09:02:39 +0000 (13:02 +0400)]
Move session cookie saving from Session.request() to  Request._build_response()

12 years agoTest async requests with Session cookies
Roman Haritonov [Tue, 8 May 2012 08:55:36 +0000 (12:55 +0400)]
Test async requests with Session cookies

12 years agoTest if cookies are saving to session when session.request is called with return_resp...
Roman Haritonov [Tue, 8 May 2012 08:17:58 +0000 (12:17 +0400)]
Test if cookies are saving to session when session.request is called with return_response=False

12 years agoMerge pull request #594 from slingamn/makefile_again
Kenneth Reitz [Tue, 8 May 2012 05:46:00 +0000 (22:46 -0700)]
Merge pull request #594 from slingamn/makefile_again

unbreak the Jenkins build again/hopefully :-/

12 years agoremove the oauthlib trunk from requirements.txt
Shivaram Lingamneni [Tue, 8 May 2012 05:40:11 +0000 (22:40 -0700)]
remove the oauthlib trunk from requirements.txt

12 years agounbreak the Jenkins build (again/hopefully)
Shivaram Lingamneni [Tue, 8 May 2012 05:36:51 +0000 (22:36 -0700)]
unbreak the Jenkins build (again/hopefully)

Pyflakes is unavailable in the Jenkins Python 3 / PyPy environments

12 years agothread safe
Kenneth Reitz [Tue, 8 May 2012 05:24:30 +0000 (01:24 -0400)]
thread safe

12 years agogah
Kenneth Reitz [Tue, 8 May 2012 05:21:48 +0000 (01:21 -0400)]
gah

12 years agov0.12.1 v0.12.1
Kenneth Reitz [Tue, 8 May 2012 05:18:05 +0000 (01:18 -0400)]
v0.12.1

12 years agoredirects clear files also
Kenneth Reitz [Tue, 8 May 2012 05:14:17 +0000 (01:14 -0400)]
redirects clear files also

Fixes #575

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Tue, 8 May 2012 04:58:32 +0000 (00:58 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agoMerge pull request #559 from barberj/issue_526
Kenneth Reitz [Tue, 8 May 2012 04:58:20 +0000 (21:58 -0700)]
Merge pull request #559 from barberj/issue_526

Issue #526

12 years agoyay json
Kenneth Reitz [Tue, 8 May 2012 04:57:46 +0000 (00:57 -0400)]
yay json

fixes #593

12 years agoadding test verifying data httpbin sees
barberj [Sun, 6 May 2012 23:24:37 +0000 (19:24 -0400)]
adding test verifying data httpbin sees

12 years agosynatx error for python3. all strings are unicode
barberj [Sun, 6 May 2012 22:50:42 +0000 (18:50 -0400)]
synatx error for python3. all strings are unicode

12 years agosending strings to be received as files
barberj [Wed, 25 Apr 2012 20:45:21 +0000 (16:45 -0400)]
sending strings to be received as files

12 years agoadded unicode strings
barberj [Sat, 21 Apr 2012 03:30:45 +0000 (23:30 -0400)]
added unicode strings

12 years agocredit where credits due
barberj [Sat, 21 Apr 2012 02:18:28 +0000 (22:18 -0400)]
credit where credits due

12 years agoadded mutlipart file=strings
barberj [Sat, 21 Apr 2012 02:15:35 +0000 (22:15 -0400)]
added mutlipart file=strings

12 years agoMerge pull request #590 from berkerpeksag/doc-links
Kenneth Reitz [Sun, 6 May 2012 19:54:06 +0000 (12:54 -0700)]
Merge pull request #590 from berkerpeksag/doc-links

Fixed broken links in TODO docs.

12 years agoFixed broken links in TODO docs.
Berker Peksag [Sun, 6 May 2012 19:26:28 +0000 (22:26 +0300)]
Fixed broken links in TODO docs.

12 years agoMerge pull request #585 from chazapis/develop
Kenneth Reitz [Fri, 4 May 2012 18:49:49 +0000 (11:49 -0700)]
Merge pull request #585 from chazapis/develop

Fix out-of-range issue with iter_lines (#515).

12 years agoMerge pull request #587 from slingamn/jenkins
Kenneth Reitz [Fri, 4 May 2012 18:48:35 +0000 (11:48 -0700)]
Merge pull request #587 from slingamn/jenkins

unbreak the Jenkins build by excluding ./env/*

12 years agounbreak the Jenkins build by excluding ./env/*
Shivaram Lingamneni [Fri, 4 May 2012 11:45:30 +0000 (04:45 -0700)]
unbreak the Jenkins build by excluding ./env/*

12 years agoMerge pull request #579 from slingamn/pyflakes.release
Kenneth Reitz [Fri, 4 May 2012 06:29:04 +0000 (23:29 -0700)]
Merge pull request #579 from slingamn/pyflakes.release

Changes for #574

12 years agoMerge pull request #581 from crodjer/develop
Kenneth Reitz [Fri, 4 May 2012 06:28:07 +0000 (23:28 -0700)]
Merge pull request #581 from crodjer/develop

A utility for using environment proxies

12 years agoMerge pull request #582 from slingamn/cookietests.release
Kenneth Reitz [Fri, 4 May 2012 06:26:44 +0000 (23:26 -0700)]
Merge pull request #582 from slingamn/cookietests.release

Tests for persistent and secure cookies

12 years agoTests for persistent and secure cookies
Shivaram Lingamneni [Fri, 4 May 2012 05:21:17 +0000 (22:21 -0700)]
Tests for persistent and secure cookies

12 years agoAdd myself to authors
Rohan Jain [Fri, 4 May 2012 05:29:57 +0000 (10:59 +0530)]
Add myself to authors

Signed-off-by: Rohan Jain <crodjer@gmail.com>
12 years agoUse utility for environment proxy as fallback
Rohan Jain [Fri, 4 May 2012 05:14:07 +0000 (10:44 +0530)]
Use utility for environment proxy as fallback

Signed-off-by: Rohan Jain <crodjer@gmail.com>
12 years agoA utility function to fetch environment proxies
Rohan Jain [Fri, 4 May 2012 05:11:57 +0000 (10:41 +0530)]
A utility function to fetch environment proxies

This adds support for lowercase environment proxy variables (which are
quite popular too). It returns proxies in a format compatible with
request's proxy parameter.
Moreover, it can be used in the request models for proxy defaults.

Signed-off-by: Rohan Jain <crodjer@gmail.com>
12 years agoMerge pull request #580 from slingamn/keepalive
Kenneth Reitz [Fri, 4 May 2012 04:33:42 +0000 (21:33 -0700)]
Merge pull request #580 from slingamn/keepalive

Fix and test for #458

12 years agofix for #458
Shivaram Lingamneni [Fri, 4 May 2012 04:16:56 +0000 (21:16 -0700)]
fix for #458

12 years agotest for #458
Shivaram Lingamneni [Fri, 4 May 2012 04:16:46 +0000 (21:16 -0700)]
test for #458

12 years agoquiet spurious pyflakes errors
Shivaram Lingamneni [Thu, 3 May 2012 05:37:45 +0000 (22:37 -0700)]
quiet spurious pyflakes errors

12 years agoVarious Makefile updates
Shivaram Lingamneni [Thu, 3 May 2012 05:35:10 +0000 (22:35 -0700)]
Various Makefile updates

12 years agoMerge pull request #577 from slingamn/redirects_537
Kenneth Reitz [Thu, 3 May 2012 08:36:12 +0000 (01:36 -0700)]
Merge pull request #577 from slingamn/redirects_537

Fix and test for #537

12 years agoMerge pull request #572 from slingamn/chardet_2
Kenneth Reitz [Thu, 3 May 2012 08:35:47 +0000 (01:35 -0700)]
Merge pull request #572 from slingamn/chardet_2

cleanup, redux

12 years agofix crash in safe mode when response.cookies is None
Shivaram Lingamneni [Thu, 3 May 2012 08:28:59 +0000 (01:28 -0700)]
fix crash in safe mode when response.cookies is None

12 years agoadd a test for max_redirects in safe/normal modes
Shivaram Lingamneni [Thu, 3 May 2012 08:21:37 +0000 (01:21 -0700)]
add a test for max_redirects in safe/normal modes

12 years agoconsistency: .text shouldn't recover from unicode decoding errors, either
Shivaram Lingamneni [Wed, 2 May 2012 08:09:10 +0000 (01:09 -0700)]
consistency: .text shouldn't recover from unicode decoding errors, either

12 years agoremove fancy test assertions that are unavailable on 2.6
Shivaram Lingamneni [Wed, 2 May 2012 07:19:21 +0000 (00:19 -0700)]
remove fancy test assertions that are unavailable on 2.6

12 years agoraise a ValueError if no encoding was sent and chardet is unavailable
Shivaram Lingamneni [Wed, 2 May 2012 06:55:56 +0000 (23:55 -0700)]
raise a ValueError if no encoding was sent and chardet is unavailable

12 years agoHave Travis run all tests except the external and async ones
Shivaram Lingamneni [Wed, 2 May 2012 06:42:24 +0000 (23:42 -0700)]
Have Travis run all tests except the external and async ones

(async is currently unsupported under Python 3)

12 years agomissed import
Kenneth Reitz [Wed, 2 May 2012 23:18:14 +0000 (19:18 -0400)]
missed import

12 years agodate fix v0.12.0
Kenneth Reitz [Wed, 2 May 2012 23:17:14 +0000 (19:17 -0400)]
date fix

12 years agooauthlib
Kenneth Reitz [Wed, 2 May 2012 23:15:43 +0000 (19:15 -0400)]
oauthlib

12 years agov0.12.0
Kenneth Reitz [Wed, 2 May 2012 23:13:19 +0000 (19:13 -0400)]
v0.12.0

12 years agopre-send hook
Kenneth Reitz [Wed, 2 May 2012 23:09:18 +0000 (19:09 -0400)]
pre-send hook

#516

12 years agoMerge pull request #516 from EnTeQuAk/move_pre_request
Kenneth Reitz [Wed, 2 May 2012 22:58:08 +0000 (15:58 -0700)]
Merge pull request #516 from EnTeQuAk/move_pre_request

Move pre_request to a more usable place, followup to #382

12 years agoupper case automatically
Kenneth Reitz [Wed, 2 May 2012 22:57:06 +0000 (18:57 -0400)]
upper case automatically

12 years agomaking history
Kenneth Reitz [Wed, 2 May 2012 22:56:51 +0000 (18:56 -0400)]
making history

12 years agoMerge remote-tracking branch 'origin/develop' into develop
Kenneth Reitz [Wed, 2 May 2012 22:47:53 +0000 (18:47 -0400)]
Merge remote-tracking branch 'origin/develop' into develop

12 years agodefault chunk size for .content much bigger
Kenneth Reitz [Wed, 2 May 2012 22:47:50 +0000 (18:47 -0400)]
default chunk size for .content much bigger

12 years agoMerge pull request #573 from idangazit/develop
Kenneth Reitz [Wed, 2 May 2012 21:19:56 +0000 (14:19 -0700)]
Merge pull request #573 from idangazit/develop

Lazily encode data, params, files

12 years agoMerge remote-tracking branch 'upstream/develop' into develop
Idan Gazit [Wed, 2 May 2012 21:08:00 +0000 (00:08 +0300)]
Merge remote-tracking branch 'upstream/develop' into develop

12 years agoLazily encode data, params, files
Idan Gazit [Wed, 2 May 2012 21:04:13 +0000 (00:04 +0300)]
Lazily encode data, params, files

Previously, data, params, and files were encoded and stored in
Request.__init__, and subsequently put into service during
Request.send. The problem with this approach is that hooks and auth
callables need to be aware of the eager encoding, and if they touch the
originals, make sure to update the encoded versions.

A better approach is to only encode late in the sending process. This
way, hooks and auth callables can safely make changes without fear of
the old, encoded variant overriding it.

12 years agoPEP8 Cleanup
Idan Gazit [Wed, 2 May 2012 20:16:38 +0000 (23:16 +0300)]
PEP8 Cleanup

12 years agoFix out-of-range issue with iter_lines (#515).
Antony Chazapis [Wed, 2 May 2012 13:51:19 +0000 (16:51 +0300)]
Fix out-of-range issue with iter_lines (#515).

12 years agoRevert "Update Makefile and travis configuration to run all (non-external) tests"
Kenneth Reitz [Wed, 2 May 2012 06:38:20 +0000 (02:38 -0400)]
Revert "Update Makefile and travis configuration to run all (non-external) tests"

This reverts commit a453a78c7c94aa220aa099dd62a36ec5b5232571.

12 years agoRevert "Cache the value of the `Response.text` property"
Kenneth Reitz [Wed, 2 May 2012 06:38:11 +0000 (02:38 -0400)]
Revert "Cache the value of the `Response.text` property"

This reverts commit d232948188f922c137dd709b53f77c49d1442c84.

12 years agoRevert "Use utf-8 as the default encoding"
Kenneth Reitz [Wed, 2 May 2012 06:37:51 +0000 (02:37 -0400)]
Revert "Use utf-8 as the default encoding"

This reverts commit 35d5ac6e8f5f4357f945b8c4890388207f7f1c00.

12 years agoUpdate Makefile and travis configuration to run all (non-external) tests
Shivaram Lingamneni [Wed, 2 May 2012 05:52:34 +0000 (22:52 -0700)]
Update Makefile and travis configuration to run all (non-external) tests

12 years agoChange setup.py to reflect required/optional dependencies
Shivaram Lingamneni [Wed, 2 May 2012 02:34:07 +0000 (19:34 -0700)]
Change setup.py to reflect required/optional dependencies

12 years agoCache the value of the `Response.text` property
Shivaram Lingamneni [Wed, 2 May 2012 05:25:50 +0000 (22:25 -0700)]
Cache the value of the `Response.text` property

12 years agoUse utf-8 as the default encoding
Shivaram Lingamneni [Wed, 2 May 2012 02:35:08 +0000 (19:35 -0700)]
Use utf-8 as the default encoding

(fixes crashes on failure to import chardet)

12 years agoupdate documentation to correspond to new cookie API
Shivaram Lingamneni [Wed, 2 May 2012 04:46:04 +0000 (21:46 -0700)]
update documentation to correspond to new cookie API

12 years agorestore docs/_build directory to .gitignore
Shivaram Lingamneni [Wed, 2 May 2012 02:18:55 +0000 (19:18 -0700)]
restore docs/_build directory to .gitignore

12 years agoMerge pull request #565 from slingamn/cookiejar
Kenneth Reitz [Wed, 2 May 2012 00:22:37 +0000 (17:22 -0700)]
Merge pull request #565 from slingamn/cookiejar

Support CookieJar, references #281

12 years agoadd Python 3 compatibility
Shivaram Lingamneni [Tue, 1 May 2012 23:32:40 +0000 (16:32 -0700)]
add Python 3 compatibility