talk-to-a-file
This is a very simple utility script that I just created so that you could send the content of a pdf to an LLM and talk to it.
instructions
To install the app, you just need to do,
pip install talk-to-a-file
# or
pip install git+https://github.com/deven367/talk-to-a-file
If you wish to develop/contribute to the project,
git clone https://github.com/deven367/talk-to-a-file
cd talk-to-a-file
pip install -e .
prerequisites
To use this package, you need to use your own ANTHROPIC_API_KEY. Before using the CLI command, you need to set the environment variable. To do so,
export ANTHROPIC_API_KEY=<your-api-key>
how it works
Once the package is installed, you can use the CLI command, talk-to-a-file,
The CLI has a required argument, pdf, which is the path to the pdf file that you want to read.
Here is a small example, where I talk to the pdf file, docs/tcm.pdf,
To quit the CLI, you can type exit or quit.
how to contribute
Issues and PRs are welcome. If you have any suggestions or improvements, feel free to open an issue or a PR.
Release files for talk-to-a-file 0.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 | |
|---|---|---|---|
| talk_to_a_file-0.0.2.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| talk_to_a_file-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / talk_to_a_file-0.0.2.tar.gz
| Download URL | talk_to_a_file-0.0.2.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
283ab4cbe707234c9947bb79957af20990fbf55d99453986bf50e06c27d53c78
|
|
BLAKE2b-256 checksum How to use checksums |
b29946412190f83d64aa13f252d822a3cc7be183018b98ba810de54b74574ba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2025.
Transparency logRelease files / talk_to_a_file-0.0.2-py3-none-any.whl
| Download URL | talk_to_a_file-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c76861599889a899b2e9ddd4cccc180c197db8c80ea277453a972e2c5a41f99
|
|
BLAKE2b-256 checksum How to use checksums |
24b4623e0a4518a2b517bee870bade09ee4b6a0038f3be9deebdc73fc3dff829
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2025.
Transparency log