yttran
yttran (“YouTube Transcript”) is a lightweight CLI tool that allows you to quickly fetch the plain transcript text from YouTube videos without downloading the video itself. It leverages the official youtube-transcript-api and can be run via uvx for easy, one-step usage.
Problem
YouTube videos often have captions or auto-generated transcripts.
There are websites like https://transcribefromyoutube.com/ that one can use to get a transcript but they require you to leave the terminal and copy paste the text for further processing.
A CLI lternative is to use the cli that comes with youtube-transcript-api but I can never remember all the switches nor do I want to type all of those long commands.
uvx run youtube_transcript_api <first_video_id> <second_video_id> ... --languages en --format text > transcripts.txt
I need to be able to run a short command and specify only the youtube video so that I can pipe transcript into AI analysis and summarization tools. I also what to save the transacript into a local cache to I don't need to fetch it again.
Further processing to extract summaries and wisdom can be done with tools like Claude AI, ChatGPT or Fabric.
Insummary, in order to maximize learning from Youtube videos...
- Downloading full videos just to get transcription text is cumbersome.
- Subtitles come in
.srtor.vttformats, which include timestamps, numbering, and formatting tags. - Cleaning and deduplicating these files is tedious, especially when automating workflows.
yttran solves this by providing a single command to get clean, readable transcript text, ready for passing on to AI pipelines, research, or note-taking.
Dependency
uv manages project dependencies and environments for python packages.
See https://docs.astral.sh/uv/#installation
Code repository
https://github.com/rnwolf/yttran
Install package during development for testing
uv pip install .
Now you can run the cli tool binary.
Example run on MS-Windows:
.\.venv\Scripts\yttran.exe https://www.youtube.com/watch?v=4b0iet22VIk > test-tran.txt
Publish Packge to PyPi for world to use
Make sure verions number of package is incremented as required in pyproject.toml
uv build
uv publish
You’ll need your PyPI credentials (username and password).
After publishing, verify your package is live on PyPI by visiting:
https://test.pypi.org/project/yttran/
Installation Published Public Package for use on local PC
If you have uvx installed, you can run yttan directly from PyPI without manual dependency management:
uvx yttran <youtube-video-url-or-id> > transcript.txt
Metadata
Release files for yttran 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yttran-0.2.2.tar.gz | 3.8 kB | Without provenance | Details for yttran-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yttran-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for yttran-0.2.2-py3-none-any.whl |
Total release size: 8.3 kB
Release files / yttran-0.2.2.tar.gz
| Download URL | yttran-0.2.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75303e0b23c77d6da3bc0723d51a1b8f689c9ed930345526a0254ce60966a3ce
|
|
BLAKE2b-256 checksum How to use checksums |
013fa4ea399656d01d7e99e54d610852542c8b1718a45ed57ea03f8071ac8715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.0
|
Release files / yttran-0.2.2-py3-none-any.whl
| Download URL | yttran-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b5491cddb7c8f3216bc00df28b0409dbca13acd2c40c7fa034f01c5e323e78ee
|
|
BLAKE2b-256 checksum How to use checksums |
fafd5fc58b769fe3b62ab3faa35204130e3a713e9e69b4b728bc9a0889091d0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.0
|
Security for yttran 0.2.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.