Skip to main content

Load & save data & chat with LLMs

Project description

Pitchoune

A Python library on top of Polars to load & save (normal or streaming mode) data from files & chat with LLM.

Features

  • Load / save dataframe :

    • Handle files types : xlsx, csv, tsv, jsonl
    • Possibility to register your own file types (see custom_io_example)
  • Read / write stream :

    • Handle files types : jsonl (soon csv/tsv)
    • Call the decorated function for each row of the streamed file
    • Inject each column as a parameter of the function
    • Provide as parameters the current_row and total_row
    • Can handle recovery (in case of error or process stopping) with the parameter "recover_from". Just set it to the output file path and it will use the right row for the read_stream function.
  • Current workdir for filepaths : set CURRENT_WORKDIR env variable

  • Save to a file with human check option enabled :

    • Open the file with the default editor
    • Then wait for the user to review it & save it
  • Use chat :

    • Ollama chat (see chat_example)
    • OpenAI chat (you must then set OPENAI_API_KEY as env variable)

Todo

  • Installation from pypi (pip install...)
  • Testing

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

pitchoune-0.50.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

pitchoune-0.50.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file pitchoune-0.50.2.tar.gz.

File metadata

  • Download URL: pitchoune-0.50.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pitchoune-0.50.2.tar.gz
Algorithm Hash digest
SHA256 a00cab8ac8718844b77e6088eb9e6b81759c4cb3e91a34912b905bcf4cd18831
MD5 82aa1cd82063d7eb5e6946aed7ba65d5
BLAKE2b-256 87a787dc03f1201d3170f9a739153b0b9784eb8a008c9dcd1ba59e590a5b1e51

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitchoune-0.50.2.tar.gz:

Publisher: pypi-publish.yml on pe-brian/pitchoune

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

File details

Details for the file pitchoune-0.50.2-py3-none-any.whl.

File metadata

  • Download URL: pitchoune-0.50.2-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pitchoune-0.50.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd736f5b2d3e04e5ffe617c645e5bc3325a8040e883c191aa6526f9e1c5e1bd8
MD5 70802bfeb562dc2e4e2ef0af4f21b0d3
BLAKE2b-256 f87f13b6b5ffc45128be97dbc1b85f0f59174a75b62d68f8622164b17916aa31

See more details on using hashes here.

Provenance

The following attestation bundles were made for pitchoune-0.50.2-py3-none-any.whl:

Publisher: pypi-publish.yml on pe-brian/pitchoune

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