Skip to main content

YouTube API Data V3 and Google Authentication implementation for Django

Project description

youtube-django

docs Documentation Status
tests CircleCI codecov Codacy Badge Requirements Status
package PyPI Package latest release PyPI Wheel Supported versions Supported implementations Commits since latest release

Install

$ pip install youtube-django

Add 'youtube_django' to your settings.

INSTALLED_APPS = [
    # [...]
    'youtube_django',
]

Run migrations:

$ python manage.py migrate

Add the following Google Oauth Settings to your settings.py:

GOOGLE_OAUTH2_CLIENT_ID = '<Your Client ID from Google Developer Console>'
GOOGLE_OAUTH2_CLIENT_SECRET = '<Your Client Secret from Google Developer Console>'
GOOGLE_OAUTH2_CALLBACK_VIEW = 'oauth2callback'  # your oauth callback view name

Add your views.Example:

from youtube_django.views import (
    VideoUploadView,
    AuthorizeView,
    Oauth2CallbackView,
)

urlpatterns = [
    path('^yt/upload/', VideoUploadView.as_view(), name='video_upload'),
    path('^yt/authorize/', AuthorizeView.as_view(), name='authorize'),
    path('^yt/oauth2callback/', Oauth2CallbackView.as_view(),
        name='oauth2callback')
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youtube_django-0.2.1-py2.py3-none-any.whl (8.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file youtube_django-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: youtube_django-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for youtube_django-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 df6c2432495f4c3fde6eb6c5caac2b9c06d5b505e347827b3ca50ef917ecabcc
MD5 35d633d7c189d17484038b1439dee4e6
BLAKE2b-256 61581735a25bf433ed1c857f49f096484c8bd4b1a3b24df87e89fea7df87cfa5

See more details on using hashes here.

Supported by

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