MCPcopy Index your code
hub / github.com/andreif/uwsgi-tools

github.com/andreif/uwsgi-tools @1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.1 ↗ · + Follow
29 symbols 122 edges 12 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

uwsgi tools

Build Status Coverage Status Version Python Versions

uwsgi_curl

Usage:

$ uwsgi_curl -h
usage: uwsgi_curl [-h] [-X METHOD] [-H HEADERS] [-d DATA] [-t TIMEOUT] [--udp]
                  uwsgi_addr [url]

positional arguments:
  uwsgi_addr            Remote address of uWSGI server
  url                   Request URI optionally containing hostname

optional arguments:
  -h, --help            show this help message and exit
  -X METHOD, --method METHOD
                        Request method. Default: GET
  -H HEADERS, --header HEADERS
                        Request header. It can be used multiple times
  -d DATA, --data DATA  Request body
  -t TIMEOUT, --timeout TIMEOUT
                        Socket timeout
  --udp                 Use UDP instead of TCP

Example:

$ uwsgi_curl 10.0.0.1:3030 host.name/login

$ uwsgi_curl 10.0.0.1 host.name

$ uwsgi_curl 10.0.0.1 /login

$ uwsgi_curl 10.0.0.1

uwsgi_proxy

Usage:

$ uwsgi_proxy -h
usage: uwsgi_proxy [-h] [-n HTTP_HOST] [-l LOCAL_ADDR] [-s] uwsgi_addr

positional arguments:
  uwsgi_addr            Remote address of uWSGI server

optional arguments:
  -h, --help            show this help message and exit
  -n HTTP_HOST, --http-host HTTP_HOST
                        HTTP_HOST header for uWSGI server
  -l LOCAL_ADDR, --local-addr LOCAL_ADDR
                        Local address of HTTP server
  -s, --redirect-static
                        Redirect static requests to host

Example:

$ uwsgi_proxy -s -n host.name 10.0.0.1
Proxying remote uWSGI server 10.0.0.1:3030 "host.name" to local HTTP server 127.0.0.1:3030...
127.0.0.1 - - [01/Oct/2015 15:25:50] GET /wrong-uri
HTTP/1.1 404 NOT FOUND
X-Frame-Options: SAMEORIGIN
Content-Type: text/html
75

Core symbols most depended-on inside this repo

server
called by 5
tests/utils.py
cli
called by 5
uwsgi_tools/curl.py
parse_addr
called by 5
uwsgi_tools/utils.py
sz
called by 3
uwsgi_tools/utils.py
ask_uwsgi
called by 2
uwsgi_tools/curl.py
write
called by 2
uwsgi_tools/proxy.py
str2bytes
called by 1
tests/compat.py
curl
called by 1
uwsgi_tools/curl.py

Shape

Function 15
Method 10
Class 3
Route 1

Languages

Python100%

Modules by API surface

tests/test_proxy.py6 symbols
uwsgi_tools/proxy.py5 symbols
tests/test_curl.py5 symbols
uwsgi_tools/utils.py4 symbols
uwsgi_tools/curl.py3 symbols
uwsgi_tools/compat.py2 symbols
tests/utils.py2 symbols
tests/compat.py1 symbols
runtests.py1 symbols

For agents

$ claude mcp add uwsgi-tools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact