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
Release history Release notifications | RSS feed
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.1.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file distyll_info-0.3.1.tar.gz
.
File metadata
- Download URL: distyll_info-0.3.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58a3fea93b6b85f49b73f684a8283751095d3504446515837cc843433e61b3d |
|
MD5 | b4935e63184c38042a1709efd5a744aa |
|
BLAKE2b-256 | fa45befa5b7373b6abaa59cf14c7682542a69efdd42af2bfad9d485b05bd0033 |
File details
Details for the file distyll_info-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: distyll_info-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b63a8f7119f23b770e435f61b52c4256ae3d31ae27603d44e6514f8ee7c1d43 |
|
MD5 | df7c4f81033023f810c56210bae12223 |
|
BLAKE2b-256 | 1e114c01ac8c92ef4ce1f14fc27ddcebbddd74e062f006f303fdf4ee8a6ab140 |