{"id":28394229,"url":"https://github.com/isclub/flask-was","last_synced_at":"2026-04-11T21:11:54.195Z","repository":{"id":56435018,"uuid":"307056697","full_name":"isclub/flask-was","owner":"isclub","description":"🍾 Flask extension for JSON API","archived":false,"fork":false,"pushed_at":"2020-11-12T12:39:07.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T12:28:31.299Z","etag":null,"topics":["api","flask","flask-extension","http","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/flask-was","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/isclub.png","metadata":{"files":{"readme":"README.md","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":"2020-10-25T08:38:07.000Z","updated_at":"2023-08-24T04:41:13.000Z","dependencies_parsed_at":"2022-08-15T18:40:29.875Z","dependency_job_id":null,"html_url":"https://github.com/isclub/flask-was","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/isclub/flask-was","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isclub%2Fflask-was","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isclub%2Fflask-was/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isclub%2Fflask-was/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isclub%2Fflask-was/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/isclub","download_url":"https://codeload.github.com/isclub/flask-was/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/isclub%2Fflask-was/sbom","scorecard":{"id":495336,"data":{"date":"2025-08-11","repo":{"name":"github.com/isclub/flask-was","commit":"74f9da6bf9841daf0050ed4e4540c619a92c020e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/isclub/flask-was/pytest.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/isclub/flask-was/pytest.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:22","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pytest.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"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":"Code-Review","score":0,"reason":"Found 1/24 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pytest.yml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/isclub/flask-was/releases/33605947","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/isclub/flask-was/releases/33605947"],"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 'main'"],"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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-66 / GHSA-562c-5r94-xh97","Warn: Project is vulnerable to: PYSEC-2019-179 / GHSA-5wv5-4vpf-pj6m","Warn: Project is vulnerable to: PYSEC-2023-62 / GHSA-m2qf-hxjv-5gpq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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"}}]},"last_synced_at":"2025-08-19T20:18:59.970Z","repository_id":56435018,"created_at":"2025-08-19T20:18:59.970Z","updated_at":"2025-08-19T20:18:59.970Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281019442,"owners_count":26430646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","flask","flask-extension","http","python"],"created_at":"2025-05-31T18:07:46.107Z","updated_at":"2025-10-25T20:47:53.713Z","avatar_url":"https://github.com/isclub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://og-image.vercel.app/**Flask**%20Was.png?theme=light\u0026md=1\u0026fontSize=75px\u0026images=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fvercel-triangle-black.svg\u0026images=https%3A%2F%2Favatars3.githubusercontent.com%2Fu%2F73245034%3Fs%3D200%26v%3D4\u0026images=https%3A%2F%2Fflask.palletsprojects.com%2Fen%2F1.1.x%2F_static%2Fflask-icon.png\u0026images=https%3A%2F%2Fgithub.com%2Ffluidicon.png\u0026widths=150\u0026heights=150)\n\n🍾 **Flask extension for JSON API**\n\n[中文版](https://github.com/isclub/flask-was/blob/main/README.zh-CN.md \"中文版\")\n\n\u003e This project is created and maintained by ISCLUB studio. Use the MIT license on GITHUB and PYPI\n\n## Introduction\n\n**Flask-was** can better realize the separation of front and back ends. Quickly create data verification and check before the view function runs, generate data and return. You can also create user verification functions to data verification. Fast and elegant\n\n\n## Install\n\nUse pip to install or update:\n\n``` bash\n$ pip install -U flask-was\n```\n\n## Example\n\n**A simple Signin**\n\n``` python\nfrom flask import Flask\nfrom flask_was import Was, Checker, Column\n\napp = Flask(__name__)\napi = Was(app)\n\napi.addChecker(\n    namespace=\"signin\",\n    obj=Checker(\n        {\n            \"name\": Column(api.String, biggest_str=20, smallest_str=4),\n            \"email\": Column(api.EmailAddress, biggest_str=255, smallest_str=3),\n            \"password\": Column(api.String, biggest_str=20, smallest_str=4),\n        }\n    ),\n)\n\n\n@app.route(\"/api/signin\", methods=[\"POST\"])\n@api.checkeout(\"signin\")\ndef api_signin(postdata):\n    if postdata[0]:\n        print(\"======== A new user coming ... ========\")\n        print(\"Name: \" + postdata[1][\"name\"])\n        print(\"Email: \" + postdata[1][\"email\"])\n        return api.send(json={\"messages\": \"Signin was OK\"}, status=200)\n    else:\n        return api.send(\n            json={\"messages\": \"Have some error. Check you forms\", \"postdata\": postdata},\n            status=400,\n        )\n\napp.run()\n```\n\n**Post Request**:\n\n``` python\nimport requests\n\nprint(requests.post(\n    \"http://127.0.0.1:5000/api/signin\",\n    data={\n        \"name\":\"Flask\",\n        \"email\":\"flask@example.org\",\n        \"password\":\"12345\"\n    },\n).text)\n```\n\n## Documentation\n\nRead the **documentation** to get started. The documentation is in the `/docs` folder. If this project is helpful to you, please click the **Star**\n\n## Contribution Guide\n\nIf you find errors or have good suggestions, please refer to the following template to create **issues** and **pull requests**\n\n- `Good ideas`\n\n``` markdown\n## Introduction\n\nWhat can this idea do ...\n\n## Code\n\nThe files I changed and what did I do ...\n\n## Info\n\nVersion Information...\n\nPython: 3.6.x\nFlask: 1.1.x\nFlask-Was: 0.1.x\n\n\n```\n\n- `Problems in use`\n\n``` markdown\n## Buiness\n\nMy business needs ...\n\n## Code\n\nPart of the code and full traceback ...\n\nWhat does my code do ...\n\n## Info\n\nVersion Information...\n\nPython: 3.6.x\nFlask: 1.1.x\nFlask-Was: 0.1.x\n\n\n```\n\nIf you make a useful contribution, you will be added to the **contributors.md**\n\n## License\n\n**MIT LICENSE**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisclub%2Fflask-was","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fisclub%2Fflask-was","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fisclub%2Fflask-was/lists"}