AbstractDatabaseService
Abstract base class for domain-specific database services. This package provides the foundation for building database services tailored to specific domains (Legal, Finance, etc.).
Installation
# From git
pip install git+https://github.com/NlpFisTeam/AbstractDBService.git
# From local
pip install -e ./modules/AbstractDBService
Usage
from AbstractDBService import AbstractDBService, ProcessingResult
class LegalDocumentService(AbstractDBService):
"""Legal document database service."""
def _init_connections(self, **kwargs):
# Initialize legal-specific connections
self.arango_connector = kwargs.get("arango_connector")
def process_document(self, file_path, doc_id, metadata, **kwargs):
# Legal-specific document processing
pass
# ... implement other abstract methods
Abstract Methods
All inheriting classes must implement:
_init_connections(**kwargs)- Initialize domain-specific connectionsprocess_document(file_path, doc_id, metadata, **kwargs)- Process a documentextract_metadata(document, raw_metadata)- Extract domain-specific metadatacreate_chunks(document, doc_id, metadata)- Create chunks with domain-specific logicembed_text(texts)- Create embeddingscreate(file_path, metadata, **kwargs)- Create/ingest a new documentupdate(doc_id, updates, **kwargs)- Update an existing documentdelete(doc_id, **kwargs)- Delete a documentinit_databases(tenant_id)- Initialize databases for a new tenantcleanup_databases(tenant_id)- Cleanup databases for a tenant
Metadata
Release files for AbstractDatabaseService 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| abstractdatabaseservice-1.0.0.tar.gz | 2.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abstractdatabaseservice-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 kB
Release files / abstractdatabaseservice-1.0.0.tar.gz
| Download URL | abstractdatabaseservice-1.0.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e9e668d1a831afe224a9ebd96ac6d6cfeed8813adb4d72c828dcacdb9b05456
|
|
BLAKE2b-256 checksum How to use checksums |
c401f9c10664826a6fa26b960972f57f81845b1a1752280f0090e6ce3f5c7c84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / abstractdatabaseservice-1.0.0-py3-none-any.whl
| Download URL | abstractdatabaseservice-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7e78414db97c4d084fbeb5217b1d59186c0875b8e8932d6c1a28b885d7cea23
|
|
BLAKE2b-256 checksum How to use checksums |
f13ebb5a95a067c234311563c0a8e26a98bad7e85d572c81b6cc342c6de0cbeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for AbstractDatabaseService 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.