Jonas L
e207b6e388
docs: be consistent with example domain ( #2568 )
2023-05-26 14:00:34 +01:00
jo
c6940db289
feat: replace loguru with logging
2023-02-26 19:09:51 +02:00
jo
bd76971312
style: format code using black
2023-02-01 11:17:49 +01:00
jo
d29d837d01
feat: drop Python 3.6 support
2022-10-10 20:11:33 +02:00
Jonas L
9b3207b8a4
feat: move timezone preference to config file ( #2096 )
...
BREAKING CHANGE: The timezone preference moved to the configuration
file.
2022-09-14 12:48:08 +02:00
jo
d9920a1196
feat(shared): create stream config models
2022-09-06 13:21:54 +02:00
Jonas L
1147853c63
feat(shared): pass config data via init ( #2042 )
2022-08-12 15:12:39 +02:00
jo
bcd877266f
feat(shared): load env config using jsonschema
...
The env loader is now capable of loading lists of objects, union types
or list of union types from the env variables.
They are some limitations: for example it doesn't support unions of
different shapes `list | dict` or `str | dict`.
2022-07-31 21:43:34 +02:00
jo
dec51eacee
test(shared): move config tests
2022-07-31 21:43:34 +02:00
jo
be9f36dbdc
feat(analyzer): move compute_md5 to shared library
2022-06-28 19:05:14 +02:00
Jonas L
6ef941b3f2
chore(shared): explicit function name time_fromisoformat ( #1917 )
2022-06-25 17:10:59 +02:00
jo
3ce60d4881
chore: move api-client datetime utils to shared
2022-06-24 17:56:24 +02:00
Jonas L
3705747132
feat(shared): add config trailing slash sanitizer ( #1870 )
2022-06-11 18:18:34 +02:00
jo
e4439390fe
feat: change config file format to yaml
...
- docs: add link to yaml.org
BREAKING: The `ini` configuration file format changed to `yml`. Please
rewrite your configuration file using the yaml format.
2022-06-08 23:23:08 +02:00
Jonas L
a4caf4782b
fix(shared): allow list settings ( #1837 )
2022-05-05 18:14:32 +02:00
jo
045fdc8d96
feat(shared): create time functions
2022-02-22 17:33:48 +02:00
Jonas L
5769821995
test(shared): config with required submodel ( #1616 )
2022-02-20 20:11:49 +00:00
jo
80dfbd3179
fix(shared): set logger encoding and dont assume encoding
...
Older versions of python might have ascii as default, we
should not assume that the default encoding always is "utf-8"
when opening files.
2022-02-01 04:23:05 +02:00
jo
b9502bc203
test(shared): fix linting
2022-01-26 10:15:35 +02:00
Jonas L
1924919e18
fix(shared): type is required for default config submodel ( #1536 )
...
We cannot load submodels values from environment variables without having the submodel type annotations.
2022-01-24 15:24:16 +02:00
jo
7aba20f1ac
test(shared): check config using optional sections
...
fix missing DatabaseConfig rename
2022-01-24 12:46:40 +02:00
jo
b527c2704d
feat(shared): add suffix to shared config models
2022-01-21 11:54:00 +02:00
jo
2a8da1e931
test(shared): assert key is from file
2022-01-18 11:14:24 +02:00
jo
b1ecf25d6f
feat(shared): allow loading from ini config file
2022-01-18 11:14:24 +02:00
jo
65dff91d47
fix(shared): tmp_path fixture type mismatch
2022-01-18 11:14:24 +02:00
Jonas L
40130303dd
feat: replace verbosity flag with log-level flag ( #1496 )
...
using a string flag is better when using environement variables.
2022-01-08 08:16:08 +02:00
jo
ba4eeaaff2
fix(shared): fix tests
2022-01-07 16:50:58 +01:00
Jonas L
3a615cafa0
feat: create libretime_shared package ( #1349 )
...
* feat: create libretime_shared package
- We don't use pydantic.BaseSettings because of some
incompatble loading behavior.
* fix: whitelist pydantic in pylintrc
* docs: update to new BaseConfig behavior
* docs: change confusing config filepath
2022-01-06 15:40:52 +02:00