Skip to main content

DataPlug

A simple graph data manager, in other words: on the fly schemaless multi-model data client with timeseries wannabees.

Inspired by InfluxDB, ElasticSearch and other cool stuffs that do not cover a little thing: Graphization !

Main requirements for devs

Dataplug supports the last updates of Arango and its python driver.

Installation

pip install dataplug

Quick start

import dataplug

server_config = { "host":"localhost",
                  "port": 7144,
                  "username": "root",
                  "password":"autoGeneRatEd" }

# Creating a node, locally
A = dataplug.Node(domain="db1",
                  collection="collection1",
                  data={"name":"NODE_A", "value":3.14},
                  client_config=server_config)

# Saving it into database
if A.upsave():
    print(A.key())

# Creating another node
B = dataplug.Node(domain="db1",
                  collection="collection2",
                  data={"name":"NODE_B", "value":1.41},
                  client_config=server_config)

# Saving it into database
B.upsave()

# Creating an edge between these nodes
edgeAB = dataplug.Edge("db1", A, B)

# Adding information to the edge
edgeAB.add_field("strength", "high")

# Saving it into database
edgeAB.upsave()

Update your node data

  • That replaces data totally with newdata dictionnary:
   node.data = newdata
  • That searches of similar node in the database and updates/adds data:
   node.sync()
  • To append/update data with newdata use:
   node.data.update(newdata)

Testing

pytest -v tests

Release files for dataplug 3.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for dataplug 3.0.2
File Interpreter ABI Platform
dataplug-3.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / dataplug-3.0.2-py2.py3-none-any.whl

Download URL dataplug-3.0.2-py2.py3-none-any.whl
Size 13.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
47c5998bc50d12d4700c9de397ddae96c2252e1017492191430284b167cff665
BLAKE2b-256 checksum
How to use checksums
564a8e3cf6590afca4e4712290843353c03a00a48e156c72da41a535904c4e93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

3.0.2 This release

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

0.1.0

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

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