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" name = "rich"
homepage = "https://github.com/willmcgugan/rich" homepage = "https://github.com/willmcgugan/rich"
documentation = "https://rich.readthedocs.io/en/latest/" 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" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
authors = ["Will McGugan <willmcgugan@gmail.com>"] authors = ["Will McGugan <willmcgugan@gmail.com>"]
license = "MIT" license = "MIT"

View File

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

View File

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