semvec/pypi-packages huggingface dataset:
next-gen-db-sdk 0.1.1
Python SDK to interact with next-gen-db
Requires Python: >=3.6

# NextGenDB SDK

Usage Example

```py

from next_gen_db_sdk import NextGenDBClient, NextGenDBError, NotFoundError

# Initialize the client with the base URL of the next-gen-db server
client = NextGenDBClient(base_url="http://localhost:8047")

# --- Document operations ---
try:
    # Create a document
    client.create_document("user_1", {"name": "John Doe", "age": 30})
    
    # Retrieve the document
    document = client.get_document("user_1")
    print("Document retrieved:", document)

    # Update the document
    client.update_document("user_1", {"name": "John Doe", "age": 31})
    
    # Delete the document
    client.delete_document("user_1")

except NotFoundError as e:
    print(f"Error: {e}")
except NextGenDBError as e:
    print(f"General error: {e}")

# --- Graph operations ---
try:
    # Add a node
    client.add_node("person_1", {"name": "Alice", "age": 25})
    
    # Add an edge (relationship)
    client.add_edge("person_1", "person_2", "friends")
    
    # Retrieve the node
    node = client.get_node("person_1")
    print("Node retrieved:", node)
    
    # Retrieve the edge
    edge = client.get_edge("person_1", "person_2")
    print("Edge retrieved:", edge)

except NextGenDBError as e:
    print(f"Graph error: {e}")

```
postgresfixture 0.5.0
A fixture for creating PostgreSQL clusters and databases, and tearing them down again, intended for use during development and testing.

.. -*- mode: rst -*-

***************
postgresfixture
***************

A Python fixture for creating PostgreSQL clusters and databases, and
tearing them down again, intended for use during development and
testing.

For more information see the `Launchpad project page`_.

.. _Launchpad project page: https://launchpad.net/postgresfixture


Getting started
===============

Use like any other fixture::

  from contextlib import closing
  from postgresfixture import ClusterFixture

  def test_something(self):
      cluster = self.useFixture(ClusterFixture("db"))
      cluster.createdb("example")
      with closing(cluster.connect("example")) as conn:
          ...
      cluster.dropdb("example")  # Optional.

This will create a new cluster, create a database called "example",
then tear it all down at the end; nothing will remain on disk. If you
want the cluster and its databases to remain on disk, pass
``preserve=True`` to the ``ClusterFixture`` constructor.


From the command line
=====================

Once this package is installed, you'll have a ``postgresfixture``
script. Alternatively you can use ``python -m postgresfixture`` to
achieve the same thing. Use ``--help`` to discover the options
available to you.