Skip to main content

Core System Management Utilities for Windows (Registry, Services, Processes, User Management).

Project description

# PySysCore: Robust Windows System Management Utilities

[![PyPI version](https://img.shields.io/pypi/v/pysyscore.svg)](https://pypi.org/project/pysyscore/)

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

[![Python version](https://img.shields.io/badge/Python-3.7%2B-blue.svg)](https://www.python.org/downloads/)

PySysCore is a light and robust Python library for essential system administration and introspection tasks on Windows operating systems. It offers reliable, language-agnostic utilities for interacting with the Windows Registry, managing services, handling processes, and performing user account operations, even on localized systems.


## ✨ Key Features

* **Reliable OS Detection:** Accurately identifies Windows 10 vs. **Windows 11** by checking the Build Number, overcoming compatibility flags.

* **Localized User Management:** Automatically detects the locale-specific name of the **Administrators** group (e.g., 'Administrateurs') for reliable user provisioning.

* **Service Control:** Start, stop, and restart system services (pywin32 dependency).

* **Command Execution:** Safe wrappers for running both cmd and PowerShell commands.

* **System Introspection:** Retrieval of FQDN, OS version, architecture, and registry values.


## ⚙️ Installation

PySysCore requires pywin32 for core Service Management features, which is specified as a Windows-only dependency.

pip install pysyscore



\#exemples



from pysyscore import SystemInfo



sys\_info = SystemInfo()

info = sys\_info.get\_system\_info\_summary()



print(f"OS Name: {info\['OS\_LongName']}")

\# Output (on Windows 11): Windows 11 Pro (25H2)





from pysyscore import WindowsUtility



util = WindowsUtility()

test\_user = "test\_sys\_user"

admin\_group = util.get\_admin\_group\_name() # Get localized name



print(f"Admin Group Detected: {admin\_group}")

util.create\_local\_user(test\_user, "P@sswOrd123")

util.add\_user\_to\_group(test\_user, admin\_group)

\# ... cleanup commands (delete\_local\_user)

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

pysyscore-1.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

pysyscore-1.0.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file pysyscore-1.0.0.tar.gz.

File metadata

  • Download URL: pysyscore-1.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pysyscore-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4b06ac055cc26a23da85beffd316bfc94a8661cade3d7735bc531dcf070829d1
MD5 68d05e98b8eaeab7884e683dd94cfd96
BLAKE2b-256 c15cfbaf730006b567fd79e35d9441d5e14780066ef3f9399bd8f4ff896f9166

See more details on using hashes here.

File details

Details for the file pysyscore-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pysyscore-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for pysyscore-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 756b2da9ea988e8e79e7e337aa4b46e6f84cdecb6b058d5d3b25e4cd45606a29
MD5 b132958ff60ceb05779e8881862118cc
BLAKE2b-256 fc16e31dcabb3c0d87cc0c18a4afe0083ef141cbee707c2c40104eff9a94b39b

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