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.3.tar.gz (6.4 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.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pe_toolkit-1.0.3.tar.gz
Algorithm Hash digest
SHA256 365864ebe46a527694b95952ad28d906fdfaa88d9d198e767dce9126310a364d
MD5 eb1a8124cd4b89f014d333c8622b9cfa
BLAKE2b-256 ad597be104b79bd6faf06206da61faaf4c45ff2cd74a00472de833b287f77a46

See more details on using hashes here.

Provenance

The following attestation bundles were made for pe_toolkit-1.0.3.tar.gz:

Publisher: publish.yml on oadultradeepfield/cs2103-pe-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

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

File hashes

Hashes for pe_toolkit-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 421ba1cff14ad20062a0c5730690af093667c893616c674c2a0770aabba395ab
MD5 5bb789009b6de92afa9600d931857ba4
BLAKE2b-256 c59e62c7b691d380f21cee222e935124102f1fea742690825859f9270401c4e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pe_toolkit-1.0.3-py3-none-any.whl:

Publisher: publish.yml on oadultradeepfield/cs2103-pe-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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