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.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file distyll_info-0.2.0.tar.gz
.
File metadata
- Download URL: distyll_info-0.2.0.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 | d469fefe693a595f57715fe1da71a97396cc535cbcddbf4ebacad194b67d3fea |
|
MD5 | 58ab40e01a6df7c9ef88d52c190a3041 |
|
BLAKE2b-256 | 4a126f5ea7dd6c65854ce0be25737108ec35eb85288cdb06d95d2954a50be099 |
File details
Details for the file distyll_info-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: distyll_info-0.2.0-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 | 099cbad93195b57c4bf153c01bed0d0fb2041e2c6b4d82a30ba7e0220a0f88a2 |
|
MD5 | 92b9634b5a20587d640544d4218dae98 |
|
BLAKE2b-256 | 09ef244622b2b177089aaeaaa343fe4c24c35b9201808a58c44adaa01b1463b9 |