Skip to main content

Mooo

PyPI version

Mooo is a lightweight HTTP proxy written in Python. You can run it in a server then use it to access the internet.

Quick Start

[!WARNING] By default, mooo porxy all domains, which means it can retrieve the local network. This poses a security risk. It is recommended to specify --domain or --profile to limit the domain that the proxy server

Option 1: Use Python package

  1. Install moon with pip install mooo

  2. Start the proxy server

mooo --host 0.0.0.0 --port 8080

Option 2: Use Docker image

docker run -p 8080:8080 bebound/mooo --host 0.0.0.0 --port 8080

Use mooo

curl http://your_proxy_server:8080/{http_url}
git clone http://your_proxy_server:8080/{github_url}

Use pre-defined profile

Mooo provides some pre-defined profiles, you can use it to proxy some popular websites. Currently, it supports github, google and docker.

Use mooo to proxy github.com

mooo --profile github --profile github

Use mooo to proxy multiple profile with same port. You need to use reverse proxy to route the request to mooo with specific domain. Mooo routes the request to different profile based on the domain. For example, access github.custom.domain will route to github.com and docker.custom.domain will route to docker registry.

mooo --profile github docker google --smart-route

Parameters

Parameter Description Default Example
--host The listening host 127.0.0.1 0.0.0.0
--port The listening port 8080
--debug Show debug logging False
--domain Once it's set, the request domain must match the wildcard domain list None *.github.com
--cookie Pass the cookie to the server False
--default-domain The default domain to proxy None https://www.github.com
--profile Use pre-defined profile None github
--smart-route Apply profile rules based on host domain False

Metadata

Release files for mooo 0.1.1

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

Source distribution (sdist)

Source distribution for mooo 0.1.1
File Size Uploaded
mooo-0.1.1.tar.gz 8.9 kB Details

Built distribution (wheel)

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

Total release size: 17.0 kB

Release files / mooo-0.1.1.tar.gz

Download URL mooo-0.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8d5e81b275035ceef952460a0b3f49386ece684c3181cf5df9cc9218ca01c59a
BLAKE2b-256 checksum
How to use checksums
0aa000680c6704cdc21e7f24105acaf9eca878a66911def0c10a6cea70256dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / mooo-0.1.1-py3-none-any.whl

Download URL mooo-0.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5d8b5cc91b2b11d5fd16909c662d289b197bc0c3a6235dd899f47ee8153fde6
BLAKE2b-256 checksum
How to use checksums
62d9467e74773620f04689bea3d32a596bf745645323c7fa877d68c4b930b43e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

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