FileIndexer
Tool for creating line offset indexes as tsv files.
Install
You can download this repository or directly install with:
pip install fileindexer
Index format
The index in basic case is formated as one column tsv file with voluntary headline containing file line offset.
This indexer also supports to create key mapping to given file line offset if jsonl file is provided. In that case the index is two column tsv file with first column containing key and second the corresponding file offset.
Feel free to visit examples folder with toy example to get more familiar with the format.
Examples
This repository contains examples folder with variants of indexes that could be created. Bellow follows list of commands that were used for creating those indexes:
toy_basic.jsonl.index
fileindexer examples/toy.jsonl examples/toy_basic.jsonl.index
toy_basic_with_headline.jsonl.index
fileindexer examples/toy.jsonl examples/toy_basic_with_headline.jsonl.index --headline --name_offset "file_line_offset"
toy_key_mapping.jsonl.index
fileindexer examples/toy.jsonl examples/toy_key_mapping.jsonl.index --key k
toy_key_mapping_with_headline.jsonl.index
fileindexer examples/toy.jsonl examples/toy_key_mapping_with_headline.jsonl.index --key k --headline --name_key key --name_offset "file_line_offset"
Metadata
Release files for fileindexer 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fileindexer-1.0.2.tar.gz | 4.0 kB | Without provenance | Details for fileindexer-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fileindexer-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for fileindexer-1.0.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / fileindexer-1.0.2.tar.gz
| Download URL | fileindexer-1.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f5b58d82b58b5bd9a94db2d2d04e30094632a68cc89af5552501e8efe8ee2aa
|
|
BLAKE2b-256 checksum How to use checksums |
ea62e5807f836b2f28da7f6b692defc536e6f11da78b1150a64d33f0f129c47c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Release files / fileindexer-1.0.2-py3-none-any.whl
| Download URL | fileindexer-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e45f0e0729702eb995ec15bc5b6545d771b621533586d67e687946411938b514
|
|
BLAKE2b-256 checksum How to use checksums |
e83d390c7aa8ae71850382e4387760bb6f11ede1ad9be52c9703d0aa231e81a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Security for fileindexer 1.0.2
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.