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.3.tar.gz
(7.9 kB
view details)
Built Distribution
File details
Details for the file distyll_info-0.2.3.tar.gz
.
File metadata
- Download URL: distyll_info-0.2.3.tar.gz
- Upload date:
- Size: 7.9 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 | ded2b913a73664e363fc6d2625173984647c7e02c52d570e3fe67afb6807a113 |
|
MD5 | ae4fb17ddae5de235d5b22467d264b94 |
|
BLAKE2b-256 | cdad90b43970beb4d0ce52540b97e1b307cf20e2f925244d101062280d670036 |
File details
Details for the file distyll_info-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: distyll_info-0.2.3-py3-none-any.whl
- Upload date:
- Size: 9.6 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 | 9581dddd47d8dd6502c3d1408bfaf00980a4158b7628211eb25da065c532fde9 |
|
MD5 | 81cbaea7296c87a3e175ea6d89f550bc |
|
BLAKE2b-256 | 655327e1b96e77e03d0a32b3d6f65edc0eb9a0efc4f60dd3b6bfc24c189af2a3 |