diff --git a/NOTICE.txt b/NOTICE.txt index 2d10519..bab10cb 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,4 +1,4 @@ -Copyright 2020 Tian Gao +Copyright 2020-2021 Tian Gao Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 68e257b..8cac918 100644 --- a/README.md +++ b/README.md @@ -184,11 +184,12 @@ that match exclusive check. ```objprint``` formats the output based on some configs * ``config_name(default_value)`` - this config's explanation -* ``depth(6)`` - how deep ```objprint``` goes into nested data structures +* ``depth(100)`` - how deep ```objprint``` goes into nested data structures * ``indent(2)`` - the indentation * ``width(80)`` - the maximum width a data structure will be presented as a single line * ``elements(-1)`` - the maximum number of elements that will be displayed, ``-1`` means no restriction * ``color(True)`` - whether to use colored scheme +* ``skip_recursion(True)`` - whether skip printing recursive data, which would cause infinite recursion without ``depth`` constraint * ``honor_existing(True)`` - whether to use the existing user defined ``__repr__`` or ``__str__`` method You can set the configs globally using ``config`` function @@ -229,6 +230,6 @@ Please send bug reports and feature requests through [github issue tracker](http ## License -Copyright Tian Gao, 2020. +Copyright Tian Gao, 2020-2021. Distributed under the terms of the [Apache 2.0 license](https://github.com/gaogaotiantian/objprint/blob/master/LICENSE). diff --git a/src/objprint/__init__.py b/src/objprint/__init__.py index ef7fe65..4379cd5 100644 --- a/src/objprint/__init__.py +++ b/src/objprint/__init__.py @@ -1,7 +1,7 @@ # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/objprint/blob/master/NOTICE.txt -__version__ = "0.1.3" +__version__ = "0.1.4" from .objprint import ObjPrint