Skip to main content

Information parsing assistant

Project description

Installation

Install ffmpeg (brew install ffmpeg on macOS) Install the package with pip install distyll-info

Usage

  • download_and_parse_pdf(pdf_url) -> pdf_text
  • get_arxiv_paper(arxiv_url) -> {"title": title, "url": arxiv_url, "text": pdf_text}
  • get_youtube_transcript(youtube_url) -> {"title": title, "date": date, "yt_url": youtube_url, "uploader": uploader, "channel": channel, "transcripts": List[transcript]}
  • get_transcripts_from_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


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.1.2.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

distyll_info-0.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file distyll_info-0.1.2.tar.gz.

File metadata

  • Download URL: distyll_info-0.1.2.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/23.3.0

File hashes

Hashes for distyll_info-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c10386ab5d51821f1b9ba28dbf2c67314fc92288543e919ae6ba533fa1d77f40
MD5 7b07f72092a7fb512c4fd9f0d01b7f3c
BLAKE2b-256 313110ba04098e899c1e8dd3832d764b3e50df5713b80cdd8f9ddd89b2248b08

See more details on using hashes here.

File details

Details for the file distyll_info-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: distyll_info-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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

Hashes for distyll_info-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c717829163e5cb4adbc7302f534eb53c4f2503b403cbd40314ff4e4116df9366
MD5 0d9adcd45b18884282098e2faade7472
BLAKE2b-256 d8e25f52924709b9cd3323c2e863b9fd8ee5aee66df4865e754b9aa89fa71316

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page