Skip to main content

Python library simplifying system script management with handy functions like clearing the console, setting the window title, and detecting the operating system (Windows, Linux, macOS).

Project description

contsys

Python library simplifying system script management with handy functions like clearing the console, setting the window title, and detecting the operating system (Windows, Linux, macOS).

By G-Azon 🇫🇷

Features

  • CMD:

    • CMD.clear clear the console screen.
    • CMD.title([TITLE]) change the title of the console screen to the specified title.
  • system:

    • system.iswin32() return True if the current OS is Windows, and return False if the current OS is not Windows.
    • system.linux() return True if the current OS is Linux Based, and return False if the current OS is not Linux Based.
    • system.isdarwin() return True if the current OS is MacOS, and return False if the current OS is not MacOS.
  • monitor:

    • monitor.cpu_usage() return the current cpu usage in percents.
    • monitor.ram_usage() return the current virtual memory usage in percents.

Installation

You can install contsys using pip:

pip install contsys

License

This project is under the MIT License.

Contact

if you have any trouble or you want to suggest an amelioration you can contact me at G-Azon782345@protonmail.com

Changelog

1.1.0

  • Add monitor.cpu_usage() monitor.ram_usage().
  • Add the changelog section.
  • Add a new requiered dependency: psutil

1.0.2

  • Add a better description.

1.0.1

  • Add system.iswin32() system.islinux() system.isdarwin().

1.0.0

  • The first version of contsys.
  • Add CMD.clear() CMD.title().

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

contsys-1.1.0b0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

contsys-1.1.0b0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file contsys-1.1.0b0.tar.gz.

File metadata

  • Download URL: contsys-1.1.0b0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for contsys-1.1.0b0.tar.gz
Algorithm Hash digest
SHA256 9fde49f397ebb8cbf3d30d44106b7e80b29147caa0500cc2c1d8ca747455d231
MD5 78f2aa86eded5f66608a36f79b5b42c6
BLAKE2b-256 ce45c53460da5e6799fc7895a61b0adbfbd67096980dbc0ff3d1e23180fbb6ef

See more details on using hashes here.

File details

Details for the file contsys-1.1.0b0-py3-none-any.whl.

File metadata

  • Download URL: contsys-1.1.0b0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for contsys-1.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5fe29e785ca05e1cc5b3a215fb36b62d883962800176f98f2cde3297c6d096
MD5 c117a7f7dfa560bedd3e799c91b0a97b
BLAKE2b-256 70b42affa81af57fa64fe9a899c46b1681c947af8b6d2ad654681c05329d241e

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