Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diskest

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diskest

Advanced Disk Benchmark Tool

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

Diskest: Advanced Disk Benchmark Tool

Diskest is an advanced disk benchmark tool designed to provide comprehensive disk performance assessment for Linux systems.

Features

  • Supports multiple benchmark tests including FIO and Sysbench
  • Detailed hardware detection and system information collection
  • Flexible configuration options
  • Multiple report formats (CLI, Markdown, CSV, JSON, PDF)
  • Results database for storing and comparing benchmark results

Installation

To install Diskest, you can use pip:

pip install diskest

For development installation with additional tools:

pip install diskest[dev]

Or clone the repository and install:

git clone https://github.com/lemonsterfy/diskest.git
cd diskest
pip install -e .[dev]

This will install Diskest along with all development dependencies.

Usage

Diskest provides a command-line interface with the following main commands:

  1. Run benchmark tests:

    diskest run [--config CONFIG_FILE]
    
  2. Generate reports:

    diskest report [--format {cli,markdown,csv,json,pdf}] [--output OUTPUT_FILE]
    
  3. Manage configuration:

    diskest config {show,edit}
    

For more detailed usage instructions, use the --help option with any command.

Running Diskest in a Virtual Environment

If you're using Diskest in a virtual environment and need to run it with elevated privileges, use the following command:

sudo /path/to/your/venv/bin/diskest run [--config CONFIG_FILE]

For example, if your virtual environment is named diskest_env and is located in your home directory:

sudo /home/yourusername/diskest_env/bin/diskest run [--config CONFIG_FILE]

Replace /home/yourusername with your actual home directory path.

Note: Running Diskest with sudo privileges is necessary for certain disk operations. Always exercise caution when running commands with elevated privileges.

Running Tests

To run the tests for Diskest, follow these steps:

  1. Ensure you have installed the development dependencies:

    pip install -e .[dev]
    
  2. Run the tests using pytest:

    pytest
    

This will run all the tests in the tests/ directory. For more detailed output, you can use the -v flag:

pytest -v

Our test suite covers the following areas:

  • Configuration management
  • Hardware detection
  • System information collection
  • Result processing
  • Test runners (FIO and Sysbench)
  • CLI functionality
  • Database operations
  • Logging

To run tests for a specific module, use:

pytest tests/test_<module_name>.py

Contributing

Contributions are welcome! Please see our Contributing Guide for more details.

License

Diskest is released under the MIT License. See the LICENSE file for more details.

Support

If you encounter any issues or have questions, please file an issue on the GitHub issue tracker.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc