GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stream to echo_via_pager · Issue #409 · pallets/click

stream to echo_via_pager #409

New issue
Copy link
New issue
Copy link
Closed
#889
Closed
stream to echo_via_pager#409
#889
Copy link
Assignees
untitaker
Labels
help outputHelp text formatting, layout, and --help rendering
Milestone
7.0

Description

@untitaker
untitaker
opened on Aug 16, 2015
Issue body actions

There should be a possibility to launch the pager while still generating the data it is supposed to show. Proposed API:

with echo_via_pager() as f:
    f.write('foobar')
Reacted by Steffen Neubauer, Anton Backer and Daniel Hahler

Activity

  1. untitaker
    self-assigned this
    on Aug 16, 2015
  2. mitsuhiko commented on Sep 15, 2015

    @mitsuhiko
    mitsuhiko
    on Sep 15, 2015
    Contributor
    More actions

    I think this might be impossible to support given how the pager fallbacks work.

  3. untitaker commented on Sep 20, 2015

    @untitaker
    untitaker
    on Sep 20, 2015
    ContributorAuthor
    More actions

    In that case I think it makes sense to just skip the fallbacks that don't support this.

    I need this because I want to write something like git log, and want to immediately show something instead of buffering the whole log.

    Reacted by Matthew Gamble
  4. meejah commented on Jan 11, 2016

    @meejah
    meejah
    on Jan 11, 2016
    More actions

    +1
    I'm currently working around this by collecting all my lines in some list and then echoing them, but for large inputs this can take a while (and, obviously, for really large inputs, exhaust memory). So, the user experience is bad for large inputs since it appears nothing is happening...

  5. stefreak
    added 2 commits that reference this issue on Nov 12, 2017

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit 000b0b8 is merged into the 'master' branch.
    000b0b8

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit 4dccc18 is merged into the 'master' branch.
    4dccc18
  6. stefreak commented on Nov 12, 2017

    @stefreak
    stefreak
    on Nov 12, 2017
    Contributor
    More actions

    I pushed a solution using generators. I'd love to get some early feedback and would finish the implementation if the design is pleasing :)

  7. stefreak
    added a commit that references this issue on Nov 13, 2017

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit 8afe19e is merged into the 'master' branch.
    8afe19e
  8. stefreak
    added 4 commits that reference this issue on Jan 8, 2018

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit 7ce2f7d is merged into the 'master' branch.
    7ce2f7d

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit d7ced98 is merged into the 'master' branch.
    d7ced98

    Streaming pager: initial commit. Fixes pallets#409

    This issue will close once commit 99713bb is merged into the 'master' branch.
    99713bb

    Implement streaming pager. Fixes pallets#409

    This issue will close once commit 532aa83 is merged into the 'master' branch.
    532aa83
  9. stefreak
    added 3 commits that reference this issue on Apr 3, 2018

    Implement streaming pager. Fixes pallets#409

    This issue will close once commit cdd09e7 is merged into the 'master' branch.
    cdd09e7

    Implement streaming pager. Fixes pallets#409

    This issue will close once commit f9dea22 is merged into the 'master' branch.
    f9dea22

    Implement streaming pager. Fixes pallets#409

    This issue will close once commit 6ca05be is merged into the 'master' branch.
    6ca05be
  10. dsully
    closed this as completedin #889on May 14, 2018
  11. dsully
    added a commit that references this issue on May 14, 2018

    Merge pull request #889 from stefreak/master

    This issue will close once commit b1b4449 is merged into the 'main' branch.
    b1b4449
  12. davidism
    added this to the 7.0 milestone on Sep 10, 2018
  13. bors
    added 2 commits that reference this issue on Oct 8, 2018

    Merge #1576

    b204cec

    Merge #37

    d8ffc17
  14. kornicameister
    added a commit that references this issue on Oct 29, 2018

    Update click to 7.0 (#97)

    62891b6
  15. github-actions
    locked as resolved and limited conversation to collaborators on Nov 13, 2020
  16. kdeldycke
    added
    help outputHelp text formatting, layout, and --help rendering
    on Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @untitaker
    untitaker

Labels

help outputHelp text formatting, layout, and --help rendering

Type

No type

Projects

No projects

    Milestone

    • 7.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.