{ "info": { "author": "Da Kuang", "author_email": "dkuang1980@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# pyramid_shopify_oauth\n\n### in your .ini file, add the following\n```\nshopify.oauth.login_url = /oauth_login\t # The entry point of your shopify app, defaults to shopify_oauth_login_url (different from App Home)\nshopify.oauth.redirect_url = /oauth_redirect # The redirect app url for OAuth, defaults to shopify_oauth_redirect_url\nshopify.oauth.scope = read_products,read_orders # Permission scope you need from the shop (comma seperated)\nshopify.oauth.app_home = /\t\t # Your app home url\nshopify.oauth.api_key = ************* # Your api key\nshopify.oauth.secret = ************* # Your api secret\n```\n\n### in your app __init__ file, add the following\n```\nconfig.include('pyramid_shopify_oauth')\n```\n\n### after oauth login, you can get shopify instance from request\n```\nshopify = request.shopify\nif shopify is None:\n # the user is not signed in\n\n# you can access shopify API now\nshopify.Shop.current()\n...\n...\n```\n\n### To make oauth work, make sure you have pre-configured a session factory, for example\n```\nfrom pyramid_beaker import session_factory_from_settings\n\nsession_factory = session_factory_from_settings(settings)\nconfig.set_session_factory(session_factory)\n```\n\n\n#Release Notes\n\n0.0.1\n==========\n- Initial release\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dakuang/pyramid_shopify_oauth", "keywords": "pyramid python shopify oauth", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyramid_shopify_oauth", "package_url": "https://pypi.org/project/pyramid_shopify_oauth/", "platform": "", "project_url": "https://pypi.org/project/pyramid_shopify_oauth/", "project_urls": { "Homepage": "https://github.com/dakuang/pyramid_shopify_oauth" }, "release_url": "https://pypi.org/project/pyramid_shopify_oauth/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "create pyramid app without worrying about Shopify OAuth", "version": "0.0.1" }, "last_serial": 2894775, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0b3fefa06187116a6e0eae0248aa9e58", "sha256": "5f669e8acce3f562978758e153a24d94b4ded5302c8dcaddcf9d8ef934e3be1c" }, "downloads": -1, "filename": "pyramid_shopify_oauth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0b3fefa06187116a6e0eae0248aa9e58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2720, "upload_time": "2017-05-24T02:17:44", "url": "https://files.pythonhosted.org/packages/78/47/b93633b9dd5bb185758c75647ccec1f4d9ece6496b3a888d60b104d9a68d/pyramid_shopify_oauth-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0b3fefa06187116a6e0eae0248aa9e58", "sha256": "5f669e8acce3f562978758e153a24d94b4ded5302c8dcaddcf9d8ef934e3be1c" }, "downloads": -1, "filename": "pyramid_shopify_oauth-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0b3fefa06187116a6e0eae0248aa9e58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2720, "upload_time": "2017-05-24T02:17:44", "url": "https://files.pythonhosted.org/packages/78/47/b93633b9dd5bb185758c75647ccec1f4d9ece6496b3a888d60b104d9a68d/pyramid_shopify_oauth-0.0.1.tar.gz" } ] }