Skip to main content

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.

Contributor guide

Updating dependencies

This project uses Poetry for package management.

To see what packages can be updated, run:

poetry show --outdated

Then, run this to update all packages to their latest compatible versions within the constraints defined in pyproject.toml.

poetry update

Tests

Run tests with:

pytest

Metadata

Release files for distyll-info 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for distyll-info 0.3.2
File Size Uploaded Provenance Actions
distyll_info-0.3.2.tar.gz 9.2 kB Without provenance Details for distyll_info-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for distyll-info 0.3.2
File Interpreter ABI Platform Actions
distyll_info-0.3.2-py3-none-any.whl Python 3 none any Details for distyll_info-0.3.2-py3-none-any.whl

Total release size: 20.4 kB

Release files / distyll_info-0.3.2.tar.gz

Download URL distyll_info-0.3.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f29ac774810bf376bc1c967dbc19bab7bb8a96ca20c1de8222ed5dfe04ed3b5b
BLAKE2b-256 checksum
How to use checksums
4c60803e5f4ec97fbb27ce561d23955574c1b53b14ccd281fa811bee48bafcc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Darwin/24.5.0

Release files / distyll_info-0.3.2-py3-none-any.whl

Download URL distyll_info-0.3.2-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb9d09c1f6af6616d67c5375514d1155fd9bb07b7f8b77fa2f8250e8853f03cc
BLAKE2b-256 checksum
How to use checksums
bfc8757f430a07fbc7030f7be85cbe6db7b9822fd73b21c3ed7b7392f033759d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Darwin/24.5.0

Security for distyll-info 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page