{ "info": { "author": "Kirsten Hunter", "author_email": "khunter@akamai.com", "bugtrack_url": null, "classifiers": [], "description": "# Python Code Examples\n\nThis will guide you through the steps necessary to set up credentials and start playing with the sample code. Note that once you've set up credentials for one language, you don't need to re-create them for another language. If you set up the credentials for python, php will use the same credentials.\n\nThese instructions expect that you are in the examples/python subdirectory of the github repository.\n\n# Authentication and Provisioning\nThe easiest way to walk through the needed provisioning and authentication to get your credentials is by following the instructions on [Authorizing your Client](https://developer.akamai.com/introduction/Prov_Creds.html) from the Getting started guide on our site. Once you have done this, you'll be able to run the 'diagnostic tools' example scripts.\n\n## Credential File Creation\nYou can get your credentials set up for use by the sample code by using the gen_edgerc.py command in the examples/python directory:\n```bash\n$ ./gen_edgerc.py\n``` \n\nWhen you run gen_edgerc.py with no command line options, the script will create a 'default' section in your ~/.edgerc file. For examples other than diagnostic_tools.py you'll need to pass the name of the appropriate section as an\nargument, for example this is how you'd set up ccu.py:\n```bash\n./gen_edgerc.py ccu\n```\n\nYou can find the correct name for the credentials section on the \"section=\" line in the example script. If you run the script again for a specific section (including 'default') it will overwrite the previous credentials with your new ones.\n\n## Diagnostic Tools - diagnostic_tools.py\nThe first example code to test is the diagnostic_tools.py script. The credentials from the creation step give you permission to run the \"dig\" command from the API.\n\n``` bash\n./diagnostic_tools.py\n```\n\nThis simple script runs the 'locations' call to find out where the Akamai servers are located. The API can run the 'dig' for you from any of these locations. Once it has done that, it grabs one at random and makes the dig call from there.\n\nBy reviewing the code you can see how simple it is to make API calls.\n\nAll of the sample code in the directory also supports --verbose to see the output on the screen, and/or --debug to see all of the HTTP traffic. These flags can help enormously in figuring out what's going wrong or how it's working.\n\n``` bash\n./diagnostic_tools.py --verbose\n./diagnostic_tools.py --debug\n```\n\n## CCU (Purge) - ccu.py\nWe have a [blog post](https://community.akamai.com/community/developer/blog/2015/08/20/getting-started-with-the-v2-open-ccu-api) with instructions on getting set up with the CCU API.\nPrerequisites: ccu credentials and edit the filename to a valid file on your system\n\n", "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/akamai-open/api-kickstart", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "akamaikickstart", "package_url": "https://pypi.org/project/akamaikickstart/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/akamaikickstart/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/akamai-open/api-kickstart" }, "release_url": "https://pypi.org/project/akamaikickstart/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Bootcamp examples for Akamai {OPEN} APIs", "version": "1.0.0" }, "last_serial": 2391185, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "758610df5d8b8a293a4375e7a92b01aa", "sha256": "1a151a22fdd1d52bd6687ab4c0c71f1feb5d97fd8cf12f4b5679f4897dd92752" }, "downloads": -1, "filename": "akamaikickstart-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "758610df5d8b8a293a4375e7a92b01aa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 1987, "upload_time": "2016-10-10T15:39:40", "url": "https://files.pythonhosted.org/packages/9e/89/708a9f1257d8a4f4d82837d16f7e738a048b11150bb4e8f4e199ff30bc9b/akamaikickstart-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd06842dbbd722b3a20f3057430cf033", "sha256": "b51b68c8e8199e7d86caeb0532cf9d138216e09cc353b733e26438486920dbe2" }, "downloads": -1, "filename": "akamaikickstart-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cd06842dbbd722b3a20f3057430cf033", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2110, "upload_time": "2016-10-10T15:39:38", "url": "https://files.pythonhosted.org/packages/e8/9c/6df0a123faa8bb68763c78fe6c03e9a59ff46613e31e082b7c0bf5605a5c/akamaikickstart-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "758610df5d8b8a293a4375e7a92b01aa", "sha256": "1a151a22fdd1d52bd6687ab4c0c71f1feb5d97fd8cf12f4b5679f4897dd92752" }, "downloads": -1, "filename": "akamaikickstart-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "758610df5d8b8a293a4375e7a92b01aa", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 1987, "upload_time": "2016-10-10T15:39:40", "url": "https://files.pythonhosted.org/packages/9e/89/708a9f1257d8a4f4d82837d16f7e738a048b11150bb4e8f4e199ff30bc9b/akamaikickstart-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd06842dbbd722b3a20f3057430cf033", "sha256": "b51b68c8e8199e7d86caeb0532cf9d138216e09cc353b733e26438486920dbe2" }, "downloads": -1, "filename": "akamaikickstart-1.0.0.tar.gz", "has_sig": false, "md5_digest": "cd06842dbbd722b3a20f3057430cf033", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2110, "upload_time": "2016-10-10T15:39:38", "url": "https://files.pythonhosted.org/packages/e8/9c/6df0a123faa8bb68763c78fe6c03e9a59ff46613e31e082b7c0bf5605a5c/akamaikickstart-1.0.0.tar.gz" } ] }