nsopen
A command-line tool to perform DNS lookups and open resolved IP addresses in a web browser.
Particularly useful when you want to test behind a load balancer that resolves into multiple server IPs.
Installation
python -m pip install .
Usage
Note: pip packages executable directory should be in your PATH environmental variable
# Open all IPs for google.com using HTTPS (default)
nsopen google.com
# Open specific path /elmah.axd on example.com using HTTP protocol
nsopen -p http example.com /elmah.axd
if you didnt install, you can run it via python -m may need to add src folder to PYTHONPATH env var if you are in a different directory
python -m nsopen google.com
Example
nsopen -p https example.com /about
Command line options
usage: nsopen [-h] [-p {http,https}] hostname [path]
Perform DNS lookup and open IP addresses in a browser
positional arguments:
hostname The hostname to lookup
path [Optional] path to append to the URL (e.g. /elmah.axd)
options:
-h, --help show this help message and exit
-p, --protocol {http,https}
The URL protocol to use (default: https)
Development
Setup
# Install dev dependencies
pip install -r requirements-dev.txt
# (optional) install package in editable mode for CLI entry point
pip install -e .
Test
If you didn't install the package, set PYTHONPATH so tests can import the nsopen package.
# From the project root
$env:PYTHONPATH = "${PWD}\src"; pytest
Tooling
Common tooling is configured in pyproject.toml:
- black (code formatting)
- isort (import sorting)
- flake8 (linting)
- pytest (test runner defaults)
Run them as needed, e.g.:
black .
isort .
flake8
pytest
Metadata
Release files for nsopen 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nsopen-0.1.0.tar.gz | 4.3 kB | Without provenance | Details for nsopen-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsopen-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nsopen-0.1.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / nsopen-0.1.0.tar.gz
| Download URL | nsopen-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bfe97fbb44b804450a571bfa2472ce131f0dbf5a27bae67c349afea8655048b
|
|
BLAKE2b-256 checksum How to use checksums |
01696c765e9c81cc913127eda22052e2b7169f44673b83b300a90ce2d02ad1a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / nsopen-0.1.0-py3-none-any.whl
| Download URL | nsopen-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85870959161b9b0e3f115fbc47e02b186bef76551df0ad4047715a170f1612b2
|
|
BLAKE2b-256 checksum How to use checksums |
c0600ff3120a02afc1bef463fd03675186bc913af95054566f05d8c4e2e8afef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for nsopen 0.1.0
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.