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.2.2.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file distyll_info-0.2.2.tar.gz
.
File metadata
- Download URL: distyll_info-0.2.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca1c71182d7648aaf5a4afaf3af4c1eeb30a60f7d0a4850246111867f4d8804c |
|
MD5 | 27a80f7334bbae6b3facb206d4608164 |
|
BLAKE2b-256 | 87aa812379e6f0aff454c1390325f7139a421533c4da3d190b6f3ec8187bc269 |
File details
Details for the file distyll_info-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: distyll_info-0.2.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c92dad8ac8267a59495edd420ad58a1fda1b3e238ff048a8b016e59e94465e |
|
MD5 | ac8fbbe2793f2dc39df0b3b71cb8149e |
|
BLAKE2b-256 | 2f5a435a8004bffbec17bba20b082d43a205276f14952a7c495d04e85550cbbe |