![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
warp-proxy
Advanced tools
Proxy it. No wait, mock it!!!
Just delicious when testing and developing
Relies on
node-http-proxy and
node http api
A simple command line to quickly start a web server which proxys your requests to an external server or to local files (JSON). Very helpful for testing and development.
Not made to be used in production. Use at your own risk.
Install warp-proxy using npm
:
npm install warp-proxy # globally accessible
npm install warp-proxy --save-dev # only accessible via npm package.json commands
# Proxing all requests to a remote server
warp-proxy web --port 6543 --target http://mydesiredserver:1234
# Proxing all request to local json files
warp-proxy mock --port 6543 --directory ./mymocksfolder/
# Using a config.js file
warp-proxy run --config ./proxy-config.js
# Using npx, you don't even need to install the package
npx warp-proxy start --port 6543 --target http://mydesiredserver:1234
Using the run
command you can pass a custom configuration via --config
argument.
module.exports = {
mode: 'web', // or 'mock'
port: 1234,
// Proxying external servers
target: 'http://mydesiredserver:1234',
// Proxying local files
directory: './folder/with/mocks',
}
Relies on all properties from node-http-proxy
Feel free to extend your config file with any property from node-http-proxy
module.exports = {
port: 1234,
target: 'http://mydesiredserver:1234',
...node_http_proxy_properties
}
Mocking the following request and having the directory like --directory ./root/
[GET] http://address:1234/repositories/administrators/1234?param=value
└───────────────────────┘ └──────────┘ └────────────┘ └──────────────┘
root folder + /GET/ | FOLDER | FOLDER | JSON FILE
Your folder structure should look like this
└─root
└─GET
└─repositories
└─administrators
└─1234?param=value.json
in second example
[PUT] http://address:1234/language/countries/`
└───────────────────────┘ └──────┘ └───────┘
root folder + /PUT/ | FOLDER |JSON FILE
your folder structure should look like this
└─root
└─PUT
└─language
└─countries.json
FAQs
Proxy requests or return mocks from local files instead
The npm package warp-proxy receives a total of 0 weekly downloads. As such, warp-proxy popularity was classified as not popular.
We found that warp-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.