Skip to main content

Python client for RavenDB NoSQL Database

Reason this release was yanked:

This release is corrupted - it lacks Ai Agents `operations` library, which is exposed at the top-level of the library -> `import ravendb` causes error

Project description

Official Python client for RavenDB NoSQL Database

Installation

Install from PyPi, as ravendb.

pip install ravendb

Introduction

Python client API (v7.0) for RavenDB , a NoSQL document database.

Type-hinted entire project and API results - using the API is now much more comfortable with IntelliSense

Releases

What's new?

5.2.5+
  • Changes available in the releases section.
5.2.4
  • Bulk insert dependencies bugfix
5.2.3
  • Counters
  • Counters indexes
5.2.2
5.2.1
  • Bugfixes - Serialization while loading/querying (here)
5.2.0
  • Subscriptions

    • Document streams
    • Secured subscriptions
  • Querying

    • Major bugfixes
    • Spatial querying and indexing
    • Highlighting fixes
    • Custom document parsers & loaders
5.2.0b3
  • New features

    • Conditional Load
    • SelectFields & Facets
    • Projections
    • MoreLikeThis
    • Suggestions
  • Improvements

    • Compare exchange
    • Querying
    • DocumentConventions
    • Patching
    • Spatial queries
    • Aggregations
5.2.0b2
  • Lazy Operations

    • Lazy loading
    • Lazy querying
    • Lazy compare exchange operations
  • Structure

    • Important classes are now available to import from the top level ravendb module

...and many bugfixes


5.2.0b1
  • Querying

    • Simpler, well type hinted querying
    • Group by, aggregations
    • Spatial querying
    • Boost, fuzzy, proximity
    • Subclauses support
  • Static Indexes

    • Store fields, index fields, pick analyzers & more using AbstractIndexCreationTask
    • Full indexes CRUD
    • Index related commands (priority, erros, start/stop, pause, lock)
    • Additional assemblies, map-reduce, index query with results "of_type"
  • CRUD

    • Type hints for results and includes
    • Support for dataclasses

  • Attachments

    • New attachments API
    • Better type hints
  • HTTPS

    • Support for https connection
    • Certificates CRUD operations

  • Lazy load

    • New feature
  • Cluster Transactions, Compare Exchange

    • New feature

Coming soon, work in progress


Demo

Working with secured server
from ravendb import DocumentStore

URLS = ["https://raven.server.url"]
DB_NAME = "SecuredDemo"
CERT_PATH = "path\\to\\cert.pem"


class User:
    def __init__(self, name: str, tag: str):
        self.name = name
        self.tag = tag


store = DocumentStore(URLS, DB_NAME)
store.certificate_pem_path = CERT_PATH
store.initialize()
user = User("Gracjan", "Admin")

with store.open_session() as session:
    session.store(user, "users/1")
    session.save_changes()

with store.open_session() as session:
    user = session.load("users/1", User)
    assert user.name == "Gracjan"
    assert user.tag == "Admin"

RavenDB Documentation

https://ravendb.net/docs/article-page/5.3/python


GitHub

https://github.com/ravendb/ravendb-python-client


Bug Tracker

http://issues.hibernatingrhinos.com/issues/RDBC

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ravendb-7.1.2.tar.gz (277.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ravendb-7.1.2-py3-none-any.whl (346.1 kB view details)

Uploaded Python 3

File details

Details for the file ravendb-7.1.2.tar.gz.

File metadata

  • Download URL: ravendb-7.1.2.tar.gz
  • Upload date:
  • Size: 277.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for ravendb-7.1.2.tar.gz
Algorithm Hash digest
SHA256 611c93f08a25e17d47126d88f867f710cf8ec69d0d8888d924b378be6aa74c51
MD5 7d44890ec726c48362812f09d201fc92
BLAKE2b-256 27a41e5df4c3e7dcbc6d3285e8cb3c1efecf65f369f24345d7069838633807cd

See more details on using hashes here.

File details

Details for the file ravendb-7.1.2-py3-none-any.whl.

File metadata

  • Download URL: ravendb-7.1.2-py3-none-any.whl
  • Upload date:
  • Size: 346.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for ravendb-7.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c347c7ed46fe888a3ea46d1983aea8194119849e2353ebd246f16ebe1f677cb9
MD5 e5dea5537dbf02e9e2fd11e6d11a1c5c
BLAKE2b-256 8bd316e2d3db1d96b6c15d181881085a54fc2a79bb9afeff2147420bab562cea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page