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 clears the console screen.
    • CMD.title([TITLE]) changes the title of the console screen to the specified title.
  • system:

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

    • monitor.cpu_usage() returns the current cpu usage in percent.
    • monitor.ram_usage() returns the current virtual memory usage in percent.

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 improvement you can contact me at G-Azon782345@protonmail.com

Changelog

1.1.1

  • Added monitor.cpu_usage() monitor.ram_usage().
  • Setup.py migrated to pyproject.toml
  • Added the changelog section.
  • Added a new required dependency: psutil

1.0.2

  • Added a better description.

1.0.1

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

1.0.0

  • The first version of contsys.
  • Added 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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file contsys-1.1.1.tar.gz.

File metadata

  • Download URL: contsys-1.1.1.tar.gz
  • Upload date:
  • Size: 2.4 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.1.tar.gz
Algorithm Hash digest
SHA256 170abe4e06581f66b1d20fdcfbe5172f5246f1f3be7c94a7623967aee09734bb
MD5 e4bec301122c7b2903f3419d25f21d8c
BLAKE2b-256 91f6ec3c9db42761d9d457dcbaf98b0e93d3a4ad95e6696f12cd11cc6af01b7b

See more details on using hashes here.

File details

Details for the file contsys-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: contsys-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87d53ee901252a5487ad9c687f43cc25f5711f2d1031242675bb1cfcd0d9eb0d
MD5 317592ae45a38d0807676e4fc3de22b3
BLAKE2b-256 726820d0dce512220ac9141f696ee2ce711ad99f6844d1aae103b926a1501f17

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