Skip to main content

SurrealDantic

Overview

This repository hosts a cutting-edge web application framework designed to harness the full potential of SurrealDB. Our framework integrates robust REST API generation, real-time data streaming using Server-Sent Events (SSE), and advanced computational functionalities including vector embeddings and cosine similarity analysis. This innovative approach positions the framework as a pioneering solution in the realm of modern web applications, particularly for those requiring real-time data handling and complex data interactions.

Features

AutoAPI: Automates REST API creation for various data models, ensuring rapid development and deployment. Controller and Repository Pattern: Streamlines CRUD operations with SurrealDB, abstracting database complexities. Real-Time Data Streaming: Utilizes SSE for live data updates, ideal for applications requiring instant data refresh like dashboards. Vector Embedding Support: Advanced handling of vector embeddings with built-in cosine similarity calculations, catering to applications in machine learning and data analysis. Asynchronous Processing: Decorators async_cpu and async_io for efficient handling of CPU-bound and I/O-bound operations. Robust Error Handling: A robust decorator enhances functions with sophisticated error handling and retry mechanisms. Pydantic Integration: Leverages Pydantic for robust data validation and serialization, ensuring data integrity and security.

Getting Started

Prerequisites

  • Python 3.8+
  • SurrealDB docker pull surrealdb/surrealdb:latest

Installation

pip install surrealdantic

Usage

from surrealdantic import AutoAPI, Embedding

# Initialize AutoAPI
api = AutoAPI()

# add the Embedding model
api.add(Embedding,Embedding)

# run the API

```bash
uvicorn main:api --reload

Metadata

Release files for surrealdantic 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for surrealdantic 0.0.1
File Size Uploaded Provenance
surrealdantic-0.0.1.tar.gz 11.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for surrealdantic 0.0.1
File Interpreter ABI Platform
surrealdantic-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / surrealdantic-0.0.1.tar.gz

Download URL surrealdantic-0.0.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aecec57d67bf469f91c2be667e37e0a9f19ddca03377bf3ebd1013a0316d7008
BLAKE2b-256 checksum
How to use checksums
27f0d532cc8783136643d24dd4b850ca7dc5ab944bb69254af0ec9f8549b803e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/22.6.0

Release files / surrealdantic-0.0.1-py3-none-any.whl

Download URL surrealdantic-0.0.1-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce448d60d40863c5c7db72ad3c8c554b9bcde66d93123801e0d8c2b4842377c0
BLAKE2b-256 checksum
How to use checksums
8cf5e22895a96e00cd21ff59241f1ed8f00a21fde3ebbc0d9c02fef545ea65e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/22.6.0

Security for surrealdantic 0.0.1

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

0.0.1 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