Skip to main content

port manager for developing multiple local web apps

Project description

# plut

**plut** stands for **p**ort **l**ook**u**p **t**able.

If you're simultaneously developing multiple web apps on localhost,
which happens increasingly often in the age of microservices, it's
annoying to remember which app is on which port. So plut does it for
you.

To install, run `pip install plut`, then run:

```bash
echo source ~/.plutrc >> ~/.bashrc
```

## Usage

The point of plut is to remember what app is running where. The basic
mechanism used by plut is to map names to ports.

To get the port corresponding to a name, run:

```python
import plut

port = plut.port('myservice') # returns an int
```

plut saves this inside `~/.plutrc` (which you told your bashrc to
source from earlier). The next time you run `plut.port`, it'll check
if a port already exists and if so, give you that instead.

You can also do this from the command-line:

```bash
plut # lists all services
plut rm <name> # remove a service
plut <name> # get the port of a service
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

plut-0.3.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page