Skip to main content

CS2103T PE Toolkit: Practical Exam Helper CLI

Project description

PE Toolkit

A command-line tool for generating edge case test inputs and validating PDF links for CS2103/T practical exams.

Getting Started

Prerequisites

To use this tool, you will need Python 3.9 or higher. You can verify your Python installation via:

python3 --version

Installation

  1. To use the PE Toolkit, install the package using pip:

    pip install pe-toolkit
    
  2. Verify the installation by checking the version:

    pe-toolkit --help
    

Quick Start

Generate Edge Case Inputs

  1. Create a JSON specification file:

    [
      {
        "variable": "email",
        "prefix": "e/",
        "type": "string",
        "min_length": 5,
        "max_length": 100
      },
      {
        "variable": "score",
        "prefix": "s/",
        "type": "double",
        "min": 0.0,
        "max": 100.0
      },
      {
        "variable": "birthdate",
        "prefix": "d/",
        "type": "date",
        "format": "%Y-%m-%d"
      }
    ]
    

    Below is the list of supported field types and their parameters.

    Type Configuration
    String "type": "string", "min_length": X, "max_length": Y
    Integer "type": "integer", "min": X, "max": Y
    Long "type": "long", "min": X, "max": Y
    Double "type": "double", "min": X, "max": Y
    Date "type": "date", "format": "%Y-%m-%d"
    Time "type": "time", "format": "%H:%M"

    Note that the minimum and maximum values are optional. If omitted, default values will be used.

  2. Generate test cases:

    pe-toolkit generate spec.json
    

Check PDF Links

To validate all hyperlinks in a PDF document, run:

pe-toolkit check-links document.pdf

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

pe_toolkit-1.0.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

pe_toolkit-1.0.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pe_toolkit-1.0.2.tar.gz.

File metadata

  • Download URL: pe_toolkit-1.0.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pe_toolkit-1.0.2.tar.gz
Algorithm Hash digest
SHA256 abd0b19afa6a6e8de75982ea7d32be0cb455ba1ed6884af07d77b63787d23e0d
MD5 149e39e3f3608a35f89a179ead85b116
BLAKE2b-256 692f84f79288471bf49f40a681db636363f7b7fadf875f4fc6d4166985001c6f

See more details on using hashes here.

File details

Details for the file pe_toolkit-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pe_toolkit-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pe_toolkit-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a42f794b9bad91f11e0ed3e58cdb41d4f189d5819f7ae65cabb9b1947420617
MD5 0ad6cb1d3fe0ae5d790b9bba44a495c6
BLAKE2b-256 20951a18eb55e7c1def58ad6edea52900acb96e92498c62d7fb827ea9ef529b5

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