Skip to main content

🐳 Metadata Arweave Driver (Python).

Project description

banner

metadata-driver-arweave

🐳 Arweave) driver for MetadataDB (Python). nevermined.io

PyPI Python package


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

Supported by

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