mirror of https://github.com/Textualize/rich.git
version bump
This commit is contained in:
parent
9f2a426ea7
commit
cbac633ab3
|
@ -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"
|
||||
|
|
|
@ -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}")
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue