Simple CLI to talk to a file
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file talk_to_a_file-0.0.2.tar.gz.
File metadata
- Download URL: talk_to_a_file-0.0.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
283ab4cbe707234c9947bb79957af20990fbf55d99453986bf50e06c27d53c78
|
|
| MD5 |
2ff4cf673057097dc2aff249832dd255
|
|
| BLAKE2b-256 |
b29946412190f83d64aa13f252d822a3cc7be183018b98ba810de54b74574ba0
|
Provenance
The following attestation bundles were made for talk_to_a_file-0.0.2.tar.gz:
Publisher:
publish.yml on deven367/talk-to-a-file
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
talk_to_a_file-0.0.2.tar.gz -
Subject digest:
283ab4cbe707234c9947bb79957af20990fbf55d99453986bf50e06c27d53c78 - Sigstore transparency entry: 596803166
- Sigstore integration time:
-
Permalink:
deven367/talk-to-a-file@7e2d957a8b085628ee552f860e328cd36b9f126f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/deven367
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e2d957a8b085628ee552f860e328cd36b9f126f -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file talk_to_a_file-0.0.2-py3-none-any.whl.
File metadata
- Download URL: talk_to_a_file-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c76861599889a899b2e9ddd4cccc180c197db8c80ea277453a972e2c5a41f99
|
|
| MD5 |
2e23620426984737ea3f5c9d63281183
|
|
| BLAKE2b-256 |
24b4623e0a4518a2b517bee870bade09ee4b6a0038f3be9deebdc73fc3dff829
|
Provenance
The following attestation bundles were made for talk_to_a_file-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on deven367/talk-to-a-file
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
talk_to_a_file-0.0.2-py3-none-any.whl -
Subject digest:
0c76861599889a899b2e9ddd4cccc180c197db8c80ea277453a972e2c5a41f99 - Sigstore transparency entry: 596803168
- Sigstore integration time:
-
Permalink:
deven367/talk-to-a-file@7e2d957a8b085628ee552f860e328cd36b9f126f -
Branch / Tag:
refs/heads/master - Owner: https://github.com/deven367
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e2d957a8b085628ee552f860e328cd36b9f126f -
Trigger Event:
workflow_dispatch
-
Statement type: