Quickly retrieve the current IPv4 address of your machine.
Project description
netLocator# NetLocator
NetLocator is a simple yet powerful Python utility designed to fetch the current IPv4 address of your machine. Whether you're working on a development machine or managing servers, NetLocator makes it easy to retrieve your IP address with just a few lines of code.
Features
-
Retrieves the current IPv4 address.
-
Supports both wired and wireless connections.
Installation
To install NetLocator, simply run:
pip install netLocator
How to Use get_ip_address
from netLocator
To use the get_ip_address
function from the netLocator
module, follow these steps:
-
Import the function: Start by importing the
get_ip_address
function from thenetLocator
module. -
Call the function: Once imported, you can call the
get_ip_address()
function to retrieve the current IPv4 address of your machine.
Example Code
from netLocator import get_ip_address
# Retrieve the current IPv4 address
ip_address = get_ip_address()
# Print the IP address
print(f"Your current IP address is: {ip_address}")
Documentation
For more detailed documentation, visit the NetLocator Documentation
Contributing
Contributions are welcome! Please feel free to submit a pull request or open an issue if you encounter any problems.
License
NetLocator is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
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
Hashes for netLocator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b26e9bbd3d9bca49053b72455f9fa86d223ea55271caf603deb06a13af404a |
|
MD5 | 3368bb50b88acce5f1fe5ba734defe88 |
|
BLAKE2b-256 | d9abf38ddd9dad9243e9c0bd32f4242e888b0ef42d74113304afe0feb0e29367 |