semvec/pypi-packages huggingface dataset:
procboss 0.3.1
A process management tool that lists or kills processes by name and port.
Requires Python: >=3.6

# procboss

Use `pb` to list or kill processes by name or port in Unix-like environments.

![screenshot](./screenshot.png)

## Features

- List processes by name and/or port number: `pb list -n node`
- Kill processes by name and/or port number: `pb kill -p 3001`
- Option to run commands with elevated privileges: `pb list --all`
- Automatically elevates `kill` permissions when necessary

## Installation

Install `procboss` from PyPI using pip:

```sh
pip install procboss
```

## Usage

### List Processes

To list processes, use the `list` command. You can filter processes by name or port number. To list all processes with elevated privileges, use the `--all` flag.

```sh
pb list [options]
```

#### Options

- `-n, --name NAME`: Filter by process name (optional).
- `-p, --port PORT`: Filter by port number (optional).
- `--all`: List all processes with sudo (optional).

#### Examples

List all processes:

```sh
pb list
```

List processes by name:

```sh
pb list -n <process_name>
```

List processes by port:

```sh
pb list -p <port_number>
```

List all processes with elevated privileges:

```sh
pb list --all
```

### Kill Processes

To kill processes, use the `kill` command. You must specify the process name, and you can optionally filter by port number. To kill all matching processes with elevated privileges, use the `--all` flag.

```sh
pb kill [options]
```

#### Options

- `-n, --name NAME`: **Required**. Specify the process name to kill.
- `-p, --port PORT`: Filter by port number (optional).
- `--all`: Kill all matching processes with sudo (optional).

#### Examples

Kill processes by name:

```sh
pb kill -n <process_name>
```

Kill processes by name and port:

```sh
pb kill -n <process_name> -p <port_number>
```

Kill all matching processes with elevated privileges:

```sh
pb kill -n <process_name> --all
```

## License

This project is licensed under the MIT License. See the LICENSE file for details.

## Acknowledgements

This tool uses `lsof` and `ps` commands to gather process information and `tabulate` to format the output.

## Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes. Keep it simple.

## Contact

For any questions or issues, please open an issue on the [GitHub repository](https://github.com/ryanraposo/pb).

---

**Note:** Running commands with `--all` may prompt for your password depending on your system configuration.
apmto 1.0.0
Simple python package wrapper for converting apple media formatted files into high-compatible formats.
Requires Python: >=3.9

# <u>AP</u>ple <u>M</u>edia <u>TO</u> (APMTO)

*APMTO* is a simple Python package wrapper to easily convert apple-formatted media files into highly-compatible formats. 

## Requirements

### Operating System

OS independent.

### Frameworks & Libraries

- [FFmpeg](https://ffmpeg.org/) 

### Python

See [requirements.txt](https://github.com/nda111/APMTO/blob/master/requirements.txt) for more.

- [Python 3](https://www.python.org/) >= 3.9
- [pillow](https://pypi.org/project/pillow/)
- [pillow_heif](https://pypi.org/project/pillow-heif/)
- [ffmpeg-python](https://github.com/kkroening/ffmpeg-python)

## Installation 

### Installing FFmpeg

Please follow the instruction of [ffmpeg-python](https://github.com/kkroening/ffmpeg-python?tab=readme-ov-file#installing-ffmpeg) repository to properly install FFmpeg framework. 

<!-- ### Via Anaconda3

```bash
conda install apmto
``` -->

### Via PyPI

You can install the lastest `apmto` package using the following command:

```bash
pip install apmto
```

or you can install from this GitHub repository.

```bash
pip install git+https://github.com/nda111/APMTO.git
```

<!-- ### Via wheel file -->

## Usage

### Example Code

You can convert the files into high-compatible formats using the following code ([file](https://github.com/nda111/APMTO/blob/master/example/convert.py)). 

```python
# example/convert.py

import apmto 

apmto.heif_to_jpg('example/sample.heif')  # for HEIF (or HEIC, HEIX) image files.
apmto.mov_to_mp4('example/sample.mov', verbose=True)  # for MOV video files. 
```

You can run this example code by this command.

```bash
python -m example.convert
```

If you want to specify `ffmpeg` command arguments, try the following code. 

```python
import apmto

apmto.mov_to_mp4('example/sample.mov', verbose=True, option=dict(
    vcodec='h264', 
    acodec='aac', 
    video_bitrate=1800 * 1000, 
    audio_bitrate=120 * 1000, 
))
```

### Format Support

Following table summarizes the supported formats. 

| Class | Source | Target|
| ----- | ------ | ----- |
| Image | `HEIF` <br /> `HEIC` <br /> `HEIX` | `JPG` <br /> `JPEG` <br /> `PNG` |
| Video | `MOV`  | `MP4` <br /> `MKV` |