Comments (3)
Done.
from requests.
I can't find any documentation on this and it doesn't work for me, even after pip installing right from GitHub:
In [9]: import requests
In [10]: requests.settings.log = True
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/fletcher/Work/Current/twrss/<ipython-input-10-e3570368ba7d> in <module>()
----> 1 requests.settings.log = True
AttributeError: 'module' object has no attribute 'settings'
In [11]: requests.__version__
Out[11]: '0.10.2'
What am I doing wrong?
from requests.
Same here with current HEAD:
>>> import requests
>>> requests.settings.log = True
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'settings'
>>> requests.__version__
'0.12.01'
Also, I can only find a couple of mentions to settings:
$ grep -rnsI settings lib/python2.6/site-packages/requests/*
lib/python2.6/site-packages/requests/models.py:186: # Pass settings over.
lib/python2.6/site-packages/requests/sessions.py:7:This module provides a Session object to manage and persist settings across
Has this been removed after closing this issue or something?
from requests.
Related Issues (20)
- Requests post not working with long processing time. HOT 1
- Possible regression with how MaxRetryError is handled HOT 2
- Improper URL serialization of boolean GET parameters HOT 2
- Weird behaviour with https and proxy authentication HOT 4
- "Recommended Packages and Extensions" page asyncio recommendations are outdated
- Status Code 425 named incorrectly HOT 4
- (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request')))
- The Content-Length header for string `data` counts Unicode characters in the string when it should count encoded bytes HOT 6
- Cannot run tests locally HOT 2
- Failed to establish a new connection: [Errno -2] Name or service not known HOT 1
- Local (and build) tests failing HOT 2
- Is it possible to send async generator as `data` argument of request method? HOT 1
- affected urllib3 and certifi packages (older version keeping in setup.py file) HOT 1
- Since migration of urllib3 to 2.x data-strings with umlauts in a post request are truncated HOT 1
- the first response history url is incorrect HOT 1
- Links at docs site return 404 HOT 3
- I don't think the name of this function is appropriate, because the return value of this function is a ConnectionPool object, and the first sentence of the comment is also wrong, which makes it a huge difficulty for me to read!! HOT 2
- Unexpected `UnicodeError` on some URL HOT 2
- python requests.get() stuck HOT 1
- How to use multiple redundant hosts HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from requests.