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.

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.2.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

distyll_info-0.2.4-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for distyll_info-0.2.4.tar.gz
Algorithm Hash digest
SHA256 341e36e41971f3f081f3cec212c264f093e0f1be8cfb34187539935ab520f7ce
MD5 e33834662055a0d7c148c37292e320b6
BLAKE2b-256 87c92c3107b264cb8723abdd71160be3193dd302f5a27c2e2b50ead2b4d31df6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for distyll_info-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7a1de3e10d7662ce7ea6cdc503aac5ed4638af566ba9816351e74cb0223298
MD5 d48d87907443a9602a1f3dc08c086c7f
BLAKE2b-256 29d3f82a0ca174494b4f215cb92800f71c0abb1d28982c7ce3ec0caf3cc918a3

See more details on using hashes here.

Supported by

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