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

Uploaded Source

Built Distribution

distyll_info-0.2.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: distyll_info-0.2.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for distyll_info-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b5a2c4dabc99154747133ec4455e0cc9acae3a7c95d9c0f0a46cfc2231cce90b
MD5 ae54da26c5a209ac941fcdbd82dd4d1b
BLAKE2b-256 6f9e59c098222536b2e130d2fd90c0426f9c579f97ee43b8e2e15909d2af8c07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: distyll_info-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for distyll_info-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c05dee17221a1d4c5e29fc23baa0f24b4d19d2bff4e4c84a22f93c4e3b47e5e9
MD5 cf8162daa124bfa5d4bd7768d31b0f39
BLAKE2b-256 e0f91e84bdc74df9df1abe8060a82a4fb1e690639a54b9cc1ac46f3ca087eefd

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