Skip to main content

Simple CLI to talk to a file

Project description

talk-to-a-file

Docs pytest

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.

alt text

Here is a small example, where I talk to the pdf file, docs/tcm.pdf,

alt text

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talk_to_a_file-0.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

talk_to_a_file-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

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

Hashes for talk_to_a_file-0.0.2.tar.gz
Algorithm Hash digest
SHA256 283ab4cbe707234c9947bb79957af20990fbf55d99453986bf50e06c27d53c78
MD5 2ff4cf673057097dc2aff249832dd255
BLAKE2b-256 b29946412190f83d64aa13f252d822a3cc7be183018b98ba810de54b74574ba0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for talk_to_a_file-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c76861599889a899b2e9ddd4cccc180c197db8c80ea277453a972e2c5a41f99
MD5 2e23620426984737ea3f5c9d63281183
BLAKE2b-256 24b4623e0a4518a2b517bee870bade09ee4b6a0038f3be9deebdc73fc3dff829

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page