{"id":16695680,"url":"https://github.com/ninjamar/mproto","last_synced_at":"2025-07-01T01:34:22.113Z","repository":{"id":57443516,"uuid":"368363843","full_name":"ninjamar/mproto","owner":"ninjamar","description":"Python library for making custom protocols","archived":false,"fork":false,"pushed_at":"2021-05-19T21:19:19.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-18T08:37:48.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ninjamar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-18T01:13:52.000Z","updated_at":"2021-11-05T03:15:33.000Z","dependencies_parsed_at":"2022-09-05T09:31:27.818Z","dependency_job_id":null,"html_url":"https://github.com/ninjamar/mproto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ninjamar/mproto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjamar%2Fmproto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjamar%2Fmproto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjamar%2Fmproto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjamar%2Fmproto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ninjamar","download_url":"https://codeload.github.com/ninjamar/mproto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ninjamar%2Fmproto/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985290,"owners_count":23092898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T17:08:06.486Z","updated_at":"2025-07-01T01:34:22.055Z","avatar_url":"https://github.com/ninjamar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\nmproto is a python package for making custom protocols\n## Installation\n### pip\n```bash\npip install mproto\n```\n## Usage\n```python\nimport mproto\nimport urllib.request as urlreq\n\nclass MyCustomProtocol(mproto.BaseProtoHandler)\n  def protocolname_open(self,req): #name must be protocol name + _open\n    # do stuff with req\n    return req.get_full_url()\n\nmproto.install(MyCustomProtocol)\nprint(urlreq.urlopen('protocolname://abc')) #should print \"protocolname://abc\"\n```\n\n## Other\n[docs](https://ninjamar.repl.co/mproto/docs)\n[usefull stuff](https://scratch.mit.edu/discuss/topic/515027/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjamar%2Fmproto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjamar%2Fmproto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjamar%2Fmproto/lists"}