Skip to main content

CI coveralls PyPI github

pthugefileviewer

pthugefileviewer is a control for prompt-toolkit that can display huge files. It does so by mmap'ing the file and only reading the lines shown in the screen. It avoids any operation that would require reading the whole file, like counting the lines.

Installation

Releases

pthugefileviewer can be installed via pypi:

pip install pthugefileviewer

For nix users, it is also available as a flake.

Repository

We can also clone the github repository and install pthugefileviewer from it with:

pip install .

We can also install it for the current user only by running instead:

pip install --user .

Development

pthugefileviewer uses the standard python3 infra. To develop and test the module:

  • Clone the repository and go into the directory:
    git clone git@github.com:lpenz/pthugefileviewer.git
    cd pthugefileviewer
    
  • Use venv to create a local virtual environment with
    python -m venv venv
    
  • Activate the environment by running the shell-specific activate script in ./venv/bin/. For [fish], for instance, run:
    source ./venv/bin/activate.fish
    
  • Install pthugefileviewer in "editable mode":
    pip install -e '.[test]'
    
  • To run the tests:
    pytest
    
    Or, to run the tests with coverage:
    pytest --cov
    
  • Finally, to exit the environment and clean it up:
    deactivate
    rm -rf venv
    

Metadata

Release files for pthugefileviewer 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pthugefileviewer 0.5.0
File Size Uploaded Provenance
pthugefileviewer-0.5.0.tar.gz 9.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pthugefileviewer 0.5.0
File Interpreter ABI Platform
pthugefileviewer-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / pthugefileviewer-0.5.0.tar.gz

Download URL pthugefileviewer-0.5.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
66556cd6796ad07d7c43967c695358b3e817ba3ba0a754c4af292807af5c3b8e
BLAKE2b-256 checksum
How to use checksums
b8551cdf1f1f794bdfac586889a78dc595d1712d5cb87bbecf2bd873d4d74aa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / pthugefileviewer-0.5.0-py3-none-any.whl

Download URL pthugefileviewer-0.5.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6293327d90009735cdb4a728123f3a8008c5ff3aa06ee7abd5b4c30018f8da99
BLAKE2b-256 checksum
How to use checksums
8bc06dcc20c3fa0e77cd19d1142882af82bb84bfed388b10a8009762f2a3ec0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Security for pthugefileviewer 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page