{"id":42964353,"url":"https://github.com/okfde/django-filingcabinet","last_synced_at":"2026-01-30T23:45:57.514Z","repository":{"id":32846936,"uuid":"144304373","full_name":"okfde/django-filingcabinet","owner":"okfde","description":"PDF document viewer Django app","archived":false,"fork":false,"pushed_at":"2026-01-29T13:45:03.000Z","size":9168,"stargazers_count":15,"open_issues_count":9,"forks_count":4,"subscribers_count":12,"default_branch":"main","last_synced_at":"2026-01-30T03:33:31.151Z","etag":null,"topics":["dokukratie","fragdenstaat"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/okfde.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-10T15:37:53.000Z","updated_at":"2026-01-29T13:45:24.000Z","dependencies_parsed_at":"2023-02-16T09:46:22.517Z","dependency_job_id":"b4dec97e-cabf-454f-a2c5-306b1b6a99ce","html_url":"https://github.com/okfde/django-filingcabinet","commit_stats":{"total_commits":638,"total_committers":6,"mean_commits":"106.33333333333333","dds":"0.13479623824451414","last_synced_commit":"d27b0a823e72cb0e854dd961fdb2cdfa8b417907"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/okfde/django-filingcabinet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okfde%2Fdjango-filingcabinet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okfde%2Fdjango-filingcabinet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okfde%2Fdjango-filingcabinet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okfde%2Fdjango-filingcabinet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okfde","download_url":"https://codeload.github.com/okfde/django-filingcabinet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okfde%2Fdjango-filingcabinet/sbom","scorecard":{"id":703983,"data":{"date":"2025-08-11","repo":{"name":"github.com/okfde/django-filingcabinet","commit":"e1713921d6d14e0abc8b81315545d7fb6f08c39f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"Code-Review","score":2,"reason":"Found 3/14 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":"Maintained","score":6,"reason":"8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6","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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"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/ci.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/okfde/django-filingcabinet/ci.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:12: pin your Docker image by updating python:3.10 to python:3.10@sha256:c69e40390fbbcbe98785d0bec0e93a9308850c6727edba2293bba4c79bdaffb5","Warn: pipCommand not pinned by hash: Dockerfile:24","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned","Info:   0 out of   2 containerImage 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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-wgrm-67xf-hhpq","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-92r3-m2mg-pj97","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"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-22T05:56:56.997Z","repository_id":32846936,"created_at":"2025-08-22T05:56:56.997Z","updated_at":"2025-08-22T05:56:56.997Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28923730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"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":["dokukratie","fragdenstaat"],"created_at":"2026-01-30T23:45:56.863Z","updated_at":"2026-01-30T23:45:57.508Z","avatar_url":"https://github.com/okfde.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-filingcabinet\n\nA Django app that manages documents with pages, page annotations and collections. [Optionally can use document feature annotation and prediction.](https://github.com/okfde/fcdocs-annotate)\n\n## Quickstart with Docker\n\nInstall [docker](https://docs.docker.com/get-docker/) and [docker compose plugin](https://docs.docker.com/compose/install/).\n\n```bash\n# Copy example environment and set a secret key\ncp .env.example .env\n# Create database file to mount into container\ntouch db.sqlite3\ndocker-compose run --rm web python manage.py migrate\n# Create a user account\ndocker-compose run --rm web python manage.py createsuperuser\n# Start all services (nginx, web, worker, broker)\ndocker-compose up\n# Nginx will be available at localhost:8080 by default\n```\n\n### Example User flow\n\nAccess the admin interface at: http://localhost:8080/admin/\n\nSet the correct site domain at: http://localhost:8080/admin/sites/site/\n\nUpload documents at: http://localhost:8080/admin/filingcabinet/document/\n\n## Integrate into a Django project\n\nSee the `src/fc_project` dir for an example of a Django project that uses `django-filingcabinet` and the feature prediction in `fcdocs-annotate`.\n\n## Management command to import directory of PDFs\n\n```bash\npython manage.py import_documents \u003cdirectory of *.pdf files\u003e\n```\n\nYou can provide extra metadata as a JSON file with the same name as the PDF file. E.g.:\n\n```json\n{\n  \"title\": \"\",\n  \"description\": \"\",\n  \"language\": \"\u003cISO language code\u003e\",\n  \"published_at\": \"\u003cISO date string\u003e\",\n  \"public\": true,\n  \"listed\": true,\n  \"properties\": {\n    \"custom\": \"properties\"\n  },\n  \"data\": {\n    \"filterable\": \"data\"\n  },\n  \"tags\": [\"Tag\"],\n  \"collection\": 123\n}\n```\n\n## Manual feature annotation\n\nYou can generate training data by annotating documents in your database.\nCreate features in the admin and then visit:\n\nhttp://localhost:8080/documents/features/\n\n## Feature prediction on documents\n\nUse a ZIP-export of a kedro feature model: https://github.com/okfde/fcdocs#packaging-the-models\n\nUpload a packaged feature model as .zip: http://localhost:8080/admin/fcdocs_annotation/feature/\n\nStart feature prediction tasks on documents via document admin action dropdown.\n\n## Prediction microservice\n\nYou can use the prediction API stand-alone as a microservice. Send JSON with a document URL and a callback URL to a feature prediction API endpoint:\n\n```bash\ncurl --request POST \\\n  --url http://localhost:8080/api/feature/1/predict/ \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"document_url\": \"http://example.com/document.pdf\",\n           \"callback_url\": \"http://example.com/callback/\"}'\n```\n\nThis will return a JSON document like this:\n\n```json\n{\n  \"callback_url\": \"http://example.com/callback/\",\n  \"document_url\": \"http://example.com/document.pdf\",\n  \"feature_id\": 1,\n  \"task_id\": \"93e84b09-78ca-4c27-97ce-90b23d13fae5\",\n  \"result\": null,\n  \"status\": \"pending\",\n  \"details\": \"\"\n}\n```\n\nThe callback URL will be POSTed a JSON document like this:\n\n```json\n{\n  \"callback_url\": \"http://example.com/callback/\",\n  \"document_url\": \"http://example.com/document.pdf\",\n  \"feature_id\": 1,\n  \"task_id\": \"93e84b09-78ca-4c27-97ce-90b23d13fae5\",\n  \"result\": false,\n  \"status\": \"complete\",\n  \"details\": \"\"\n}\n```\n\n## Tests\n\nIn this project we use [pytest](https://docs.pytest.org/en/7.2.x/) and [playwright](https://playwright.dev/python/) to test the application. To install all dependencies for the tests, use:\n\n```bash\npython3 -m venv fc-env\nsource  fc-env/bin/activate\npip install -e \".[test]\"\nplaywright install --with-deps chromium\npnpm install\npnpm run build\n```\n\nTo run the tests, use:\n\n```bash\npytest\n```\n\nor to run the tests and see the end-to-end tests running in the browser, use:\n\n```bash\npytest --headed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokfde%2Fdjango-filingcabinet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokfde%2Fdjango-filingcabinet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokfde%2Fdjango-filingcabinet/lists"}