semvec/pypi-packages huggingface dataset:
myipaddress 1.0.2
A package to get your/others IP information.
License: MIT
Keywords: IP,myip,IP address,geolocation,public IP,private IP,socket,ports,open ports

# myIPaddress 🌎

### Module Overview:

This module provides functionality to fetch IP information, including public and private IP addresses, location details, open ports, and more.

## How to Use:

- `myIPaddress.{function_name}()`

### Public IP:

- **`.info`** - Returns all public information in JSON format.

- **`.public_ip()`** - Returns the public IP address.

- **`.public_hostname()`** - Returns the public hostname.

- **`.public_city()`** - Returns the public city.

- **`.public_region()`** - Returns the public region.

- **`.public_country()`** - Returns the public country.

- **`.public_loc()`** - Returns the public location.

- **`.public_organization()`** - Returns the public organization.

- **`.public_postal()`** - Returns the public postal code.

- **`.public_fulladdress()`** - Returns a formatted string of public city, region, country, and postal code.

- **`.public_timezone()`** - Returns the public timezone.

 ### Private IP:

- **`.private_ip()`** - Returns the private IP address.

 ### Other Networking Information:

- **`.open_ports()`** - Returns a list of open ports on the local machine.

- **`.ip_probe(ip_address, indent=False)`** - Retrieves IP information for a specified IP address using the "https://ipinfo.io/{ip_address}/json" API.

### Example Usage:

Example:

```python
import myIPaddress as myip

ip_info = myip.public_ip()
print(f"Public IP Address: {ip_info}")
```

Output:

```python
Public IP Address: 8.8.8.8
py-exec-cmd 0.0.3
A wrapper for calling commands
License: MIT
Requires Python: >=3.8

# py_exec_cmd

A wrapper for calling commands in separate process and capturing their stdout/stderr.

## Installation

As of now, the functionality has been tested in the CYGWIN_NT-10.0-19044 environment on Windows 10 LTSC 21H2.

Prerequisits:
 - Python3 installation (>= 3.8)
 - python3-venv is recommended to create a virtual environment


Install current stable version (preferably in a virtual environment):
```
pip install py-exec-cmd
```

# Usage
```
from py_exec_cmd import exec_cmd
res=exec_cmd.get_cmd_out(['uname','-r'])
print(res)
--------------------------------------------------------
Output = CompletedProcess(args=['uname', '-r'], returncode=0, stdout='6.2.0-39-generic\n', stderr='')
--------------------------------------------------------

res2=exec_cmd.run_cmd(['uname','-r'])
print(res2)
--------------------------------------------------------
Output = CompletedProcess(args=['uname', '-r'], returncode=0)
--------------------------------------------------------
```

## To do
Plans include adding support for commands with the sudo parameter in Linux.