{ "info": { "author": "Suleyman Melikoglu", "author_email": "suleyman@melikoglu.info", "bugtrack_url": null, "classifiers": [], "description": "Django Youtube\n==============\n\nDjango Youtube is a wrapper app around youtube api. It helps you to implement frequent api operations easily.\n\nThe main functionality is to use Youtube API to upload videos and show them in your website.\nIn order use this app, you need a developer account on Youtube and use them to authenticate, and upload videos into this account.\n\nDjango Youtube designed to work with built in `contrib.auth` app, although you can modify the views.py to work without authentication.\n\nPlease feel free to fork and contribute! There are lots of things that I am not happy with, if you're interested, send a message.\n\nFeatures\n--------\n\n1. Retrieve specific videos\n3. Browser based upload\n4. Programmatic Authentication\n5. Admin panel ready\n6. Supports i18n\n7. Direct upload\n\nFeatures are not yet implemented\n--------------------------------\n\n1. Retrieve feeds (most visited etc)\n2. oAuth authentication\n\nDependencies\n------------\n\ngdata python library (http://code.google.com/p/gdata-python-client/downloads/list)\n\nInstallation\n------------\n\nRun `pip install django-youtube` or add `django_youtube` folder at your python path.\n\nAdd `django_youtube` to your installed apps\n\nAdd following lines to your settings.py and edit them accordingly\n\n YOUTUBE_AUTH_EMAIL = 'yourmail@gmail.com'\n YOUTUBE_AUTH_PASSWORD = 'yourpassword'\n YOUTUBE_DEVELOPER_KEY = 'developer key, get one from http://code.google.com/apis/youtube/dashboard/'\n YOUTUBE_CLIENT_ID = 'client-id'\n \nOptionally you can add following lines to your settings. If you don't set them, default settings will be used.\n \n # url to redirect after upload finishes, default is respected `video` page\n YOUTUBE_UPLOAD_REDIRECT_URL = '/youtube/videos/'\n\n # url to redirect after deletion video, default is `upload page`\n YOUTUBE_DELETE_REDIRECT_URL = '/myurl/'\n\nAdd Following lines to your urls.py file\n\n (r'^youtube/', include('django_youtube.urls')),\n \nDon't forget to run `manage.py syncdb`\n\nUsage\n-----\n\nGo to `/youtube/upload/` to upload video files directly to youtube. When you upload a file, the video entry is created on youtube, `Video` model that includes video details (`video_id`, `title`, etc.) created on your db and a signal sent that you can add your logic to it.\nAfter successful upload, it redirects to the specified page at `YOUTUBE_UPLOAD_REDIRECT_URL`, if no page is specified, it redirects to the corresponding video page.\n\nYoutube API is integrated to the `Video` model. In order to change information of the video on Youtube, just save the model instance as you normally do, `django_youtube` will do the necessary changes using Youtube API.\n\nApi methods can be used separately. Please see `api.py` to get info about methods. Please note that some operations requires authentication. Api methods will not do more than one operation, i.e. will not call authenticate method. So you will need to authenticate manually. Otherwise api methods will raise `OperationError`. Please see `views.py` for a sample implementation.\n\nYou can use views for uploading, displaying, deleting the videos.\n\nYou can also override templates to customise the html. `Iframe API` used for displaying the videos for convenience. Please see Youtube API Docs (https://developers.google.com/youtube/) to implement other player API's on your template files. Other options are `Javascript API` and `Flash API`.\n\nSignals\n-------\n\nThe `video_created` sent after video upload finished and video created successfully. You can also choose to register `post_save` event of `Video` model\nFollowing is an example of how you process the signal\n\n from django_youtube.models import video_created\n from django.dispatch import receiver\n \n @receiver(video_created)\n def video_created_callback(sender, **kwargs):\n \"\"\"\n Youtube Video is created.\n Not it's time to do something about it\n \"\"\"\n pass", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/laplacesdemon/django-youtube", "keywords": null, "license": "BSD licence, see LICENCE.txt", "maintainer": null, "maintainer_email": null, "name": "django-youtube", "package_url": "https://pypi.org/project/django-youtube/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-youtube/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/laplacesdemon/django-youtube" }, "release_url": "https://pypi.org/project/django-youtube/0.2/", "requires_dist": null, "requires_python": null, "summary": "Youtube API wrapper app for Django. It helps to upload, display, delete, update videos from Youtube", "version": "0.2" }, "last_serial": 791060, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "43148dae134029afc93f4ac82bc10604", "sha256": "c5f351f177a7ad7cd8ae0fbca740c67897aa6567b7841d280a86a60928b4c5c4" }, "downloads": -1, "filename": "django-youtube-0.1.tar.gz", "has_sig": false, "md5_digest": "43148dae134029afc93f4ac82bc10604", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10785, "upload_time": "2012-09-08T18:06:56", "url": "https://files.pythonhosted.org/packages/aa/85/9191c435fe69c6b19035d7eccbe1309e380dd9224d1f79c6de11baf4912c/django-youtube-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "954702fcb430f768cc44d34a1c649a08", "sha256": "81df42b94cfb8e37b98e2279b26ca99112ee72549ec1165646dccd99f6f05570" }, "downloads": -1, "filename": "django-youtube-0.2.tar.gz", "has_sig": false, "md5_digest": "954702fcb430f768cc44d34a1c649a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12141, "upload_time": "2013-01-11T17:07:05", "url": "https://files.pythonhosted.org/packages/09/7c/ed368edb9ce264ab7aa437ca9d232dbf7a5ab5b538db61f85ceb46ff39b6/django-youtube-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "954702fcb430f768cc44d34a1c649a08", "sha256": "81df42b94cfb8e37b98e2279b26ca99112ee72549ec1165646dccd99f6f05570" }, "downloads": -1, "filename": "django-youtube-0.2.tar.gz", "has_sig": false, "md5_digest": "954702fcb430f768cc44d34a1c649a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12141, "upload_time": "2013-01-11T17:07:05", "url": "https://files.pythonhosted.org/packages/09/7c/ed368edb9ce264ab7aa437ca9d232dbf7a5ab5b538db61f85ceb46ff39b6/django-youtube-0.2.tar.gz" } ] }