CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-us

A package for easily working with US and state metadata

Overall
score

88%

Overview
Eval results
Files

task.mdevals/scenario-1/

US State Geographic Analyzer

A utility that categorizes US states based on their geographic location attributes.

Capabilities

Identify contiguous states

  • Returns a list containing the names of all 48 contiguous US states, sorted alphabetically @test
  • Returns an empty list when no states match the contiguous criteria (this should not happen in practice) @test

Identify continental states

  • Returns a list containing the names of all 49 continental US states (includes Alaska), sorted alphabetically @test

Identify non-contiguous states

  • Returns a list containing the names of US states that are NOT part of the contiguous 48 (Alaska and Hawaii), sorted alphabetically @test

Implementation

@generates

API

def get_contiguous_states():
    """
    Returns a list of all contiguous US states.

    Returns:
        list: A list of state names (strings) sorted alphabetically
    """
    pass

def get_continental_states():
    """
    Returns a list of all continental US states.

    Returns:
        list: A list of state names (strings) sorted alphabetically
    """
    pass

def get_non_contiguous_states():
    """
    Returns a list of US states that are not contiguous.

    Returns:
        list: A list of state names (strings) sorted alphabetically
    """
    pass

Dependencies { .dependencies }

us { .dependency }

Provides US state metadata and geographic classifications.

@satisfied-by

Install with Tessl CLI

npx tessl i tessl/pypi-us

tile.json