{ "info": { "author": "AegisBlade", "author_email": "welovedevs@aegisblade.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Distributed Computing" ], "description": "\n\n

\n \n \"Logo\"\n \n\n

AegisBlade Python Client

\n\n

\n \"pypi\n \"supported\n \"license\"\n

\n\n

\n Deploy & run your code in a single function call.\n
\n Read the docs \u00bb\n
\n
\n Examples\n \u00b7\n Sign Up for an API Key\n \u00b7\n Report Bug\n

\n

\n\n## Installation\n\nWe recommend using [virtualenv](https://virtualenv.pypa.io/en/latest/) to create an isolated environment for your python application.\n\nInstall the python package as a dependency of your application.\n\n```bash\n$ pip install aegisblade\n```\n\nOr for `python3`:\n\n```bash\npip3 install aegisblade\n```\n\n## Hello World Example\n\n```javascript\nconst {aegisblade} = require('aegisblade');\nconst os = require(\"os\");\n\n/**\n * In this example the `helloWorld()` function will be run on a\n * server using AegisBlade. \n */\nasync function helloWorld() {\n console.log(`The server's hostname is ${os.hostname()}`);\n\n return `Hello World from ${os.hostname()}`;\n}\n\n// Any target function to be run on AegisBlade must be exported.\nmodule.exports = {helloWorld};\n\n/**\n * The `main()` function will run on your local machine\n * and start the job running the `helloWorld()` function\n * on a server using AegisBlade.\n */\nasync function main() {\n let job = await aegisblade.run(helloWorld);\n\n console.log(`Job Id: ${job.id}`);\n console.log(\"Waiting for the job to finish running...\");\n\n let jobReturnValue = await job.getReturnValue();\n let jobLogs = await job.getLogs();\n\n console.log(`Job Return Value: ${jobReturnValue}`);\n console.log(`Job Logs: ${jobLogs}`);\n}\n\n// Using the `require.main === module` idiom to only run main when this script\n// is called directly is especially important when using AegisBlade to prevent\n// infinite loops of jobs creating jobs.\nif (require.main === module) {\n (async () => {\n try {\n await main();\n } catch (err) {\n console.error(err);\n }\n })();\n}\n```\n\n## Note on Python 2\n\nThe official python organization will no longer support Python 2 following January 2020.\n\nDue to it's popular usage though, we will likely continue to support a Python 2.7 client for the forseeable future.\n\n## Reference\n\n[Python Client Reference Docs](https://www.aegisblade.com/docs/reference/python)\n\n\n## Contact\n\nAegisBlade - [@aegisbladehq](https://twitter.com/aegisbladehq) - welovedevs@aegisblade.com\n\nProject Link: [https://github.com/aegisblade/aegis-nodejs](https://github.com/aegisblade/aegis-nodejs)\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.aegisblade.com/", "keywords": "aegisblade server aws ec2 devops infrastructure as code IaC serverless kubernetes", "license": "LGPL2.1", "maintainer": "", "maintainer_email": "", "name": "aegisblade", "package_url": "https://pypi.org/project/aegisblade/", "platform": "", "project_url": "https://pypi.org/project/aegisblade/", "project_urls": { "Bug Reports": "https://github.com/aegisblade/aegis-python/issues", "Docs": "https://www.aegisblade.com/docs", "Github": "https://github.com/aegisblade/aegis-python", "Homepage": "https://www.aegisblade.com/", "Reference": "https://www.aegisblade.com/docs/reference/python" }, "release_url": "https://pypi.org/project/aegisblade/0.2.0/", "requires_dist": [ "requests (==2.20.1)", "typing (==3.6.4)", "cloudpickle (==1.2.2)" ], "requires_python": ">=2.7", "summary": "Deploy & run your code in a single function call.", "version": "0.2.0" }, "last_serial": 5898193, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "325f21e557d57b1a2af62dd297706f70", "sha256": "a579fddd66203cced1b45b119f7e370fe812f9c8074e566154effa2507bd4ae7" }, "downloads": -1, "filename": "aegisblade-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "325f21e557d57b1a2af62dd297706f70", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7", "size": 48755, "upload_time": "2019-09-27T21:17:56", "url": "https://files.pythonhosted.org/packages/25/5c/d5c8c3b1fa2343751a4fc3dbd81b2401627cba4f233c0f51139e08942cea/aegisblade-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9ab1fbb88901470b3ee3d7b7b14b9fc", "sha256": "0a52fa0c87a3c195562ad0a3c9ea1cab8dc853f91aa8eb75ed9965045689b77f" }, "downloads": -1, "filename": "aegisblade-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c9ab1fbb88901470b3ee3d7b7b14b9fc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 24035, "upload_time": "2019-09-27T21:17:59", "url": "https://files.pythonhosted.org/packages/dd/51/fd574623b8688465484dd75077c64c39a5890a4d734f6d5a2c9f18a8e172/aegisblade-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "325f21e557d57b1a2af62dd297706f70", "sha256": "a579fddd66203cced1b45b119f7e370fe812f9c8074e566154effa2507bd4ae7" }, "downloads": -1, "filename": "aegisblade-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "325f21e557d57b1a2af62dd297706f70", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7", "size": 48755, "upload_time": "2019-09-27T21:17:56", "url": "https://files.pythonhosted.org/packages/25/5c/d5c8c3b1fa2343751a4fc3dbd81b2401627cba4f233c0f51139e08942cea/aegisblade-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9ab1fbb88901470b3ee3d7b7b14b9fc", "sha256": "0a52fa0c87a3c195562ad0a3c9ea1cab8dc853f91aa8eb75ed9965045689b77f" }, "downloads": -1, "filename": "aegisblade-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c9ab1fbb88901470b3ee3d7b7b14b9fc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7", "size": 24035, "upload_time": "2019-09-27T21:17:59", "url": "https://files.pythonhosted.org/packages/dd/51/fd574623b8688465484dd75077c64c39a5890a4d734f6d5a2c9f18a8e172/aegisblade-0.2.0.tar.gz" } ] }