{"id":13625809,"url":"https://github.com/viewflow/django-fsm","last_synced_at":"2025-12-12T01:03:46.663Z","repository":{"id":39648624,"uuid":"695461","full_name":"viewflow/django-fsm","owner":"viewflow","description":"Django friendly finite state machine support","archived":true,"fork":false,"pushed_at":"2024-04-16T12:13:04.000Z","size":370,"stargazers_count":2342,"open_issues_count":1,"forks_count":313,"subscribers_count":46,"default_branch":"master","last_synced_at":"2025-09-20T07:04:47.504Z","etag":null,"topics":["django","finite-state-machine","fsm","python","state-machine","state-machine-diagram"],"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/viewflow.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-31T14:03:48.000Z","updated_at":"2025-09-13T09:38:37.000Z","dependencies_parsed_at":"2024-06-18T12:07:35.879Z","dependency_job_id":"00d30f0e-d564-463a-883a-f1ef970cc78c","html_url":"https://github.com/viewflow/django-fsm","commit_stats":{"total_commits":275,"total_committers":69,"mean_commits":"3.9855072463768115","dds":"0.41454545454545455","last_synced_commit":"d9effdee1c486556eea7627e5f5b6e23da7f34e9"},"previous_names":["kmmbvnr/django-fsm"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/viewflow/django-fsm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viewflow%2Fdjango-fsm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viewflow%2Fdjango-fsm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viewflow%2Fdjango-fsm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viewflow%2Fdjango-fsm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viewflow","download_url":"https://codeload.github.com/viewflow/django-fsm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viewflow%2Fdjango-fsm/sbom","scorecard":{"id":564090,"data":{"date":"2025-08-11","repo":{"name":"github.com/viewflow/django-fsm","commit":"83a3a080041b7599ec50f43fa8f3dd1e5af97d20"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"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":"Code-Review","score":4,"reason":"Found 12/30 approved changesets -- score normalized to 4","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":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"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":"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":"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":"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":"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 12 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":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2014-5 / GHSA-296w-6qhq-gf92","Warn: Project is vulnerable to: PYSEC-2014-6 / GHSA-625g-gx8c-xcmg","Warn: Project is vulnerable to: PYSEC-2015-8 / GHSA-6565-fg86-6jcx","Warn: Project is vulnerable to: PYSEC-2021-98 / GHSA-68w8-qjq3-2gfm","Warn: Project is vulnerable to: PYSEC-2015-7 / GHSA-6g95-x6cj-mg4v","Warn: Project is vulnerable to: PYSEC-2015-9 / GHSA-7fq8-4pv5-5w5c","Warn: Project is vulnerable to: PYSEC-2015-4 / GHSA-7qfw-j7hp-v45g","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: PYSEC-2014-2 / GHSA-89hj-xfx5-7q66","Warn: Project is vulnerable to: GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: PYSEC-2016-2 / GHSA-c8c8-9472-w52h","Warn: Project is vulnerable to: PYSEC-2016-3 / GHSA-crhm-qpjc-cm64","Warn: Project is vulnerable to: PYSEC-2014-4 / GHSA-f7cm-ccfp-3q4r","Warn: Project is vulnerable to: PYSEC-2016-16 / GHSA-fp6p-5xvw-m74f","Warn: Project is vulnerable to: PYSEC-2015-5 / GHSA-gv98-g628-m9x5","Warn: Project is vulnerable to: PYSEC-2015-20 / GHSA-h582-2pch-3xv3","Warn: Project is vulnerable to: GHSA-hmr4-m2h5-33qx","Warn: Project is vulnerable to: PYSEC-2015-18 / GHSA-j3j3-jrfh-cm2w","Warn: Project is vulnerable to: PYSEC-2015-6 / GHSA-jhjg-w2cp-5j44","Warn: Project is vulnerable to: PYSEC-2016-15 / GHSA-pw27-w7w4-9qc7","Warn: Project is vulnerable to: PYSEC-2015-10 / GHSA-q5qw-4364-5hhm","Warn: Project is vulnerable to: PYSEC-2014-19 / GHSA-q7q2-qf2q-rw3w","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: PYSEC-2014-1 / GHSA-rvq6-mrpv-m6rm","Warn: Project is vulnerable to: PYSEC-2014-7 / GHSA-rw75-m7gp-92m3","Warn: Project is vulnerable to: PYSEC-2019-16 / GHSA-vfq6-hq5r-27r6","Warn: Project is vulnerable to: PYSEC-2014-20 / GHSA-vq3h-3q7v-9prw","Warn: Project is vulnerable to: PYSEC-2014-3 / GHSA-wqjj-hx84-v449","Warn: Project is vulnerable to: PYSEC-2015-11","Warn: Project is vulnerable to: PYSEC-2016-18"],"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-20T14:28:32.525Z","repository_id":39648624,"created_at":"2025-08-20T14:28:32.526Z","updated_at":"2025-08-20T14:28:32.526Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277136130,"owners_count":25767069,"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-09-26T02:00:09.010Z","response_time":78,"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":["django","finite-state-machine","fsm","python","state-machine","state-machine-diagram"],"created_at":"2024-08-01T21:02:02.462Z","updated_at":"2025-09-27T00:30:46.852Z","avatar_url":"https://github.com/viewflow.png","language":"Python","funding_links":[],"categories":["Python","Packages 📦","Django Utilities","Libraries"],"sub_categories":["Validation","Python"],"readme":"Django friendly finite state machine support\n============================================\n\nDjango-fsm first came out in 2010 and had a big update in 2.0 release at 2014, making it incompatible with earlier versions. Now, ten years later at 2024, it's been updated to version 3.0 and renamed viewflow.fsm.\n\nThis new version has a different API that doesn't work with the old one but is better suited for today's needs.\n\nMigration guide:\n\nhttps://github.com/viewflow/viewflow/wiki/django%E2%80%90fsm-to-viewflow.fsm-Migration-Guide\n\n\nAbout\n=====\n\nFinite state machine workflows is the declarative way to describe consecutive\noperation through set of states and transitions between them.\n\n\n:mod:`viewflow.fsm` can help you manage rules and restrictions around moving\nfrom one state to another. The package could be used to get low level\ndb-independent fsm implementation, or to wrap existing database model, and\nimplement simple persistent workflow process with quickly bootstrapped UI.\n\nQuick start\n===========\n\nAll things are buit around :class:`viewflow.fsm.State`. It is the special class\nslot, that can take a value only from a specific `python enum`_ or `django\nenumeration type`_   and that value can't be changed with simple assignement.\n\n.. code::\n\n   from enum import Enum\n   from viewflow.fsm import State\n\n   class Stage(Enum):\n      NEW = 1\n      DONE = 2\n      HIDDEN = 3\n\n\n   class MyFlow(object):\n      state = State(Stage, default=Stage.NEW)\n\n      @state.transition(source=Stage.NEW, target=Stage.DONE)\n      def complete():\n          pass\n\n      @state.transition(source=State.ANY, target=Stage.HIDDEN)\n      def hide():\n          pass\n\n   flow = MyFlow()\n   flow.state == Stage.NEW  # True\n   flow.state = Stage.DONE  # Raises AttributeError\n\n   flow.complete()\n   flow.state == Stage.DONE  # True\n\n   flow.complete()  # Now raises TransitionNotAllowed\n\n\nDocumentation\n=============\n\nFull documentation available at https://docs.viewflow.io/fsm/index.html\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviewflow%2Fdjango-fsm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviewflow%2Fdjango-fsm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviewflow%2Fdjango-fsm/lists"}