{ "info": { "author": "Connor Sullivan", "author_email": "sully4792@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Fluxx API Python Client\nSimple wrapper around the Fluxx GMS API.\n\n## Installation\n```bash\n$ pip install fluxx_wrapper\n```\n\n## TODO\n - change subdomain to full url\n - better in tool command documentation\n\n\n## Config\nThe command line tool expects three environmental variables to be set:\n - url of the fluxx instance (url segment before .fluxx.io)\n - application ID\n - application secret\n\nIt is required to set these variables using a unique identifier\nand the following suffixes, respectively:\n _INSTANCE\n _CLIENT\n _SECRET\n\nFor example, if we have a Fluxx instance with url \"demo.fluxx.io\", application id \"ABC\",\nand application secret \"123\", we would set the following:\n\n DEMO_INSTANCE = 'demo.fluxx.io' \n DEMO_CLIENT = 'ABC' \n DEMO_SECRET = '123' \n\n\n## Example Usage as Library\n\n```python\nfrom fluxx_wrapper import FluxxClient, FluxxError\n\n# initialize client\nfluxx = FluxxClient(\n os.getenv('YOUR_INSTANCE'),\n os.getenv('YOUR_CLIENT_ID'),\n os.getenv('YOUR_CLIENT_SECRET'),\n version='v2',\n style='full'\n)\n\n# list model attributes\nfields = fluxx.model_attribute.list({\n cols=['attribute_type', 'description', 'legacy_name', 'model_type'],\n per_page=10000\n})\n\n # example workflow, set empty description to regex-matching legacy names\nfor field in fields:\n if not 'description' in field:\n legacy_name = field['legacy_name']\n\n if re.match(r'\\(.*`.*`\\)', legacy_name):\n legacy_name = legacy_name.split('`')[1]\n\n desc = legacy_name.replace('_', ' ')\n desc = titlecase(desc)\n\n body = {'description': desc}\n\n try:\n updated = fluxx.model_attribute.update(field['id'], body)\n except FluxxError as e:\n print(e)\n\n\n print(updated['description'])\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/condad/fluxx-python-sdk/tarball/0.0.9", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/condad/fluxx-python-sdk", "keywords": "fluxx,gms,api,wrapper", "license": "", "maintainer": "", "maintainer_email": "", "name": "fluxx_wrapper", "package_url": "https://pypi.org/project/fluxx_wrapper/", "platform": "", "project_url": "https://pypi.org/project/fluxx_wrapper/", "project_urls": { "Download": "https://github.com/condad/fluxx-python-sdk/tarball/0.0.9", "Homepage": "https://github.com/condad/fluxx-python-sdk" }, "release_url": "https://pypi.org/project/fluxx_wrapper/0.0.9/", "requires_dist": null, "requires_python": ">=3", "summary": "A simple wrapper around Fluxx GMS's REST API.", "version": "0.0.9" }, "last_serial": 4204678, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "25ae7b2470a8a2d01ab9384e661f63a3", "sha256": "85bc85f3708ba75323c1fb423fc31b3ca4b9dde8a1ba203b554120b1ac99fef9" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.1.tar.gz", "has_sig": false, "md5_digest": "25ae7b2470a8a2d01ab9384e661f63a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2528, "upload_time": "2017-01-03T03:46:40", "url": "https://files.pythonhosted.org/packages/fa/45/77421cc5327e9446446d6b7a6c461d7bbbfb847067f9d182ecb64092baeb/fluxx_wrapper-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "0dc5b85d44ad6b6986fbc6a8039f13ad", "sha256": "5a7d3242d6f16d360df1db86442b86fe313609e73007d0afca23918bd3e68a75" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0dc5b85d44ad6b6986fbc6a8039f13ad", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4920, "upload_time": "2018-03-21T20:01:03", "url": "https://files.pythonhosted.org/packages/76/2f/cfe4bc1e8ef926b0ccaca95b10815a86a224bc4e7ae905a2c9c59cb65590/fluxx_wrapper-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "fb62bf5b19c854dd77166a725ad158f2", "sha256": "818357e60aa4c93b5d091febd5a255786e8e36a0bf0df681a887291dad6c9e85" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.3.tar.gz", "has_sig": false, "md5_digest": "fb62bf5b19c854dd77166a725ad158f2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4930, "upload_time": "2018-03-21T20:46:52", "url": "https://files.pythonhosted.org/packages/86/3f/54ba78106ab0a3962b702a5488dbefa0a0031b80e8b9c0ad3b13fb4b5e7e/fluxx_wrapper-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ad547831cf204e1d591e93d5be783212", "sha256": "8345bd7591a464e36ef35b92a8ef5225d77239bfc4bc717b2941ee326b46e989" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.4.tar.gz", "has_sig": false, "md5_digest": "ad547831cf204e1d591e93d5be783212", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6032, "upload_time": "2018-04-03T21:36:45", "url": "https://files.pythonhosted.org/packages/df/b1/30fb76722f96ea5dbb634b52f380204ce98a5c847c5adfca34f0be95fa54/fluxx_wrapper-0.0.4.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "ba7e565a211a89f4366307c9b1670750", "sha256": "e93b3c7fa51ac3eaab36919f0e4fba1f0a00110be871890ed9cb1039fcf0bceb" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ba7e565a211a89f4366307c9b1670750", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6006, "upload_time": "2018-04-12T18:11:22", "url": "https://files.pythonhosted.org/packages/72/3b/925d659d538d14d29cb87b04104efdd909b82fed797e3e9c6fdb1c47486e/fluxx_wrapper-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "354c510eaaf365e7f55504f79d4bff49", "sha256": "ae7da17b3c7f1dba50b0b4c5c87d4c97c8da26748dcf1d2ca01ebae48727a99c" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.7.tar.gz", "has_sig": false, "md5_digest": "354c510eaaf365e7f55504f79d4bff49", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5832, "upload_time": "2018-05-09T18:56:23", "url": "https://files.pythonhosted.org/packages/64/33/007c3b7a3f8121c5fb04197a5d5bd50cb0d1151aaef949a6cc8e0d14048b/fluxx_wrapper-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "c95c00918f6a239f560f83230f33c7b9", "sha256": "ca8ab6b405ed9867af90c290c401ecc112952d99cc81578a5fd43e0a2aacc443" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.8.tar.gz", "has_sig": false, "md5_digest": "c95c00918f6a239f560f83230f33c7b9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5954, "upload_time": "2018-06-15T19:55:08", "url": "https://files.pythonhosted.org/packages/b6/49/8381c1112cfe893e0956c822c60be9f0bbe41690b860e2ca9de4c00af36b/fluxx_wrapper-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "abae3f0d97a66d51e8938e2cb4de4f60", "sha256": "f273c38d51c1128c47fc83be5f6bf8c70be0b4cc595059f17786d4214dbb518e" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.9.tar.gz", "has_sig": false, "md5_digest": "abae3f0d97a66d51e8938e2cb4de4f60", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6850, "upload_time": "2018-08-24T18:36:38", "url": "https://files.pythonhosted.org/packages/79/cd/433cbb69f13b9468b5dfdd8cafffe5643e9a7568cde1ced5dfc37d53f70e/fluxx_wrapper-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "abae3f0d97a66d51e8938e2cb4de4f60", "sha256": "f273c38d51c1128c47fc83be5f6bf8c70be0b4cc595059f17786d4214dbb518e" }, "downloads": -1, "filename": "fluxx_wrapper-0.0.9.tar.gz", "has_sig": false, "md5_digest": "abae3f0d97a66d51e8938e2cb4de4f60", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6850, "upload_time": "2018-08-24T18:36:38", "url": "https://files.pythonhosted.org/packages/79/cd/433cbb69f13b9468b5dfdd8cafffe5643e9a7568cde1ced5dfc37d53f70e/fluxx_wrapper-0.0.9.tar.gz" } ] }