{"id":28136116,"url":"https://github.com/cofiem/logomachy","last_synced_at":"2025-08-21T15:08:08.393Z","repository":{"id":14753492,"uuid":"17474720","full_name":"cofiem/logomachy","owner":"cofiem","description":"A simple application for indexing, analysing, and comparing EULA, ToS, and other documents.","archived":false,"fork":false,"pushed_at":"2022-07-15T20:30:17.000Z","size":68,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-08-13T13:54:27.467Z","etag":null,"topics":["django-application","eula","natural-language","text","text-analysis","tos","words"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"obviousjim/ofxBox2d","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cofiem.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":"2014-03-06T10:54:28.000Z","updated_at":"2018-11-01T10:27:27.000Z","dependencies_parsed_at":"2022-09-03T13:53:07.950Z","dependency_job_id":null,"html_url":"https://github.com/cofiem/logomachy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cofiem/logomachy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofiem%2Flogomachy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofiem%2Flogomachy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofiem%2Flogomachy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofiem%2Flogomachy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cofiem","download_url":"https://codeload.github.com/cofiem/logomachy/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cofiem%2Flogomachy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271499859,"owners_count":24770369,"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-08-21T02:00:08.990Z","response_time":74,"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-application","eula","natural-language","text","text-analysis","tos","words"],"created_at":"2025-05-14T15:32:37.136Z","updated_at":"2025-08-21T15:08:08.336Z","avatar_url":"https://github.com/cofiem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Legal Accord and Unravel\n========================\n\nA Django application for indexing, analysing, and comparing EULA, ToS, and other documents.\n\n\n    pip install --upgrade Django psycopg2-binary typing docutils celery django-celery-beat django-celery-results spacy\n    pip install --upgrade django-extensions django-debug-toolbar mypy typed-ast deepdiff\n    \n\nDatabase setup\n--------------\n\nRequires PostgreSQL, with a server version \u003e= 9.4.\n\n    $ sudo apt update \u0026\u0026 sudo apt install postgresql postgresql-contrib\n\nTo use postgresql for development:\n\n    $ sudo -u postgres createuser --createdb --pwprompt unravel_db\n    $ sudo -u postgres createdb --owner=unravel_dev unravel_db\n    $ sudo -u postgres psql\n    # GRANT ALL PRIVILEGES ON DATABASE unravel_db TO unravel_dev;\n    # CREATE EXTENSION IF NOT EXISTS pg_trgm;\n    \nTo drop the database:\n\n    $ sudo -u postgres dropdb unravel_db\n    \nTo get a postgres command line:\n\n    $ sudo -u postgres psql\n\nWebsite Setup\n-------------\n\nCreate a superuser: \n\n     $ ./manage.py createsuperuser\n\n\nPages / Views\n-----\n\n- Document - Latest (or other versions) with results: \n    - GET - list - /documents\n    - POST - create - /documents\n    - PUT/PATCH - update (new version) - /documents/:ID:\n    - GET - show latest version - /documents/:ID:\n    - GET - show content only - /documents/:ID:/content\n    - GET - show diff with prev version - /documents/:ID:/diff\n    - GET - show diff with prev version - /documents/:ID:/diff/:VERSION:\n    - GET - show particular version - /documents/:ID:/versions/:VERSION:\n    - GET - show content for version - /documents/:ID:/versions/:VERSION:/content\n    - GET - show diff with prev version for version - /documents/:ID:/versions/:VERSION:/diff\n    - GET - show diff with specified version for version - /documents/:ID:/versions/:VERSION:/diff/:VERSION:\n    \n- Tag - a single tag, with links to documents that have that tag\n    - GET - list - /tags/\n    - POST - create - /tags/\n    - PUT/PATCH - update - /tags/:SLUG:\n    - PUT/PATCH - update - /tags/:ID:\n    - GET - show tag and documents - /tags/:SLUG:\n    - GET - show tag and documents - /tags/:ID:\n    \n- Result - with links to documents used to create the result\n    - GET - list - /annotations\n    - GET - show with documents - /annotations/:ID:\n\n\nNotes\n-----\n\nUse LogEntry to record changes: \n\n- https://stackoverflow.com/questions/7905106/adding-a-log-entry-for-an-action-by-a-user-in-a-django-app#7905253\n- https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#logentry-objects\n\n\nCreate first migration without models?\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofiem%2Flogomachy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcofiem%2Flogomachy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcofiem%2Flogomachy/lists"}