Skip to main content

Python utility for creating configs from settings files

Project description

Parameter Parse (paparse)

Example

    trainer:
        batch_size: 5
    data:
        train_path: "some_path"
    @dataclass
    class Config(SimpleConfig):
    class EarlyTerminatorConfig(MultiActiveModuleConfig):
        pass

    @dataclass
    class IncreasingValueConfig(EarlyTerminatorConfig):
        patience:int
        metric:str

    @dataclass
    class TrainerConfig:
        early_terminators:list[EarlyTerminatorConfig]
    #   batch_size:int
    #   drop_remainder:bool
    #   ...

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

paparse-0.1.0a1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

paparse-0.1.0a1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page