YouTube Transcript Downloader
Project description
yt-transcript-dl
TODO
Initial setup
Before we can start we need to do some initial configuration. First we need to install all the dependencies. You can do this by executing the following command:
make install
You might have noticed that an initial commit was performed. This initial commit contains the starting point of the cookiecutter template plus the generated pyproject.toml
.
Now it's time to configure your remote GitHub repository:
git remote add origin <REMOTE ADDRESS>
Configuring the main branch
Push the current main
branch to the remote, using the following commands:
git branch -M main
git push -u origin main
Configuring the develop branch
Next, we will create a develop
branch. You can use the following commands:
git checkout -b develop
git push --set-upstream origin develop
Tip: You can now set the default branch to
develop
!
Configure PyPi
To automatically upload release to PyPi type the following command:
make release
You will be prompted for your username and password. After you created the initial release you can navigate to your projects. For your package, navigate to Manage, Settings and Create a token for k8s-image-registry-secret.
Pick an username and set the scope to the package you just created. Use the generated token to create a secret in GitHub.
On GitHub in your repository, go to Settings, Security, Secrets and then Actions. Here you will be able to create the repository secret.
Use PYPI_API_TOKEN
as the name and the token from the previous step as the secret value.
[Optional] Codecov.io
You can add the following to your .github/workflows/ci.yml
file to enable Codecov.io
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
files: ./reports/coverage.xml
- name: Code Coverage Summary Report
uses: irongut/CodeCoverageSummary@v1.1.0
with:
filename: reports/coverage.xml
badge: true
fail_below_min: true
format: markdown
output: both
thresholds: 95 100
Configure Codecov.io
Login to codecov.io locate your repository. Navigate to the Settings and then General. There you will find the CODECOV_TOKEN
that you need to add to your GitHub repository.
Go to Settings, Security, Secrets and then Actions. Here you will be able to create the repository secret.
Configure coverage report
You will need to add the following to test
target in the Makefile
:
.PHONY: test
test: complexity-baseline ## Run the tests defined in the project
pytest --junitxml=reports/pytest.xml --cov-report xml:reports/coverage.xml
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
Built Distribution
File details
Details for the file yt_transcript_dl-0.1.0.tar.gz
.
File metadata
- Download URL: yt_transcript_dl-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.3 Linux/6.4.12-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bf6760ec721f64342be5772bbdd65f5c7bc1186453d3b462dcd5c5d4173a6f6 |
|
MD5 | ed4ada93986d4047839a94cd2f9a9069 |
|
BLAKE2b-256 | d422e78d28c802436070799b458cc28e278fa9e4188bb5f6b14b9d716211e3b5 |
File details
Details for the file yt_transcript_dl-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: yt_transcript_dl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.3 Linux/6.4.12-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a5d12a0eaa4317da8683afcf9697aeff78e7415bac38a5465c79e8179ca580b |
|
MD5 | 4e2497d3d3c099e06ef019aa541412fc |
|
BLAKE2b-256 | 920b82df1867e08715fc814a85c9bc4181803b03b935a66635f29a92fa0041bd |