Commit Graph

137 Commits

Author SHA1 Message Date
xqm32 5f923e88b0 Added `encoding` parameter in `Theme.read` 2023-01-12 15:13:34 +08:00
Jonathan Eunice 75c646288a fix table rendering order of box elements
* Previously "mid" box elements appeared in last line of table
  (footer), while "footer" box elements appeared mid table body.
  Reversed that order so mid is truly mid, footer is truly footer.
* Tested with:

    ```
    table.box.head_left = '1'
    table.box.head_vertical = '2'
    table.box.head_right = '3'

    table.box.mid_left = '4'
    table.box.mid_vertical = '5'
    table.box.mid_right = '6'

    table.box.foot_left = '7'
    table.box.foot_vertical = '8'
    table.box.foot_right = '9'
    ```

  After change, correct ordering:

    ```
    +--------------------------------------------------------------------------+
    1Date        2Title                            2  Production2    Box Office3
    |------------ --------------------------------- ------------ --------------|
    4Dec 20, 20195Star Wars: The Rise of Skywalker 5$275,000,0005  $375,126,1186
    4May 25, 20185Solo: A Star Wars Story          5$275,000,0005  $393,151,3476
    7Dec 15, 20178Star Wars Ep. VIII: The Last Jedi8$262,000,0008$1,332,539,8899
    +--------------------------------------------------------------------------+
    ```
2022-12-29 09:39:25 -05:00
Will McGugan 8bcb7011cf
Merge pull request #2576 from davep/add-davep
Update CONTRIBUTORS.md
2022-12-04 11:17:42 +07:00
Will McGugan 58d4e4f683
Merge pull request #2621 from ionite34/progress-length-hint
Use `operator.length_hint` to estimate progress total
2022-12-04 11:07:54 +07:00
Jan Katins bed8ee9b4a Show elapsed time when finished in rich.progress.track()
Before it was showing

```
Inserting nodes... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
```

now it will show:

```
Inserting nodes... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:12:03
```
2022-11-18 18:08:07 +01:00
ksun212 82e76d2c5d Update CONTRIBUTORS.md 2022-11-13 15:24:25 +08:00
Ionite 49c39d3a74
Update Changelog and Contributors 2022-10-28 13:56:39 -04:00
xadrianzetx d377318e72 Update CONTRIBUTORS.md 2022-10-25 19:21:08 +02:00
Dave Pearson 31e5366360
Update CONTRIBUTORS.md 2022-10-12 08:44:54 +01:00
Hugo van Kemenade d96c6069d9 Update CONTRIBUTORS.md 2022-10-11 17:32:44 +02:00
Z.H 86ebeec775
Update CHANGELOG and CONTRIBUTORS 2022-09-22 14:45:18 +08:00
Will McGugan ec54261a3e
Merge branch 'master' into fix-cyclic-references-handling 2022-09-20 11:10:22 +01:00
Will McGugan c881a2a5d8
Merge pull request #2397 from nilsvu/traceback
Print cause of exceptions even when they have no traceback
2022-09-20 11:07:07 +01:00
Will McGugan 30ba2973a6
Merge pull request #2424 from noklam/master
Detect Databricks as Jupyter environment
2022-09-20 11:06:32 +01:00
Jim Crist-Harif 01addbc33f Update changelog/contributors 2022-09-14 15:54:07 -05:00
oefe f8b536ca06 Fix missing `mode` property on file wrapper
Without this property, uploads using `requests` fails to set the
Content-Length header, and falls back to chunked encoding,
which many hosts (e.g. S3) don't support.
2022-08-27 17:08:29 +02:00
Michael Milton 13506c2367 Add max_depth arg to install() 2022-08-26 01:53:54 +10:00
Felipe Guedes 3b7728b75d 📝 Add CONTRIBUTORS 2022-07-28 21:30:21 -03:00
Nok Chan e054861ddf Update related docs 2022-07-27 16:22:48 +01:00
Nils Vu 0817587669
Print cause of exceptions even when they have no traceback
For example, exceptions raised by 'multiprocessing' may not include a
traceback. Instead, they include the traceback from another process
formatted as a string in the description of the exception.
It contains important information, so it should be printed by rich.
2022-07-25 13:16:46 +02:00
Serkan UYSAL ad8b150746
Update CONTRIBUTORS.md 2022-07-18 10:26:14 +03:00
Will McGugan b1368b61a4
Merge pull request #2301 from tomers/iso8601-highlighter
Add Iso8601Highlighter
2022-07-11 11:46:37 +01:00
Will McGugan 65c138088a
Merge pull request #2356 from tonybaloney/patch-1
Add Github flavoured markdown box type
2022-07-11 11:43:31 +01:00
Sebastián Ramírez 8da842e5e2 📝 Add CONTRIBUTORS 2022-07-04 11:32:07 +02:00
Will McGugan d22c2e9fc1
Merge pull request #2268 from lqhuang/fix-redundant-statements
Fix redundant statements
2022-06-28 14:35:48 +01:00
Anthony Shaw 88c021a5b2
Update change notes 2022-06-21 15:14:41 +10:00
Will McGugan fc4af2752a
Merge pull request #2332 from AntonyMilneQB/master
Allow Jupyter to vary width/height using COLUMNS/LINES
2022-06-20 11:50:02 +01:00
Darren Burns 9332476dbd
Update contributors 2022-06-15 15:04:31 +01:00
Tomer Shalev 8443505e21
Merge branch 'master' into iso8601-highlighter 2022-06-14 15:03:00 +03:00
Tomer Shalev 2707a73435 Add Iso8601Highlighter
Add ability to highlight date and time strings according to ISO8601 [1]

[1] https://en.wikipedia.org/wiki/ISO_8601
2022-06-14 15:02:35 +03:00
Will McGugan ebea93c0df
Merge branch 'master' into add-id-hyperlink-readme 2022-06-14 09:19:35 +01:00
Antony Milne d4f9f6dc50 Update column width, CHANGELOG, CONTRIBUTORS 2022-06-09 23:07:28 +01:00
za 2883b3355b Add za as contributors 2022-06-04 17:03:56 +07:00
Motahhar Mokfi 9c4bc5eefa add Motahahr Mokfi to contributors.md 2022-05-11 12:53:43 +04:30
Lanqing Huang e8b50f02e1
Update CONTRIBUTORS.md 2022-05-10 20:56:21 +08:00
Olivier Philippon d98d671c49 Fall back to `sys.__stderr__` on non-Windows OS to get size
This fixes the "pipe" bug, where we could not determine the available size correctly when the output of Rich is piped to another process
2022-04-06 11:37:56 +01:00
Will McGugan ae1ee4efa1
Merge pull request #2113 from theDreamer911/patch-1
adding indonesian translation for readme
2022-04-04 11:47:54 +01:00
Darren Burns 7a870e4a4b
Merge branch 'master' into progress-reader 2022-03-30 13:42:58 +01:00
Handhika Yanuar Pratama d08fe13809
Update CONTRIBUTORS.md 2022-03-30 04:12:25 +07:00
Luka Mamukashvili 25becd78d7
Update CONTRIBUTORS.md 2022-03-25 18:49:54 +04:00
Martin Larralde 5e8da24c4e Fix additional typing issues in `rich.progress` 2022-03-13 12:54:38 +01:00
Paul Sanders 19a861a4a5 Update CHANGELOG.md and CONTRIBUTORS.md 2022-03-06 19:50:46 -05:00
Will McGugan 0ac4e30818 sorted contributors 2022-02-27 11:00:51 +00:00
Will McGugan 75f4637cdd
Merge branch 'master' into richhandler-suppress 2022-02-27 10:57:53 +00:00
Will McGugan 646d933d47
Merge pull request #1992 from bhrutledge/condensed-time-column
Add condensed time column
2022-02-27 10:34:41 +00:00
Will McGugan e78acae68b
Merge pull request #1919 from aaronst/master
feat: optional RichHandler keywords
2022-02-27 10:28:28 +00:00
Brian Rutledge e2ccd5b70d
Update CHANGELOG and CONTRIBUTORS 2022-02-26 16:00:55 -05:00
Edward Davis 0ef6f5885c Add info to contributors. 2022-02-21 15:43:54 -08:00
Dennis Brakhane 8963eedf87 fix link 2022-02-12 15:09:00 +01:00
Will McGugan 4302eb3fb9
Merge branch 'master' into richhandler-suppress 2022-02-11 11:16:10 +00:00
Will McGugan 099893e8b1
Merge branch 'master' into fix-repr-highlighter 2022-02-10 11:54:19 +00:00
Wasi Master 821c0ce2eb Modify CHANGELOG.md and CONTRIBUTORS.md 2022-02-10 17:17:16 +06:00
Will McGugan 5fafb92f3d
Merge pull request #1904 from mgorny/lexer-name-fix
PyPy3 test fixes
2022-02-09 09:31:15 +00:00
ptmcg e4f48cc612 Update CONTRIBUTORS.md and CHANGELOG.md with changes related to adding Progress.get_default_columns 2022-02-06 14:03:39 -06:00
Dennis Brakhane eec7110b45 Update changelog and contributers 2022-02-05 19:45:26 +01:00
Aaron Stephens bdd1fd77ab feat: optional RichHandler keywords 2022-02-04 13:25:56 -08:00
Michał Górny 8e3a0be6fb Fix test_syntax not to use identity comparison on string
Fix test_syntax to compare strings via "==" rather than "is", in order
to fix test failure on PyPy3.
2022-02-01 12:28:58 +01:00
Leron Gray 607f160e27 update CONTRIBUTORS.md 2022-01-21 14:38:48 -08:00
Darren Burns 35795dc9e9 Add darrenburns to CONTRIBUTORS.md 2022-01-06 10:08:40 +00:00
Patrick Arminio 6e930a30c3
Add myself to contributors 2021-12-11 22:15:47 +00:00
Will McGugan a6d1d78487
Merge pull request #1706 from 0xDEC0DE/issue/1670
Add a Text.from_ansi helper method
2021-11-28 16:04:03 +00:00
Will McGugan 666d0cf2b2
Merge pull request #1504 from boegel/dynamic_progress_example
add example with dynamic group of progress bars
2021-11-20 10:51:53 +00:00
Nicolas Simonds 62ead7eded Add a Text.from_ansi helper method
Add a simple little helper to run `AnsiDecoder.decode_line` over
"pre-cooked" inputs.

Fixes issue: #1670
2021-11-17 13:25:39 -08:00
Will McGugan e53fb31288
Merge pull request #1620 from timsavage/bugfix/handle-errors-writing-log-entry
Bugfix/handle errors writing log entry
2021-11-07 10:26:26 +00:00
James Estevez 07c6733027
Update changelog 2021-11-06 12:47:07 -07:00
Tim Savage 35fdd59128 Updated CHANGELOG.md and CONTRIBUTORS.md 2021-10-22 12:31:03 +11:00
Kenneth Hoste 58b71127aa
add @boegel to contributors 2021-10-16 13:51:05 +02:00
Will McGugan a29c1ae0bc
Merge pull request #1586 from akettmann-e24/patch-1
fix return type for `Table.expand()` getter
2021-10-16 10:34:28 +01:00
Will McGugan 7029cae10a
Merge pull request #1580 from Psycojoker/is-atty-broken-in-pytest
fix a edge case bug when running under pytest
2021-10-16 10:32:05 +01:00
akettmann-e24 14e20ecea6
Update CONTRIBUTORS.md 2021-10-14 10:56:38 -05:00
Laurent Peuch 8a33ce27db fix a edge case bug when running under pytest 2021-10-13 17:39:30 +02:00
GBeauregard 67ef9a86c0
update CONTRIBUTORS.md 2021-10-12 16:16:33 -07:00
Avrohom Perl 4dc5e0b714 Fix misspelled month in readme table example 2021-10-03 03:38:26 -04:00
Tushar Sadhwani add8feda53 Add to contributors 2021-08-30 15:58:08 +05:30
kyle pollina 56b4b4bc6a update contributors 2021-08-22 20:39:53 -05:00
p0lux a6f5d8a8c1
Update CONTRIBUTORS.md 2021-07-27 14:26:49 +02:00
Pete Davison 9564ac5462 Updated changelog and contributors 2021-07-09 10:15:37 +00:00
Gabriele N. Tornetta efa324a594 perf(console): avoid call to inspect.stack
This change improves the performance of the `Console.log` method by avoiding an expensive call to `stack()` and using `currentframe` instead. The same information is then available by navigating backward as many levels as required and peeking at the `code` object.
2021-06-05 17:50:02 +01:00
Will McGugan 3e079ff52b
Merge branch 'master' into really-disable-pbar 2021-03-25 21:29:56 +00:00
Clément Robert 4eac117be0 update changelog and contributors 2021-03-24 16:58:25 +01:00
JoshKarpel d278c0c149 add proto CHANGELOG.md entry, update CONTRIBUTORS.md 2021-03-21 10:36:12 -05:00
Finn Hughes d52c2a8fc7 Allow timestamps to include milliseconds
Allow log_time_format to be string or callable e.g:

def time_formatter(timestamp: datetime) -> str:
    milliseconds = int(timestamp.microsecond / 1000.0 + 0.5)
    return f'{timestamp.strftime("%H:%M:%S")}.{milliseconds:03}'
2021-02-15 15:47:27 +00:00
Alexander Mancevice d28cbf8878 allow stdin on rich.markdown.__main__
If user provides no PATH or uses "-" as PATH, markdown is read from sys.stdin.

Example:
python -m rich.markdown < README.md
cat README.md | python -m rich.markdown
2021-01-09 16:03:38 -05:00
Nathan Page a154bcd0ea add nathan to contributors 2020-10-25 22:21:41 -04:00
oleksis 9df0f3aabd Add README.es.md in Spanish/Español 2020-09-17 15:55:22 -04:00
Hedy Li c6f566851e
Docs: Add myself To contributors 2020-08-16 19:20:35 +08:00
Will McGugan 88b5f8b13c set default for markdown styles, added contributors.md 2020-05-26 16:02:03 +01:00