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.0.tar.gz
(8.7 kB
view details)
Built Distribution
File details
Details for the file distyll_info-0.3.0.tar.gz
.
File metadata
- Download URL: distyll_info-0.3.0.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.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd765948d4e643b6be37c11a803b8fbc1bcbd79d99df51940a46345cb4c5e47e |
|
MD5 | 449f9c1178eeb00fba2b0c7bdb9b3f19 |
|
BLAKE2b-256 | 81177d51dab33b36006f9ee4885c5767f5b6cf9e43f31788eda9a878c5d58ff2 |
File details
Details for the file distyll_info-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: distyll_info-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a87cbbaa4c740c9614cf87136a8044c3a7c45d79f1d567ee38a8bdfafdf6dc6 |
|
MD5 | 147cdcffa15d88b55cd1afea02704dd7 |
|
BLAKE2b-256 | 0f7d676cfa7d6d1ba1d8a2532e5633955be26e15db69b00739bd166a87e6e676 |