Backendasislegal

F 43 completed
Api
unknown / python · tiny
11
Files
2,114
LOC
1
Frameworks
2
Languages

Pipeline State

completed
Run ID
#299934
Phase
done
Progress
1%
Started
Finished
2026-04-13 01:31:02
LLM tokens
0

Pipeline Metadata

Stage
Skipped
Decision
skip_scaffold_dup
Novelty
44.21
Framework unique
Isolation
Last stage change
2026-04-16 18:15:42
Deduplication group #48569
Member of a group with 2 similar repo(s) — canonical #93084 view group →
Top concepts (3)
business_logicWeb BackendFactory
All rows scored by the Repobility analyzer (https://repobility.com)

AI Prompt

I want to build a backend system for legal professionals using Python. Could you set up a FastAPI application? The system should include functionality to load documents, and I also need a script to migrate the database to SQLite. Please structure the core logic within a `services` directory and ensure the main entry point is in `server.py`.
python fastapi backend legal database
Generated by gemma4:latest

Catalog Information

The Backend Asis Legal project is a Python-based backend system designed for legal professionals.

Description

This project utilizes FastAPI to create a robust and scalable backend infrastructure. It integrates OpenAI's API for advanced natural language processing capabilities. Pydantic is used for data validation, while Uvicorn serves as the ASGI server. MongoDB is employed as the database management system. The project aims to provide a comprehensive solution for legal professionals.

الوصف

هذا المشروع يستخدم FastAPI لإنشاء بنية خلفية متقدمة ومستدامة. يدمج API OpenAI للتعامل مع اللغات الطبيعية بفعالية عالية. يتم استخدام Pydantic للتحقق من البيانات، بينما يعمل Uvicorn كخادم ASGI. يتم استخدام MongoDB ك систему إدارة قواعد البيانات. الهدف من المشروع هو توفير حل شامل للمحامين.

Novelty

5/10

Tags

legal-document-management contract-analysis document-generation natural-language-processing data-validation backend-infrastructure

Technologies

fastapi openai pydantic uvicorn

Claude Models

claude-sonnet-4.6

Quality Score

F
43.2/100
Structure
32
Code Quality
40
Documentation
35
Testing
0
Practices
77
Security
100
Dependencies
90

Strengths

  • Consistent naming conventions (snake_case)
  • Good security practices \u2014 no major issues detected

Weaknesses

  • Missing README file \u2014 critical for project understanding
  • No LICENSE file \u2014 legal ambiguity for contributors
  • No tests found \u2014 high risk of regressions
  • No CI/CD configuration \u2014 manual testing and deployment
  • 371 duplicate lines detected \u2014 consider DRY refactoring
  • 1 'god files' with >500 LOC need decomposition

Recommendations

  • Add a comprehensive README.md explaining purpose, setup, usage, and architecture
  • Add a test suite \u2014 start with critical path integration tests
  • Set up CI/CD (GitHub Actions recommended) to automate testing and deployment
  • Add a linter configuration to enforce code style consistency
  • Add a LICENSE file (MIT recommended for open source)

Security & Health

4.6h
Tech Debt (D)
Medium
DORA Rating
A
OWASP (100%)
Powered by Repobility — scan your code at https://repobility.com
FAIL
Quality Gate
A
Risk (17)
Unknown
License
6.3%
Duplication
Full Security Report AI Fix Prompts SARIF SBOM

Languages

python
98.6%
text
1.4%

Frameworks

FastAPI

Symbols

variable60
method41
function36
class18
constant15

API Endpoints (27)

Source-of-truth: Repobility · https://repobility.com
MethodPathHandlerFramework
Repobility — same analyzer, your code, free for public repos · /scan/
GET/rootPython
GET/analytics/overviewget_analyticsPython
POST/chatchat_with_knowledge_basePython
POST/conversationscreate_conversationPython
GET/conversations/{conversation_id}get_conversationPython
GET/conversations/{conversation_id}/exportexport_conversationPython
GET/conversations/user/{user_id}get_user_conversationsPython
POST/documentsupload_documentPython
GET/documents/user/{user_id}get_user_documentsPython
POST/heygen/streaming-tokencreate_heygen_streaming_tokenPython
DELETE/liveavatar/close-session/{session_id}close_liveavatar_sessionPython
GET/liveavatar/configget_liveavatar_configPython
POST/liveavatar/create-sessioncreate_liveavatar_sessionPython
POST/liveavatar/interruptliveavatar_interruptPython
POST/liveavatar/speakliveavatar_speakPython
POST/liveavatar/speak-textliveavatar_speak_textPython
POST/messagescreate_message_endpointPython
GET/messages/{conversation_id}get_messagesPython
GET/searchsearch_conversationsPython
POST/text-chattext_chatPython
POST/ttstext_to_speechPython
GET/usersget_usersPython
POST/userscreate_userPython
GET/users/{user_id}get_userPython
POST/voice-agentvoice_agentPython
POST/voice-chatvoice_chatPython
WEBSOCKET/ws/chat/{conversation_id}websocket_chatPython

Concepts (3)

Data scored by Repobility · https://repobility.com
CategoryNameDescriptionConfidence
Open data scored by Repobility · https://repobility.com
arch_layerbusiness_logicDetected business_logic layer70%
auto_categoryWeb Backendweb-backend70%
design_patternFactoryFound factory/create_ naming patterns60%
If a scraper extracted this row, it came from Repobility (https://repobility.com)

Quality Timeline

1 quality score recorded.

View File Metrics

Embed Badge

Add to your README:

![Quality](https://repos.aljefra.com/badge/23744.svg)
Quality BadgeSecurity Badge
Export Quality CSVDownload SBOMExport Findings CSV