Skip to content

Commit

Permalink
Ready for 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian committed Nov 24, 2021
1 parent 58a3de8 commit eeb42b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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).
2 changes: 1 addition & 1 deletion src/objprint/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eeb42b2

Please sign in to comment.