Mac Internet Sharing Helper
Project description
Mac Internet Sharing
A Python CLI tool to manage internet sharing on macOS.
Installation
pipx install mac-internet-sharing
Usage
The tool provides several commands to manage internet sharing. Here are some common use cases:
Starting Internet Sharing
There are two methods to start internet sharing:
1. Manual Configuration (configure)
This method requires you to manually specify the primary network interface and one or more device UDIDs. It sets up internet sharing based on your initial configuration. Note that newly connected USB devices after the initial setup are not added automatically—you will need to re-run the command to update the configuration.
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.
2. Automatic USB Detection (plug-n-share)
This method continuously monitors for new USB devices and automatically updates the sharing configuration when a new device is detected. It is ideal if you frequently plug in different devices and want your sharing setup to update in real time. You can also run it as a daemon.
sudo misha plug-n-share -n <primary_interface> -t <timeout>
<primary_interface>(optional): Specify the network service name. If not provided, the default network service is used.-t <timeout>: Set the polling interval in seconds (default is 5 seconds).
Note: The manual configuration (
configure) does not automatically detect newly connected devices after the initial setup. Useplug-n-shareif you require automatic updates.
Toggling Internet Sharing
Manage the sharing state with the following commands:
-
Turn Sharing Off:
sudo misha off
-
Turn Sharing On:
sudo misha on
Contributing
Contributions, bug reports, and feature requests are welcome! Feel free to open issues or submit pull requests.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mac_internet_sharing-0.1.2.tar.gz.
File metadata
- Download URL: mac_internet_sharing-0.1.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e786b611b202ffdba6a264660f88e3fa0f35d9d1cd20e5f8a1f2b5ab3f0fbf54
|
|
| MD5 |
8dde12009bafe91d28b2aa905d3febc7
|
|
| BLAKE2b-256 |
9b0b3f47f84568866f9df4a5ee79c951ae0c855d8daa64b6334eb2c2689de723
|
File details
Details for the file mac_internet_sharing-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mac_internet_sharing-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aff5abb630ff4c289b9a8b6ae386b65448ed6a72875c06b630f731f468776b86
|
|
| MD5 |
97e37efc3e21ff3465f40c6bd1319f07
|
|
| BLAKE2b-256 |
16405ea2deb088a8bf8bec1b881e061916986db54b7922b2eceabc746c692a4d
|