Comments (13)
By the way, @michaelhelmick, you may end up wanting to keep an eye on this issue, I plan to play with Twython a bit here.
from hyper.
👍 I'll help be a Guinea Pig :) just let me know if I can so anything. I need to get back to some open source stuff. Been keeping busy with work D:
from hyper.
So mostly this is fine, except for the fact that Twython relies on urllib3's transparent content decoding, which hyper
doesn't have. Awkward.
from hyper.
Tracking that issue in #20.
from hyper.
Current draft adapter is on the requests_adapter
branch. Not sure how best to test it yet.
from hyper.
@Lukasa with the integration test fixtures?
from hyper.
That might be the way to go.
from hyper.
Alright, the adapter got checked in as part of 799e37e. It's been enhanced a few times since as well. @michaelhelmick, if you want to start messing about with it go ahead. I've confirmed in a quick local test file that it works in the basic case, as you can see below. Note that you'll need to install hyper
from GitHub, not from PyPI, as I haven't done a new release yet.
from hyper.contrib import HTTP20Adapter
from twython import Twython
API_KEY = ...
API_SECRET = ...
ACCESS_TOKEN = ..
ACCESS_SECRET = ...
t = Twython(API_KEY, API_SECRET, ACCESS_TOKEN, ACCESS_SECRET)
a = HTTP20Adapter()
t.client.mount('https://www.twitter.com', a)
t.client.mount('https://twitter.com', a)
t.client.mount('https://api.twitter.com', a)
print(t.search(q='python'))
from hyper.
You can now get the Transport Adapter in v0.0.2 from PyPI. =)
from hyper.
I replied via email, but it never sent I guess.. haha.
👌 I'm not free until Saturday to test, but I'll be sure to make time to test then!
from hyper.
Just an update, I got sick from moving our office this past week (with rain and dust and everything) and didn't feel up to testing this. I'll try to test some stuff by mid-net week! Sorry!!
from hyper.
That's not a problem at all @michaelhelmick, there's no rush here. I'm doing some basic performance analysis today anyway. =)
from hyper.
With that said, I'm getting some insane numbers that don't make any sense to me. It seems that, in HTTP/1.1, we're receiving ten times as much data as we are in HTTP/2.0. I have a question: does Twython
turn off the Accept-Encoding
headers in Requests?
from hyper.
Related Issues (20)
- Ping does not work correctly HOT 3
- Edit on github link on RTD broken.
- Transfer of maintenance HOT 3
- HTTP20Adapter sends extra headers ?? HOT 20
- How to control ssl context in a HTTP20Adapter HOT 1
- hyper.contrib.HTTP20Adapter with requests.session not working on python 2.7
- Upgrade from HTTP/1.1. to HTTP2 not working HOT 2
- Could you please make MAX_CHUNK configurable? HOT 1
- Upgrade to the latest h2 HOT 2
- How resolve DNS to a specific IP?
- HTTP11Connection does not use http/1.1 protocol HOT 1
- hyper hangs while POSTing to Apple APNS servers HOT 2
- Forcing Cleartext HTTP2 Without Upgrade Mechanism HOT 3
- How can I add query parameters when using class HTTP20Connection?
- Python deprecation warnings: collections, imp, logging.warn
- basestring erroneously ignores unicode in Python2.7
- Client certificates?
- Retain connection in HTTP/2 using hyper to avoid authentication for every request
- HTTP20Connection.request has no mechanism to send duplicate headers HOT 3
- The orders of sending packages in Debug mode and Run mode are different.
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 hyper.