{ "info": { "author": "Marc Schwarzschild", "author_email": "ms@TheBrookhavenGroup.com", "bugtrack_url": null, "classifiers": [], "description": "=====\ngback\n=====\n\nThis package provides an simpler interface to Google calendars using \nthe google-api-python-client python package and OAuth.\n\nExamples\n--------\nNote: See the \"Setting up the project on Google\" section below before trying\nthe examples.\n\n\nList calendar names::\n\n >>> from gback import GCalSession\n >>> session = GCalSession('~/gback.oauth')\n >>> \n >>> for c in session.names: print c\n\n\nAdd an appointment to a named calendar::\n\n\n\n >>> from gback import GCalSession\n\n >>> # print the output will display the appiointment url.\n >>> # 'Marc' is the name of the calendar used.\n\n >>> session = GCalSession('~/gback.oauth')\n >>> des='Write a simpler way to use the google calendar api.'\n >>> print session['Marc'].add('Write Python code.', '20150430', des=des)\n\n\n\nCreate an ical file for all the appointments in the named calendar::\n\n >>> from gback import GCalSession\n\n >>> cal_name = 'Marc'\n >>> session = GCalSession('~/gback.oauth')\n >>> with open(cal_name + '.ical'), 'w') as fh:\n >>> fh.write(session[cal_name].events)\n\nSetting up the project on Google\n--------------------------------\nVisit:\n https://console.developers.google.com/project/\n\nChoose \"Create Project\"\nEnter a project name. This can be anything.\nI used \"gback\" for google backup.\nRead the agreements and agree to them if you wish to continue.\nWait while Activities windows works on setting up your project.\nSelect \"APIs & auth\" on the left pane to expand menu items.\nselect \"Credentials\"\nselect \"Create new Client ID\"\nselect \"Installed application\"\n\nAnswer consent screen information prompt.\n\n Select your email address and enter your project name in the \"Product\n Name\" field. I entered \"gback\".\n\n Click on \"Save\"\n\nIf prompted to create another client id. Click on \"Cancel\".\n\nYou have to repeat the following steps. But this time \"gback\" should be\nshown in the drop down box at the top of the web page.\n\nselect \"Create new Client ID\"\nselect \"Installed application\"\nselect \"Other\" for the installed application type.\n\nNow you should have a \"Client ID for native application shown\".\nSelect \"Download JSON\"\n\nThat will save a JSON file with a client_id and client_secret among\nother things. It will have a long file name but you can rename it to\nanything you like, \"gback.json\", say.\n\nEnable APIs:\n\n Under \"APIs & auth\" select \"APIs\"\n Select \"Google+ API\"\n Then enable it.\n\n Under \"APIs & auth\" select \"APIs\"\n Select \"Calendar API\"\n Then enable it.\n\n The first time you run this program it will launch your browser to log\n into your Google account. It will get a key and save it to your named\n OAuth file using the --oauthfn arg. After that it will read your OAuth\n file to get the key.\n\n $ python gback.py -l --clientfn gback.json --oauthfn gback.oauth\n\nAfter logging in using on your browser click on 'Accept' when prompted that\ngcalcback would ike to \"Manage your calendars\".\n\nFrom now on the gback.py program should work using the gback.json and\ngback.oauth files without need for a browser.\n\n\nNote:\n Running this program requested permission which needed validation\n using a browser which did not work with w3m because it doesn't support\n Javascript. I had to run it the first time on ny in xwindows so it\n could launch chrome for validation. It stored keys etc using\n Storage() to a file so that it doesn't need to revalidate again.\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Schwarzschild/gback", "keywords": "google,calendar", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "gback", "package_url": "https://pypi.org/project/gback/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/gback/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/Schwarzschild/gback" }, "release_url": "https://pypi.org/project/gback/0.52/", "requires_dist": null, "requires_python": null, "summary": "Google Calendar Backup utility.", "version": "0.52" }, "last_serial": 2315736, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "9efe3533222ccba8883a0ca7b78fc6a7", "sha256": "a6a1f994e3821147b8f302fd0b6c245cc77819383eaea33ca1b77c223c2e71c0" }, "downloads": -1, "filename": "gback-0.5.tar.gz", "has_sig": false, "md5_digest": "9efe3533222ccba8883a0ca7b78fc6a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6280, "upload_time": "2015-04-30T19:58:42", "url": "https://files.pythonhosted.org/packages/66/40/06332fb4300dc32e1b91b34e3c05ccbe8d8bd3908ed284b704703f424849/gback-0.5.tar.gz" } ], "0.51": [ { "comment_text": "", "digests": { "md5": "3486094f1cd96ac8192872c3c169c853", "sha256": "5a6ed3abb35dc131857c3a068202afb93c19defd76514fd5ae58778e0961c964" }, "downloads": -1, "filename": "gback-0.51.tar.gz", "has_sig": false, "md5_digest": "3486094f1cd96ac8192872c3c169c853", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6309, "upload_time": "2015-05-01T12:57:36", "url": "https://files.pythonhosted.org/packages/25/ba/05969067662002134b10171d6a65a20fe9ae0aa45b594c3e0cd12a876aa0/gback-0.51.tar.gz" } ], "0.52": [ { "comment_text": "", "digests": { "md5": "998089e60d7bd1491f2fdfee7a63002d", "sha256": "8824b8167a5491e41350cdb4e2e7177d22315db022a196e1934d69d118ebda68" }, "downloads": -1, "filename": "gback-0.52.tar.gz", "has_sig": false, "md5_digest": "998089e60d7bd1491f2fdfee7a63002d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6287, "upload_time": "2016-08-31T14:15:48", "url": "https://files.pythonhosted.org/packages/2f/8f/cecbeaa1a0bebaae441935cd191ffe0e1f3c310d54b6a7ff744341e33179/gback-0.52.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "998089e60d7bd1491f2fdfee7a63002d", "sha256": "8824b8167a5491e41350cdb4e2e7177d22315db022a196e1934d69d118ebda68" }, "downloads": -1, "filename": "gback-0.52.tar.gz", "has_sig": false, "md5_digest": "998089e60d7bd1491f2fdfee7a63002d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6287, "upload_time": "2016-08-31T14:15:48", "url": "https://files.pythonhosted.org/packages/2f/8f/cecbeaa1a0bebaae441935cd191ffe0e1f3c310d54b6a7ff744341e33179/gback-0.52.tar.gz" } ] }