CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-xxhash

Python binding for xxHash library providing fast non-cryptographic hash algorithms

Overall
score

80%

Evaluation80%

1.03x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-6/

Package Version Reporter

Build a utility that retrieves and formats version information from the xxhash package.

Requirements

Create a module that accesses version information from the xxhash library and formats it for display or logging purposes.

The utility should retrieve both the Python package version and the underlying xxHash C library version, then format this information into a human-readable string.

Test Cases

  • Calling get_package_version() returns a string containing the xxhash package version @test
  • Calling get_library_version() returns a string containing the xxHash C library version @test
  • Calling format_version_info() returns a formatted string with both version numbers @test

Implementation

@generates

API

def get_package_version() -> str:
    """
    Get the xxhash Python package version.

    Returns:
        The package version as a string
    """
    pass

def get_library_version() -> str:
    """
    Get the underlying xxHash C library version.

    Returns:
        The library version as a string
    """
    pass

def format_version_info() -> str:
    """
    Format both package and library versions into a readable string.

    Returns:
        A formatted string containing both version numbers
    """
    pass

Dependencies { .dependencies }

xxhash { .dependency }

Fast non-cryptographic hash library providing version information through VERSION and XXHASH_VERSION attributes.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-xxhash

tile.json