{ "info": { "author": "See AUTHORS", "author_email": "eric@adimian.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3.6" ], "description": "# swaggercheck\n\nYou have a Swagger (aka OpenAPI) schema defining an API you provide - but does your API really conform to that schema, and does it correctly handle all valid inputs?\n\n[![Build Status](https://travis-ci.org/adimian/swagger-check.svg?branch=master)](https://travis-ci.org/adimian/swagger-check)\n[![PyPI version](https://badge.fury.io/py/swagger-check.svg)](https://badge.fury.io/py/swagger-check)\n\n\n`swaggercheck` combines the power of `hypothesis` for property based / fuzz testing with `pyswagger` to explore all corners of your API - testing its conformance to its specification.\n\n[![asciicast](https://asciinema.org/a/256786.svg)](https://asciinema.org/a/256786)\n\n\n## Swagger-conformance\n\nThis project is a fork of [swagger-conformance by Oliver Pratt](http://swagger-conformance.readthedocs.io/en/latest/) and contributors. \n\nThe original library worked fine, but missed several options that were important to me (such as basic authentication support from the command line), so I made an adapted version that is **breaking** the original. \n\nI don't have plans for the moment contributing my changes upstream since it would be a significant effort to have a nice CLI and a nice embeddable library at the same time.\n\nYou *could* use `swaggercheck` as a library, but the purpose of the tool is to have a nice CLI that can output shiny colors in my terminal or in during CI builds, so most design decisions will be tailored towards this goal.\n\n## Purpose\n\nA Swagger/OpenAPI Spec allows you to carefully define what things are and aren't valid for your API to consume and produce. This tool takes that definition, and tries to make requests exploring all parts of the API while strictly adhering to the schema. Its aim is to find any places where your application fails to adhere to its own spec, or even just falls over entirely, so you can fix them up.\n\n_This is not a complete fuzz tester of your HTTP interface e.g. sending complete garbage, or to non-existent endpoints, etc. It's aiming to make sure that any valid client, using your API exactly as you specify, can't break it._\n\n## Installation\n\n $ pip install swagger-check\n \n## Usage\n\nAfter setup, the simplest test you can run against your API is just the following from the command line:\n\n\n $ swaggercheck http://example.com/api/schema.json\n\n\nwhere the URL should resolve to your swagger schema, or it can be a path to the file on disk.\n\n### Configuration\n\n| **CLI argument** | **Environment variable** | **Default** |\u00a0**Description** |\n| --- | --- | --- | --- |\n|\u00a0`-n N` |\u00a0`SC_TESTS` |\u00a020 | Number of tests per endpoint\u00a0|\n|\u00a0`-c / --continue-on-error` (flag) |\u00a0`SC_CONTINUE_ON_ERROR` |\u00a0false | Keep testing endpoints even if one test breaks\u00a0|\n|\u00a0`-u username` |\u00a0`SC_BASIC_USERNAME` |\u00a0 | Username to use over `basic` authentication\u00a0|\n|\u00a0`-p password` |\u00a0`SC_BASIC_PASSWORD` |\u00a0 | Password to use over `basic` authentication\u00a0|\n|\u00a0`-k` |\u00a0`SC_API_TOKEN` | | Token to use over `apiKey` authentication\u00a0|\n|\u00a0`-security-name name` |\u00a0`SC_SECURITY_NAME` | | force a security scheme if not `basic` or `apiKey`\u00a0|\n\n**Note:** CLI arguments take precedence over Environment variables\n\n## FAQ\n\n### Wait, I don't get it, what does this thing do?\n\nIn short, it lets you generate example values for parameters to your Swagger API operations, make API requests using these values, and verify the responses.\n\n\n### SSL certificate errors\n\nIf the command crashes with the following error:\n`Unable to connect Swagger client: ` and you are using Python3.6 on MacOSX, you might be interested in the following StackOverflow thread: https://stackoverflow.com/a/42334357", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adimian/swagger-check", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "swagger-check", "package_url": "https://pypi.org/project/swagger-check/", "platform": "", "project_url": "https://pypi.org/project/swagger-check/", "project_urls": { "Homepage": "https://github.com/adimian/swagger-check" }, "release_url": "https://pypi.org/project/swagger-check/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "Validate API against its Swagger using Hypothesis", "version": "1.1.1" }, "last_serial": 5522095, "releases": { "0.2.6.dev13": [ { "comment_text": "", "digests": { "md5": "28ef2e54495ae2adc11fac0e55e8e05c", "sha256": "c2f2de421f2224f435236188f96a67ea3c5c22902c834171154bdaf0d9378135" }, "downloads": -1, "filename": "swagger-check-0.2.6.dev13.tar.gz", "has_sig": false, "md5_digest": "28ef2e54495ae2adc11fac0e55e8e05c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36436, "upload_time": "2019-07-02T09:16:59", "url": "https://files.pythonhosted.org/packages/60/50/59f2970a61f07a21c62965057dd6a3120c9669b04ad7701cf9983a92965f/swagger-check-0.2.6.dev13.tar.gz" } ], "0.2.6.dev16": [ { "comment_text": "", "digests": { "md5": "73d2c529123a5b37de7cf7b5e3c2a4b1", "sha256": "4cc755ec4bbd86a64188e4b279413524b2c40866146e2538c970126b101cf0f9" }, "downloads": -1, "filename": "swagger-check-0.2.6.dev16.tar.gz", "has_sig": false, "md5_digest": "73d2c529123a5b37de7cf7b5e3c2a4b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33204, "upload_time": "2019-07-02T09:34:14", "url": "https://files.pythonhosted.org/packages/b6/8e/bf6ac800687c7ea711581fab04a1de9637a93deb43e7a4143793c5eacc5a/swagger-check-0.2.6.dev16.tar.gz" } ], "1.0.1.dev1": [ { "comment_text": "", "digests": { "md5": "edca774995f09f44e87b68d272f066dd", "sha256": "c5126c862de7a71029adf2d646dcd450207200b6190f9461fa9921520fd778cc" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev1.tar.gz", "has_sig": false, "md5_digest": "edca774995f09f44e87b68d272f066dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33394, "upload_time": "2019-07-02T15:23:14", "url": "https://files.pythonhosted.org/packages/84/98/818add4cf751854543318164f3d95e6dbc4f181d0dbe463d10978e349d95/swagger-check-1.0.1.dev1.tar.gz" } ], "1.0.1.dev10": [ { "comment_text": "", "digests": { "md5": "f666da65884e45fd2fe16d6b58aa10c1", "sha256": "d8c14de132ceac099f64f8de8ee1801794ffccbf1aa488a8cff69e7136bc757c" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev10.tar.gz", "has_sig": false, "md5_digest": "f666da65884e45fd2fe16d6b58aa10c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34126, "upload_time": "2019-07-11T22:11:01", "url": "https://files.pythonhosted.org/packages/6c/4a/9c5b3f43c62b6817c7593ff4ba4607e343736a5672d680c44d6141ac5343/swagger-check-1.0.1.dev10.tar.gz" } ], "1.0.1.dev11": [ { "comment_text": "", "digests": { "md5": "9afda7a442feb0ce141b40b5795a2fc0", "sha256": "accb2f5a2346d9012e5d84781c075ea91acba92844922b8fe0ca5c68001b42a2" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev11.tar.gz", "has_sig": false, "md5_digest": "9afda7a442feb0ce141b40b5795a2fc0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34148, "upload_time": "2019-07-12T07:31:29", "url": "https://files.pythonhosted.org/packages/a1/ba/ee17612f6ee78223985b4d611d3e3c2e0394524546b561e640569d31ed60/swagger-check-1.0.1.dev11.tar.gz" } ], "1.0.1.dev13": [ { "comment_text": "", "digests": { "md5": "f9f098039c7272c93db7c2b14bd9339a", "sha256": "d33e866081d6eb087e4fa3a6b583ea3c89d9e10d9527aee2696e125df9b76825" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev13.tar.gz", "has_sig": false, "md5_digest": "f9f098039c7272c93db7c2b14bd9339a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34220, "upload_time": "2019-07-12T07:57:52", "url": "https://files.pythonhosted.org/packages/60/cb/8ea8a6674b254dab20013e2396ebfc36934052a6f91b72c2d392c36cb909/swagger-check-1.0.1.dev13.tar.gz" } ], "1.0.1.dev4": [ { "comment_text": "", "digests": { "md5": "a33fbe317c89131b4bde9605d1ec908b", "sha256": "7c053a3ea959e0aeddb451a1a3dc1e033fe345914a7c985785f06c2d777cb788" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev4.tar.gz", "has_sig": false, "md5_digest": "a33fbe317c89131b4bde9605d1ec908b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37707, "upload_time": "2019-07-11T09:53:17", "url": "https://files.pythonhosted.org/packages/14/a0/4af9bac9ef37cd3ce4f2efdccb3e2f0aa67a59c2eaedf88c2209406e8449/swagger-check-1.0.1.dev4.tar.gz" } ], "1.0.1.dev7": [ { "comment_text": "", "digests": { "md5": "043a4676122717792e39e6694bea9cc4", "sha256": "cd528fe6088fec4ba8d84996d9f0f53edbe78903b8da7cb7c3b69518953b1271" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev7.tar.gz", "has_sig": false, "md5_digest": "043a4676122717792e39e6694bea9cc4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 33971, "upload_time": "2019-07-11T12:47:18", "url": "https://files.pythonhosted.org/packages/47/89/b29ee9176f68f30e31e13af263d4eeebe9ce24ff9e8fcb88f798e01a0c57/swagger-check-1.0.1.dev7.tar.gz" } ], "1.0.1.dev8": [ { "comment_text": "", "digests": { "md5": "62ca2bd1e5b6f951e4f44d1fd6ec92d9", "sha256": "de658ccef30216ba54547099f5c241af0271fc5ba781e88f473b0c99121e26dd" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev8.tar.gz", "has_sig": false, "md5_digest": "62ca2bd1e5b6f951e4f44d1fd6ec92d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34021, "upload_time": "2019-07-11T12:56:11", "url": "https://files.pythonhosted.org/packages/47/f2/3cec5e530f15369a3db19b5a03012c6f9898c2dc3aec08f88803d8bfb852/swagger-check-1.0.1.dev8.tar.gz" } ], "1.0.1.dev9": [ { "comment_text": "", "digests": { "md5": "e46ef7b729000969bd6fde2e51a78a54", "sha256": "16791c3997ef91829b6cbffe3dbfcefcafbcc1ffcd7cafd40de1db0d7292e9c8" }, "downloads": -1, "filename": "swagger-check-1.0.1.dev9.tar.gz", "has_sig": false, "md5_digest": "e46ef7b729000969bd6fde2e51a78a54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34021, "upload_time": "2019-07-11T12:57:03", "url": "https://files.pythonhosted.org/packages/c6/15/19ec6c7fa0b9ae4578906e0833e77a8edc5b64406180f3945f11c73ca942/swagger-check-1.0.1.dev9.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "3aafe7e083b79b1b37bafe7a7900cdb6", "sha256": "d5482ced18044d26bfdf14067aaed7c2f1bda08329cf448075df3da3b63f30d9" }, "downloads": -1, "filename": "swagger-check-1.1.1.tar.gz", "has_sig": false, "md5_digest": "3aafe7e083b79b1b37bafe7a7900cdb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34197, "upload_time": "2019-07-12T08:07:40", "url": "https://files.pythonhosted.org/packages/4d/6f/9fe8de82ab07f7ee2eafa44df7bb6a3990ca51d5e5c312a2b79db8b90894/swagger-check-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3aafe7e083b79b1b37bafe7a7900cdb6", "sha256": "d5482ced18044d26bfdf14067aaed7c2f1bda08329cf448075df3da3b63f30d9" }, "downloads": -1, "filename": "swagger-check-1.1.1.tar.gz", "has_sig": false, "md5_digest": "3aafe7e083b79b1b37bafe7a7900cdb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 34197, "upload_time": "2019-07-12T08:07:40", "url": "https://files.pythonhosted.org/packages/4d/6f/9fe8de82ab07f7ee2eafa44df7bb6a3990ca51d5e5c312a2b79db8b90894/swagger-check-1.1.1.tar.gz" } ] }