Skip to content

Latest commit

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

python-spdy

note: this was built for spdy/2, and I've since abandoned the project.

python-spdy is a simple spdy parser/(de)muxer for python >= 2.7 (including 3.x).

usage

importspdy, spdy.frames#with an existing socket or somethingcontext=spdy.Context(side=spdy.SERVER, version=2)
whileTrue:
data=sock.recv(1024)
ifnotdata:
breakcontext.incoming(data)
whileTrue:
frame=context.get_frame()
ifnotframe: breakifisinstance(frame, spdy.frames.Ping):
pong=spdy.frames.Ping(frame.ping_id)
context.put_frame(pong)
outgoing=context.outgoing()
ifoutgoing:
sock.sendall(outgoing)	

installation

requires:

pip install cython bitarray

then:

python setup.py install

About

a spdy parsing library for python

Resources

Stars

34 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages