Portela
a simple port allocator
Portela is a Python 2 & 3 compatible port allocator with zero dependencies.
Portela can be used to test basic port connectivity on your host and lets you open up ports on various network interfaces.
You can do the same functions with netcat, SimpleHTTPServer, socat and various other tools, but Portela is more user-friendly and offers a simple way to bind to various network interfaces.
Python compatibility: 2.7.x - 3.8.x
Platform compatibility: Linux
usage:
# portela 1234 // spin up a listener on port 1234
# portela 1234 -i eth1 // spins up on port 1234 on interface 'eth1'
# portela 1234 -i eth1 -d // spins up on port 1234 on interface 'eth1' and run as daemon
# portela 1234 -m "samba magic" // spins up on port 1234 and return a message on HTTP call
# portela stop // stops all instances of portela listerner
# portela status // check if portela is running as daemon
# portela help / -h / --help // prints this message
Install
pip install portela
Testing
Local testing
sudo pip install -e /path/to/portela
Daemon
When Portela puts the listener in background as daemon, it creates a PID file (.portela.pid) in /home/user directory
Daemon functions are taken from this article: https://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
Metadata
Release files for portela 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| portela-0.0.5.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| portela-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / portela-0.0.5.tar.gz
| Download URL | portela-0.0.5.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85b63c4a647bb19602c5b88286bf7dd660e132064d4b6d6b6d0e8c9d6ff1cc17
|
|
BLAKE2b-256 checksum How to use checksums |
7a6e935ce10dda49ddd321ddbf1a4b4ce70f6f6413ae648fcbca160ecdbd4619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|
Release files / portela-0.0.5-py3-none-any.whl
| Download URL | portela-0.0.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f176248455075e8388d38e067fd4c69fe14fb122e36583e6eefafbe9d49bcd81
|
|
BLAKE2b-256 checksum How to use checksums |
b410e916b3dc32e183e62ef8f86b4871d59cbc92d3e07c58bb2faaf174ceb681
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
|