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_addressfunction from thenetLocatormodule. -
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
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 netlocator-1.0.0.tar.gz.
File metadata
- Download URL: netlocator-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02d988aeca566e0a475f44933bc6204dde2a66b53e9e53488e8504cd2ce891c2
|
|
| MD5 |
05c07dc89a7df74cd74c1255f4136b4e
|
|
| BLAKE2b-256 |
4740676148ffed9dd26a5ba26b0744957d7a6ee0729fe975531d736e383a17bc
|
File details
Details for the file netLocator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: netLocator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13b26e9bbd3d9bca49053b72455f9fa86d223ea55271caf603deb06a13af404a
|
|
| MD5 |
3368bb50b88acce5f1fe5ba734defe88
|
|
| BLAKE2b-256 |
d9abf38ddd9dad9243e9c0bd32f4242e888b0ef42d74113304afe0feb0e29367
|