Skip to content

WindfallLabs/polartides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

polar-tides

polar-tides is a Python library to assist in enforcing/validating polars dataframes against the TIDES data standards using dataframely schema objects.

This library is in alpha and not yet intended for production use. It is undergoing active development, so expect breaking changes.

Use

import dataframely as dy
import polars as pl
import polartides as tides


def create_trips_performed() -> tides.TripsPerformed:  # Use dataframely schemas as return-types
    """
    Agency-specific code that returns a TIDES:trips_performed-compliant polars dataframe.
    
    Raises dataframely.exc.SchemaError
    """
    df: pl.DataFrame = ...  # create the dataframe
    return tides.TripsPerformed.validate(df)  # Returns a TIDES schema-validated polars dataframe

Installation (WIP)

This is not yet available on pypi

Download this repo and copy the polartides folder to your PATH.

Contributing

Please!
We need tests and sample data.

About

TIDES schema validation of polars dataframes using dataframely.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages