# Python Port Scanner
A simple port scanner built with Python
## How it works
This scans a range of ports for a given URL and prepares a report showing which ports are open.
## Instructions
Install with Pip/PyPi in the command line interface:
` pip install port-scanner `
In your Python code, import the library:
` import portscanner `
Create an instance of the Target class:
` my_target = portscanner.Target("example.com") `
Scan your target one or more times. All the settings shown below are optional, and the example code shows what the defaults would be if nothing is specified.
“min” and “max” represent the range of ports to scan
“timeout” is how long in seconds the scanner will wait for an unresponsive port before moving on to the next one
` my_target.scan(min = 1, max = 100, timeout = 0.01) `
Generate a report of the results of your scan(s), which will be returned as a list. Set all to “True” or leave it blank if you want your report to include all of the scans for your target, or set it to “False” to see only the most recent scan.
` my_target.report(all = True) `
Metadata
Release files for port-scanner 0.1.4
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 | |
|---|---|---|---|---|
| port-scanner-0.1.4.tar.gz | 1.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| port_scanner-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 kB
Release files / port-scanner-0.1.4.tar.gz
| Download URL | port-scanner-0.1.4.tar.gz |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52ea23c42f8e92cf211737347637eb0684bb7efca58c50cd4663fdcdfcf002b2
|
|
BLAKE2b-256 checksum How to use checksums |
912792ffca4bf8edf44fb6a45c36926864c8903c73914b074b40a0b23cdf7729
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / port_scanner-0.1.4-py3-none-any.whl
| Download URL | port_scanner-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0d699872c6141aec7f218557168927bdbf7cfd790eef06a112e47d497820849
|
|
BLAKE2b-256 checksum How to use checksums |
f669deb3e6799f4c9feecebf28ecc9a5b48a17df5dbde55312c6104ff6441680
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for port-scanner 0.1.4
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.