Skip to main content

Information parsing assistant

Project description

Installation

Install ffmpeg (brew install ffmpeg on macOS) Install the package with pip install distyll-info

Usage

  • distyll.text.from_pdf(pdf_url) -> pdf_text
  • distyll.text.from_arxiv_paper(arxiv_url) -> {"title": title, "url": arxiv_url, "text": pdf_text}
  • distyll.transcripts.from_youtube(youtube_url) -> {"title": title, "date": date, "yt_url": youtube_url, "uploader": uploader, "channel": channel, "transcripts": List[transcript]}
  • distyll.transcripts.from_local_video(video_url) -> List[transcript]

Please see the docstrings for more information.

API keys

OpenAI: Audio -> text functionalities make use of OpenAI's Whisper. You will need an API key to use this functionality.

  • Option 1: Provide it as an argument to the function.
  • Option 2: Set it using distyll.set_api_key(openai=<YOUR_API_KEY>).
  • Option 3: Set it in the OPENAI_APIKEY environment variable.

What happened to the old version?

Sorry! I'm working on making this more streamlined and better. For the old version, please see the distyll_old branch.

Contributor guide

Updating dependencies

This project uses Poetry for package management.

To see what packages can be updated, run:

poetry show --outdated

Then, run this to update all packages to their latest compatible versions within the constraints defined in pyproject.toml.

poetry update

Tests

Run tests with:

pytest

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

distyll_info-0.3.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

distyll_info-0.3.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file distyll_info-0.3.2.tar.gz.

File metadata

  • Download URL: distyll_info-0.3.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/24.5.0

File hashes

Hashes for distyll_info-0.3.2.tar.gz
Algorithm Hash digest
SHA256 f29ac774810bf376bc1c967dbc19bab7bb8a96ca20c1de8222ed5dfe04ed3b5b
MD5 c26dae2db273dad54a667604a545251a
BLAKE2b-256 4c60803e5f4ec97fbb27ce561d23955574c1b53b14ccd281fa811bee48bafcc4

See more details on using hashes here.

File details

Details for the file distyll_info-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: distyll_info-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/24.5.0

File hashes

Hashes for distyll_info-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb9d09c1f6af6616d67c5375514d1155fd9bb07b7f8b77fa2f8250e8853f03cc
MD5 86185a089a456c31a5bd4ca185bea2b8
BLAKE2b-256 bfc8757f430a07fbc7030f7be85cbe6db7b9822fd73b21c3ed7b7392f033759d

See more details on using hashes here.

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