Skip to main content

A beginner-friendly package to get system and network information

Project description

my_sys_info

A beginner-friendly Python package that gathers system and network information.

Features

  • Get Current Local Time: Retrieve the current date and time in a readable format
  • Get Public IP Address: Fetch your public IP using the ipify API
  • Get Location Information: Determine your city, region, and country based on your IP using ip-api
  • Get Device OS Information: Retrieve operating system details using the platform library
  • Get Author Name: Returns a hardcoded author name

Installation

Install in Editable Mode (for development)

Navigate to the package directory and install it in editable mode:

cd e:\PROJECTS\demo-package
pip install -e .

This allows you to make changes to the code and test them immediately without reinstalling.

Regular Installation

pip install .

Usage

Import and Use Individual Functions

from my_sys_info import get_current_time, get_public_ip, get_location_from_ip, get_author_name, get_device_os

# Get current time
print(get_current_time())

# Get public IP
ip = get_public_ip()
print(ip)

# Get location
location = get_location_from_ip()
print(location)

# Get author name
print(get_author_name())

# Get OS information
os_info = get_device_os()
print(os_info)

Get All Information at Once

from my_sys_info import get_all_info

info = get_all_info()
print(info)

Requirements

  • Python 3.7 or higher
  • requests library (automatically installed with the package)

API Services Used

License

MIT License

Author

Your Name

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

my_sys_info-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

my_sys_info-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file my_sys_info-0.1.0.tar.gz.

File metadata

  • Download URL: my_sys_info-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for my_sys_info-0.1.0.tar.gz
Algorithm Hash digest
SHA256 85af67fee03df72dee13dd4a3985e9aced4f3606c241c4774a6a7a404d939532
MD5 ab928f40f33cd9af6ad7c6ad7fafb2f1
BLAKE2b-256 a5453d35ccfd9a595b992fb17b44ed4116c72837926acdfccbbf3d2cf66e1abf

See more details on using hashes here.

File details

Details for the file my_sys_info-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: my_sys_info-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for my_sys_info-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8af719d11a6734129030cf4f0eddcb1cefa272f659184242e27f3db71b24596
MD5 ba524e1544dbf2521a9763aee2d71f4d
BLAKE2b-256 4ea0612eb886efa5f8e508ebdb85097376a4cd1c1a31006745992f43ea730b5f

See more details on using hashes here.

Supported by

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