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

File details

Details for the file nevermined-metadata-driver-arweave-0.1.4.tar.gz.

File metadata

File hashes

Hashes for nevermined-metadata-driver-arweave-0.1.4.tar.gz
Algorithm Hash digest
SHA256 189da0ad60c0dd3aa36b00890b2171623c4c2851383d6dbabc5d2403037d31bd
MD5 54a78fa52171407122e5bd017a162b9a
BLAKE2b-256 c9cd7651b405e65eefcf05ba7219d2fcc96bfef6c30fbcee3d2066ef3fad16c5

See more details on using hashes here.

File details

Details for the file nevermined_metadata_driver_arweave-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nevermined_metadata_driver_arweave-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 49984ec0062dccca084b9a251be22da71180fd5c3dce537eb06473a73ab2b088
MD5 324be7fa5b54bd0fc4eb1ec568921874
BLAKE2b-256 19a1673b670a2add81900f3f646df75c1fd72bc1c78d6daad766450639262ee2

See more details on using hashes here.

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