Make custom protocols in python
Reason this release was yanked:
import fails
Project description
Description
mproto is a python package for making custom protocols
Installation
Pip
pip install mproto
Usage
import mproto
import urllib.request as urlreq
class MyCustomProtocol(mproto.BaseProtoHandler)
def protocolname_open(self,req): #name must be protocol name + _open
# do stuff with req
return req.get_full_url()
mproto.install(MyCustomProtocol)
print(urlreq.urlopen('protocolname://abc')) #should print "protocolname://abc"
Usefull informations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mproto-0.0.1.tar.gz
(1.1 kB
view hashes)
Built Distribution
mproto-0.0.1-py3-none-any.whl
(1.4 kB
view hashes)