Metadata-Version: 2.2
Name: mac-internet-sharing
Version: 0.0.2
Summary: Mac Internet Sharing Helper
Author-email: netanelc305 <netanelc305@protonmail.com>
Maintainer-email: netanelc305 <netanelc305@protonmail.com>
License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
Project-URL: Homepage, https://github.com/netanelc305/mac_internet_sharing
Project-URL: Bug Reports, https://github.com/netanelc305/mac_internet_sharing/issues
Keywords: macos,osx,internet sharing,automation,cli,ioservice
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: ioregistry
Requires-Dist: click
Requires-Dist: psutil
Requires-Dist: inquirer3
Requires-Dist: plumbum
Requires-Dist: coloredlogs

# Mac Internet Sharing

A Python CLI tool to manage internet sharing on macOS.

## Installation

```bash
pipx install mac-internet-sharing
```

## Usage

The tool provides several commands to manage internet sharing. Here are some common use cases:

### Starting Internet Sharing

To share your internet connection on a specified primary interface, use:

```bash
sudo misha configure -n <primary_interface> -u <udid> -u <udid> -s
```

- **`<primary_interface>`:** Replace with your network interface name (e.g., `"Ethernet Adapter (en6)"`).
- **`-u <udid>`:** Optionally specify one or more device UDIDs.
- **`-s`:** Automatically start sharing after configuration.

> **Note:** Newly connected devices after the initial setup are not added automatically you will need to reconfigure.

### Toggling Internet Sharing

Manage the sharing state with the following commands:

- **Turn Sharing Off:**
  ```bash
  sudo misha off
  ```

- **Turn Sharing On:**
  ```bash
  sudo misha on
  ```

## Contributing

Contributions, bug reports, and feature requests are welcome!
Feel free to open issues or submit pull requests.

