{"id":37133652,"url":"https://github.com/ampedandwired/bottle-swagger","last_synced_at":"2026-01-14T15:36:09.496Z","repository":{"id":57416114,"uuid":"59444316","full_name":"ampedandwired/bottle-swagger","owner":"ampedandwired","description":"A Bottle plugin for Swagger REST APIs","archived":false,"fork":false,"pushed_at":"2018-04-10T19:06:40.000Z","size":19,"stargazers_count":32,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-04T01:50:07.585Z","etag":null,"topics":["bottlepy","swagger"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ampedandwired.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-23T01:47:32.000Z","updated_at":"2024-07-01T18:48:37.000Z","dependencies_parsed_at":"2022-08-23T16:51:25.813Z","dependency_job_id":null,"html_url":"https://github.com/ampedandwired/bottle-swagger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ampedandwired/bottle-swagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampedandwired%2Fbottle-swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampedandwired%2Fbottle-swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampedandwired%2Fbottle-swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampedandwired%2Fbottle-swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampedandwired","download_url":"https://codeload.github.com/ampedandwired/bottle-swagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampedandwired%2Fbottle-swagger/sbom","scorecard":{"id":190449,"data":{"date":"2025-08-11","repo":{"name":"github.com/ampedandwired/bottle-swagger","commit":"0ac9a638c3361588a7567e9ad8c2e181ec816db3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 4/19 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-129 / GHSA-qhx9-7hx7-cp4r","Warn: Project is vulnerable to: PYSEC-2022-227 / GHSA-xhp9-4947-rq78"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T20:33:56.882Z","repository_id":57416114,"created_at":"2025-08-16T20:33:56.882Z","updated_at":"2025-08-16T20:33:56.882Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bottlepy","swagger"],"created_at":"2026-01-14T15:36:08.868Z","updated_at":"2026-01-14T15:36:09.484Z","avatar_url":"https://github.com/ampedandwired.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nBottle Swagger Plugin\n=====================\n\nAbout\n-----\nThis project is a Bottle plugin for working with Swagger.\n`Bottle \u003chttp://bottlepy.org/\u003e`_ is a Python web framework.\n`Swagger (OpenAPI) \u003chttp://swagger.io/\u003e`_ is a standard for defining REST APIs.\n\nSo if you are serving a REST API with Bottle,\nand you have a defined a Swagger schema for that API,\nthis plugin can:\n\n* Validate incoming requests and outgoing responses against the swagger schema\n* Return appropriate error responses on validation failures\n* Serve your swagger schema via Bottle (for use in `Swagger UI \u003chttp://swagger.io/swagger-ui/\u003e`_ for example)\n\nRequirements\n------------\n\n* Python \u003e= 2.7\n* Bottle \u003e= 0.12\n* Swagger specification \u003e= 2.0\n\nThis project relies on `bravado-core \u003chttps://github.com/Yelp/bravado-core\u003e`_ to perform the swagger schema validation,\nso any version of the Swagger spec supported by that project is also supported by this plugin.\n\nInstallation\n------------\n::\n\n  $ pip install bottle-swagger\n\nUsage\n-----\nSee the \"example\" directory for a working example of using this plugin.\n\nThe simplest usage is::\n\n  import bottle\n\n  swagger_def = _load_swagger_def()\n  bottle.install(SwaggerPlugin(swagger_def))\n\nWhere \"_load_swagger_def\" returns a dict representing your swagger specification\n(loaded from a yaml file, for example).\n\nThere are a number of arguments that you can pass to the plugin constructor:\n\n* ``validate_requests`` - Boolean (default ``True``) indicating if incoming requests should be validated or not\n* ``validate_responses`` - Boolean (default ``True``) indicating if outgoing responses should be validated or not\n* ``ignore_undefined_routes`` - Boolean (default ``False``) indicating if undefined routes\n  (that is, routes not defined in the swagger spec) should be passed on (\"True\") or return a 404 (\"False\")\n* ``invalid_request_handler`` - Callback called when request validation has failed.\n  Default behaviour is to return a \"400 Bad Request\" response.\n* ``invalid_response_handler`` - Callback called when response validation has failed.\n  Default behaviour is to return a \"500 Server Error\" response.\n* ``swagger_op_not_found_handler`` - Callback called when no swagger operation matching the request was found in the swagger schema.\n  Default behaviour is to return a \"404 Not Found\" response.\n* ``exception_handler=_server_error_handler`` - Callback called when an exception is thrown by downstream handlers (including exceptions thrown by your code).\n  Default behaviour is to return a \"500 Server Error\" response.\n* ``serve_swagger_schema`` - Boolean (default ``True``) indicating if the Swagger schema JSON should be served\n* ``swagger_schema_url`` - URL (default ``/swagger.json``) on which to serve the Swagger schema JSON\n\nAll the callbacks above receive a single parameter representing the ``Exception`` that was raised,\nor in the case of ``swagger_op_not_found_handler`` the ``Route`` that was not found.\nThey should all return a Bottle ``Response`` object.\n\nContributing\n------------\nDevelopment happens in the `bottle-swagger GitHub respository \u003chttps://github.com/ampedandwired/bottle-swagger\u003e`_.\nPull requests (with accompanying unit tests), feature suggestions and bug reports are welcome.\n\nUse \"tox\" to run the unit tests::\n\n  $ tox\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampedandwired%2Fbottle-swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampedandwired%2Fbottle-swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampedandwired%2Fbottle-swagger/lists"}