🐳 Ocean DB BigchainDB driver (Python).
Project description
|banner|
.. raw:: html
<h1 align="center">
oceandb-bigchaindb-driver
.. raw:: html
</h1>
..
🐳 Ocean DB `BigchainDB <https://www.bigchaindb.com/>`_ driver (Python).
.. |banner| image:: doc/img/repo-banner@2x.png
:target: https://oceanprotocol.com
.. image:: https://img.shields.io/pypi/v/oceandb-bigchaindb-driver.svg
:target: https://pypi.python.org/pypi/oceandb-bigchaindb-driver
.. image:: https://travis-ci.com/oceanprotocol/oceandb-bigchaindb-driver.svg?token=pA8zcB6SCxKW5MHpqs6L&branch=master
:target: https://travis-ci.com/oceanprotocol/oceandb-bigchaindb-driver
.. image:: https://readthedocs.org/projects/oceandb-plugin-system/badge/?version=latest
:target: https://oceandb-plugin-system.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
BigchainDB driver to connect implementing OceanDB.
* Free software: Apache Software License 2.0
* Documentation: https://oceandb-plugin-system.readthedocs.io.
How to use it
-------------
First of all we have to specify where is allocated our config.
To do that we have to pass the following argument:
.. code-block:: python
--config=/path/of/my/config
..
If you do not provide a configuration path, by default the config is expected in the config folder.
In the configuration we are going to specify the following parameters to
.. code-block:: python
[oceandb]
enabled=true # In order to enable or not the plugin
module=bigchaindb # You can use one the plugins already created. Currently we have mongodb and bigchaindb.
module.path= # You can specify the location of your custom plugin.
db.hostname=localhost # Address of your bigchaindb nodes.
db.port=9985 # Port of your bigchaindb database.
# Bigchaindb specific config:
secret= # A secret that serves as a seed.
db.namespace=namespace # Namespace that you are going to use in bigchaindb
db.app_id= # App id of your bigchaindb application.
db.app_key= # App key of your bigchaindb application.
..
Once you have defined this the only thing that you have to do it is use it:
.. code-block:: python
oceandb = OceanDb(confPath)
oceandb.write({"value": "test"})
..
About BigchainDB plugin implementation
--------------------------------------
CRAB is the CRUD model in databases applied to blockchains:
+--------------+----------------+
| Database | Blockchain |
+==============+================+
| **C**\ reate | **C**\ reate |
+--------------+----------------+
| **R**\ ead | **R**\ etrieve |
+--------------+----------------+
| **U**\ pdate | **A**\ ppend |
+--------------+----------------+
| **D**\ elete | **B**\ urn |
+--------------+----------------+
You can find `here <https://blog.bigchaindb.com/crab-create-retrieve-append-burn-b9f6d111f460>`_ a link talking about the CRAB model.
=======
History
=======
0.1.0 (2018-05-31)
------------------
* First release on PyPI.
.. raw:: html
<h1 align="center">
oceandb-bigchaindb-driver
.. raw:: html
</h1>
..
🐳 Ocean DB `BigchainDB <https://www.bigchaindb.com/>`_ driver (Python).
.. |banner| image:: doc/img/repo-banner@2x.png
:target: https://oceanprotocol.com
.. image:: https://img.shields.io/pypi/v/oceandb-bigchaindb-driver.svg
:target: https://pypi.python.org/pypi/oceandb-bigchaindb-driver
.. image:: https://travis-ci.com/oceanprotocol/oceandb-bigchaindb-driver.svg?token=pA8zcB6SCxKW5MHpqs6L&branch=master
:target: https://travis-ci.com/oceanprotocol/oceandb-bigchaindb-driver
.. image:: https://readthedocs.org/projects/oceandb-plugin-system/badge/?version=latest
:target: https://oceandb-plugin-system.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
BigchainDB driver to connect implementing OceanDB.
* Free software: Apache Software License 2.0
* Documentation: https://oceandb-plugin-system.readthedocs.io.
How to use it
-------------
First of all we have to specify where is allocated our config.
To do that we have to pass the following argument:
.. code-block:: python
--config=/path/of/my/config
..
If you do not provide a configuration path, by default the config is expected in the config folder.
In the configuration we are going to specify the following parameters to
.. code-block:: python
[oceandb]
enabled=true # In order to enable or not the plugin
module=bigchaindb # You can use one the plugins already created. Currently we have mongodb and bigchaindb.
module.path= # You can specify the location of your custom plugin.
db.hostname=localhost # Address of your bigchaindb nodes.
db.port=9985 # Port of your bigchaindb database.
# Bigchaindb specific config:
secret= # A secret that serves as a seed.
db.namespace=namespace # Namespace that you are going to use in bigchaindb
db.app_id= # App id of your bigchaindb application.
db.app_key= # App key of your bigchaindb application.
..
Once you have defined this the only thing that you have to do it is use it:
.. code-block:: python
oceandb = OceanDb(confPath)
oceandb.write({"value": "test"})
..
About BigchainDB plugin implementation
--------------------------------------
CRAB is the CRUD model in databases applied to blockchains:
+--------------+----------------+
| Database | Blockchain |
+==============+================+
| **C**\ reate | **C**\ reate |
+--------------+----------------+
| **R**\ ead | **R**\ etrieve |
+--------------+----------------+
| **U**\ pdate | **A**\ ppend |
+--------------+----------------+
| **D**\ elete | **B**\ urn |
+--------------+----------------+
You can find `here <https://blog.bigchaindb.com/crab-create-retrieve-append-burn-b9f6d111f460>`_ a link talking about the CRAB model.
=======
History
=======
0.1.0 (2018-05-31)
------------------
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for oceandb_bigchaindb_driver-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d62e5037a37db73d036aa28527d9fcad8db1342dca964a10205adce6cbaeb837 |
|
MD5 | 2987054be240e771e7f146a297ad4263 |
|
BLAKE2b-256 | 584d573e6370191b5178eb6a41b328a9313726d0ebd13c4fcf618b3f160af1ac |
Close
Hashes for oceandb_bigchaindb_driver-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32c2fe53bad1a1b1bde6e4168574df260a15404950cc98df23f92beb2b9fbb2 |
|
MD5 | b80b5213f65931411bbf2848f1f9b8ea |
|
BLAKE2b-256 | bfb9cb517da7ea39cbb8a11821fbaecb7e5048a7a0ee65b09ff09919d117e0e9 |