🐳 Metadata Arweave Driver (Python).
Project description
metadata-driver-arweave
🐳 Arweave) driver for MetadataDB (Python). nevermined.io
Table of Contents
Features
Arweave driver for MetadataDB.
Quickstart
In the configuration we are going to specify the following parameters to
[metadatadb]
enabled=true # In order to enable or not the plugin
module=arweave # You can use one the plugins already created. Currently we have elasticsearch, mongodb and bigchaindb, arweave.
module.path= # You can specify the location of your custom plugin.
db.hostname=https://arweave.net # Address of your arweave instance.
db.port=443 # Port of your Elasticsearch rest API.
db.wallet_file_path=./arweave-key.json # Path to the arweave wallet key
Once you have defined this the only thing that you have to do it is use it:
metadatadb = MetadataDB(conf)
metadatadb.write({"value": "test"}, id)
Environment variables
When you want to instantiate an Metadatadb plugin you can provide the next environment variables:
- $CONFIG_PATH
- $MODULE
- $DB_HOSTNAME
- $DB_PORT
- $DB_INDEX
- $DB_WALLET_FILE_PATH
Testing
Automatic tests are setup via Github actions. Our test use pytest framework.
License
Copyright 2020 Keyko GmbH
This product includes software developed at
BigchainDB GmbH and Ocean Protocol (https://www.oceanprotocol.com/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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
Built Distribution
File details
Details for the file nevermined-metadata-driver-arweave-0.1.4.tar.gz
.
File metadata
- Download URL: nevermined-metadata-driver-arweave-0.1.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189da0ad60c0dd3aa36b00890b2171623c4c2851383d6dbabc5d2403037d31bd |
|
MD5 | 54a78fa52171407122e5bd017a162b9a |
|
BLAKE2b-256 | c9cd7651b405e65eefcf05ba7219d2fcc96bfef6c30fbcee3d2066ef3fad16c5 |
File details
Details for the file nevermined_metadata_driver_arweave-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: nevermined_metadata_driver_arweave-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49984ec0062dccca084b9a251be22da71180fd5c3dce537eb06473a73ab2b088 |
|
MD5 | 324be7fa5b54bd0fc4eb1ec568921874 |
|
BLAKE2b-256 | 19a1673b670a2add81900f3f646df75c1fd72bc1c78d6daad766450639262ee2 |