Skip to main content

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"

Other

docs

Metadata

Release files for mproto 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mproto 0.0.2
File Size Uploaded Provenance Actions
mproto-0.0.2.tar.gz 2.1 kB Without provenance Details for mproto-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mproto 0.0.2
File Interpreter ABI Platform Actions
mproto-0.0.2-py3-none-any.whl Python 3 none any Details for mproto-0.0.2-py3-none-any.whl

Total release size: 5.4 kB

Release files / mproto-0.0.2.tar.gz

Download URL mproto-0.0.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cdfa8d1ca893bf65101a58a6bd791d831c22db183365c47c93e0005a21d5f06f
BLAKE2b-256 checksum
How to use checksums
482fc29fda0781eece8aee17c49c23874b7d04645816bf11bcf56198948f29b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

Release files / mproto-0.0.2-py3-none-any.whl

Download URL mproto-0.0.2-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b81bfa4595852fe0ef05933523d6d10aa3c0c204d93fb817bb24c97869b285f1
BLAKE2b-256 checksum
How to use checksums
04227afc7e5f1a56f3095c6ed88c65ce2bc4be50004cbed73d128cfa3f053213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.60.0 CPython/3.8.9

Security for mproto 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page