Skip to main content

'Get USer Information - A library for get user information.'

Project description

Get User Information v 0.0.1

GitHub release (latest by date) PyPI - Downloads GitHub top language PyPI GitHub PyPI - Format


Get User Information - A library for get user information.


Help:


pip install getuserinformation

from get_user_information import UserInfoChecker
from get_user_information import SystemInfoChecker


user_info = UserInfoChecker()
system_info = SystemInfoChecker()
print(user_info.get_ip_address()) # Return IP address
print(user_info.get_hostname()) # Return hostname
print(user_info.get_city()) # Return city
print(user_info.get_region()) # Return region
print(user_info.get_country()) # Return country
print(user_info.get_loc()) # Return location
print(user_info.get_org()) # Return organisation
print(user_info.get_postal()) # Return postal
print(user_info.get_timezone()) # Return timezone
print(system_info.get_username()) # Return username

for k, v in user_info.data.items():
    print(f'{k}, {v}') # Return all info

Disclaimer of liability:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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

getuserinformation-0.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

getuserinformation-0.0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page