Skip to main content

Library for obtaining system information and user information..

Project description

sysinfolib

Library for obtaining system information and user information.


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


Author and developer: A.A. Suvorov.


Description:

Library for obtaining system information:

  • Internal ip
  • External ip
  • Memory information
  • Disk information
  • Network information
  • Username
  • Computer name
  • Operating system version
  • Platform information
  • Information about architecture
  • Processor information
  • Python version information
  • Information about the city
  • Information about the region
  • Information about the country
  • Information about the provider
  • Information about geolocation
  • Postcode
  • Timezone

Help:

pip install sysinfolib

Attention!!! For some methods to work correctly, an active Internet connection is required.

from sysinfolib.informers import SystemInformer

informer = SystemInformer()
external_ip = informer.ip.get_external_ip()
internal_ip = informer.ip.get_internal_ip()
system_user_name = informer.system.get_system_user_name()
system_name = informer.system.get_system_name()
node_name = informer.system.get_node_name()
release_info = informer.system.get_release_info()
version_info = informer.system.get_version_info()
platform_info = informer.system.get_platform_info()
machine_info = informer.system.get_machine_info()
processor_info = informer.system.get_processor_info()
cpu_info = informer.system.get_cpu_info()
disk_info = informer.system.get_disk_info()
memory_info = informer.system.get_memory_info()
network_interfaces = informer.system.get_network_interfaces()
system_load = informer.system.get_system_load()
python_version = informer.system.get_python_version()
ip_address = informer.user.get_ip_address()
hostname = informer.user.get_hostname()
city = informer.user.get_city()
region = informer.user.get_region()
country = informer.user.get_country()
loc = informer.user.get_loc()
org = informer.user.get_org()
postal = informer.user.get_postal()
timezone = informer.user.get_timezone()

There are other useful classes and methods.


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.

Copyright:

--------------------------------------------------------
Licensed under the terms of the BSD 3-Clause License
(see LICENSE for details).
Copyright © 2018-2024, A.A. Suvorov
All rights reserved.
--------------------------------------------------------

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

sysinfolib-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

sysinfolib-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file sysinfolib-0.0.1.tar.gz.

File metadata

  • Download URL: sysinfolib-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for sysinfolib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2795b98a88e026d7c59180a996a36ff9b895b1c6248b487957fb4c3905806524
MD5 0f096ad66604a108b7946aeaaf162329
BLAKE2b-256 a39921ce9345c2cd56d3f6aa5afd83c1737fb0934ebb4c8125dd9b0adbc82fab

See more details on using hashes here.

File details

Details for the file sysinfolib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sysinfolib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for sysinfolib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ea8092f4f22bc616225b2fa794c841425b167a4804ead39262e6e104af5c2f1
MD5 c79c4158d9312f2e1039970344048087
BLAKE2b-256 0af525805ed68203dc772dffe969449f71cd0baeff5b95dda8040fd2b6d9634b

See more details on using hashes here.

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