Mercurial > hgrepos > Python > libs > data-schema
diff docs/schema.txt @ 29:68286d27f27d
FIX: Allow customization of the data stream loader (get_data_stream())
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 08 Jul 2023 16:10:36 +0200 |
| parents | db3491e1b590 |
| children | 271ec3abdfa3 |
line wrap: on
line diff
--- a/docs/schema.txt Sat Jul 08 13:51:20 2023 +0200 +++ b/docs/schema.txt Sat Jul 08 16:10:36 2023 +0200 @@ -36,7 +36,7 @@ Bei Treffer wird dieser Key komplett ignoriert. Das ist also eine globale Ignore-Liste für Dict-Keys. - Default: ``None`` + Default: `None` - ``break_on_keynames_problems`` @@ -45,6 +45,14 @@ Default: ``True`` +- ``data_stream_loader`` + + Default: `None` (i.e. use the builtin + :func:`data_schema.util.get_data_stream`) + + A callable with an `uri` argument that returns a file-alike and a + context manager to be feed into the schema loader. + - ``schema_loader`` Default: configmix.yaml.load (if available) or ``None``
