Metadata-Version: 2.1
Name: youtube-django
Version: 0.2.dev2
Summary: YouTube API Data V3 and Google Authentication implementation for Django
Home-page: http://youtube-django.rtfd.io
Author: Ivan Neto
Author-email: ivan.cr.neto@gmail.com
License: MIT License
Keywords: youtube,djanto,django-youtube,youtube-django
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*
Requires-Dist: cachetools (==2.1.0)
Requires-Dist: certifi (==2018.8.24)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: Django (==2.1.1)
Requires-Dist: google-api-python-client (==1.7.4)
Requires-Dist: google-auth (==1.5.1)
Requires-Dist: google-auth-httplib2 (==0.0.3)
Requires-Dist: google-auth-oauthlib (==0.2.0)
Requires-Dist: httplib2 (==0.11.3)
Requires-Dist: idna (==2.7)
Requires-Dist: jsonpickle (==1.0)
Requires-Dist: oauth2client (==4.1.3)
Requires-Dist: oauthlib (==2.1.0)
Requires-Dist: pyasn1 (==0.4.4)
Requires-Dist: pyasn1-modules (==0.2.2)
Requires-Dist: pytz (==2018.5)
Requires-Dist: requests (==2.19.1)
Requires-Dist: requests-oauthlib (==1.0.0)
Requires-Dist: rsa (==4.0)
Requires-Dist: six (==1.11.0)
Requires-Dist: Unipath (==1.1)
Requires-Dist: uritemplate (==3.0.0)
Requires-Dist: urllib3 (==1.23)
Requires-Dist: mkdocs (==1.0.4)

youtube-django
==============

Install
-------

.. code:: bash

   $ pip install youtube-django

Add ``'youtube_django'`` to your settings.

.. code:: python

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

Run migrations:

.. code:: bash

   $ 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:

.. code:: python

   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')
   ]




