Skip to main content


Connect any data source, combine them in real-time and instantly get low-latency gRPC and REST APIs.
⚡ All with just a simple configuration! ⚡️


CI Coverage Status Docs Join on Discord License


Overview

This repository is a python wrapper over gRPC APIs that are automatically when you run Dozer.

Installation

poetry add git+ssh://git@github.com:getdozer/dozer-python.git#main

# or 
pip install pydozer

Dependencies

Querying

Intialize Users Endpoint

api_client = ApiClient("users")

api_client.query()

# Query using $limit, $order_by, $filter
api_client.query({"$limit": 1})

#Count
api_client.count()

gRPC methods

api_client.describe()

#Health
api_client.health()

Ingestion

Initialize Ingestion Client

from dozer.ingest import IngestClient
ingestion_client = IngestClient()

Ingest a data frame

df = pl.read_parquet('tests/trips_small.parquet')
ingestion_client.ingest_df('trips', df, seq_no=1)

Use Arrow Format for ingestion

ingestion_client.ingest_df_arrow('trips', df, seq_no=1)

Ingest raw records

from pydozer.ingest_pb2 import IngestRequest
from pydozer.types_pb2 import Record, Value

user = IngestRequest(
    schema_name="users",
    typ=0,
    old=None,
    new=[Value(int_value=1), Value(string_value="vivek")],
    seq_no=1
)
ingestor.ingest(user)

Ingest in Arrow format

Check out our Docs for more information.

Testing

pytest

Contributing

Please refer to Contributing for more details.

Metadata

Release files for pydozer 0.2.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 pydozer 0.2.1
File Size Uploaded Provenance Actions
pydozer-0.2.1.tar.gz 16.8 kB Without provenance Details for pydozer-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.7 kB

Release files / pydozer-0.2.1.tar.gz

Download URL pydozer-0.2.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
563fa20b11b71981cec52f1860354071820fb06fd222f96c2ee03180fe00818b
BLAKE2b-256 checksum
How to use checksums
450e1583d9c12aa6ea9863f29ff7ce6151875b9561b6459ea77500ab48222d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.6 Darwin/23.0.0

Release files / pydozer-0.2.1-py3-none-any.whl

Download URL pydozer-0.2.1-py3-none-any.whl
Size 22.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3e5560b8ebfcbf3aa23b27095cfc031ad7f77eb7bf19c1ffe210e1a0e714c9b
BLAKE2b-256 checksum
How to use checksums
8891d412e73ed25c82c876aa3fe8a9dec00528ddd7fa3fb58532320b5378e180
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.6 Darwin/23.0.0

Security for pydozer 0.2.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.

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