A Python package to generate and save system reports.
Project description
System Report
System Report is a Python package designed to generate and save a detailed system report, including information about the operating system, CPU, memory, and disk usage.
Features
- Collect system information, such as OS version, hostname, CPU, memory, and disk details.
- Format values in a human-readable way (e.g., GB, MB).
- Save the system report as a JSON file.
- Easily extensible and includes unit tests.
Installation
You can install the package locally:
pip install .
Usage
To generate and save a system report, run the following command:
python -m system_report
This will create a system_report.json file in the current working directory.
Running Tests
The package includes unit tests written with pytest. To execute the tests and generate a report in JUnit XML format, follow these steps:
-
Install the required dependencies:
pip install pytest
-
Run the tests and generate the report:
python -m pytest --junitxml=report.xml
This will run all tests and save the test results in a file named report.xml.
Publishing the Package to PyPI
To publish the package to PyPI, follow these steps:
-
Ensure you have the required tools installed:
pip install twine setuptools wheel
-
Build the package:
python setup.py sdist bdist_wheel
-
Upload the package to PyPI:
twine upload dist/*
You will be prompted to enter your PyPI username and password.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file system_report-1.0.0.tar.gz.
File metadata
- Download URL: system_report-1.0.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc9c8a11589c15303218d3d1cce934ca27f9c0b84a51ab7a8414c9c32ad9659
|
|
| MD5 |
fa426b1c02d5e93a3c356ba0b2eb6a41
|
|
| BLAKE2b-256 |
9dd331ada36d3b1a47030437a810d7b28028ca68136c222aa2c58ce13aab1482
|
File details
Details for the file system_report-1.0.0-py3-none-any.whl.
File metadata
- Download URL: system_report-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a0ff5160cb61064652bb11ffda4babcca0c711d22a1eb6239201a9eb087590
|
|
| MD5 |
37f9266de907180dadd8018a1a4bb665
|
|
| BLAKE2b-256 |
250d8b7aeb050f235ae4eb9e3cbb1853a0302683fb19ff7633a92715b9b91326
|