Skip to main content

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 connections
  • process_document(file_path, doc_id, metadata, **kwargs) - Process a document
  • extract_metadata(document, raw_metadata) - Extract domain-specific metadata
  • create_chunks(document, doc_id, metadata) - Create chunks with domain-specific logic
  • embed_text(texts) - Create embeddings
  • create(file_path, metadata, **kwargs) - Create/ingest a new document
  • update(doc_id, updates, **kwargs) - Update an existing document
  • delete(doc_id, **kwargs) - Delete a document
  • init_databases(tenant_id) - Initialize databases for a new tenant
  • cleanup_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)

Source distribution for AbstractDatabaseService 1.0.0
File Size Uploaded Provenance
abstractdatabaseservice-1.0.0.tar.gz 2.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for AbstractDatabaseService 1.0.0
File Interpreter ABI Platform
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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page