version bump

This commit is contained in:
Will McGugan 2020-10-20 15:03:28 +01:00
parent 9f2a426ea7
commit cbac633ab3
3 changed files with 13 additions and 3 deletions

View File

@ -2,7 +2,7 @@
name = "rich"
homepage = "https://github.com/willmcgugan/rich"
documentation = "https://rich.readthedocs.io/en/latest/"
version = "9.0.0"
version = "9.0.1"
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
authors = ["Will McGugan <willmcgugan@gmail.com>"]
license = "MIT"
@ -39,4 +39,4 @@ jupyter = ["ipywidgets"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
build-backend = "poetry.core.masonry.api"

View File

@ -11,11 +11,13 @@ with open("cats.json") as fh:
cats = json.load(fh)
console.begin_capture()
start = time()
pretty = Pretty(cats)
console.print(pretty, overflow="ignore", crop=False)
result = console.end_capture()
taken = (time() - start) * 1000
print(result)
print(console.file.getvalue())
print(f"{taken:.1f}")

View File

@ -5,6 +5,14 @@ from rich.pretty import Pretty
DATA = {
"foo": [1, 2, 3, (), {}, (1, 2, 3), {4, 5, 6, (7, 8, 9)}, "Hello, World"],
"bar": [None, (False, True)] * 2,
"Dune": {
"names": {
"Paul Atriedies",
"Vladimir Harkonnen",
"Thufir Haway",
"Duncan Idaho",
}
},
}
console = Console()
for w in range(130):