Params-proto

Latest version: v2.12.1

Safety actively analyzes 623144 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.10.0

2022/07/04

* Move `neo_proto` to top-level, move older `params_proto` to `v1` namespace.
* Implement nested update via [global prefix](https://github.com/geyang/params_proto/blob/master/test_params_proto/test_neo_proto.py#L278) . No relative update via `**kwargs`, yet
* Fix `to_value` bug in Flag

python
def test_deep_nested():
"""The point of this test is to test nested protos."""
from params_proto.proto import PrefixProto

class A(PrefixProto, cli=False):
key = 10

class B(PrefixProto, cli=False):
key = 20

class C(PrefixProto, cli=False):
key = 30

A._update({'A.key': None, 'A.B.key': 'hey', 'A.B.C.key': 'yo'})

assert A.key is None, "key should not be `None`."
assert A.B.key is "hey", "key should be `hey`."
assert A.B.C.key is "yo", "key should be `yo`."

2.8.18

params_proto has been updated to v2.8.18 to fix an issue with the help string, during parsing by argparse, when the default value contains % signs.

- fix help string with % that comes from default value_str
- limit the max length of the default value in the help string
- update the Makefile to default to publish & release

(HEAD -> master, tag: v2.8.18, origin/master, origin/HEAD) [Ge Yang]

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.