Giter Site home page Giter Site logo

cert-core's Introduction

Build Status PyPI version

cert-core

This python library contains common Blockcerts models and accessors used by other Blockcerts python libraries.

Subpackages:

cert-model

Parses different versions of Blockcerts JSON files into a common Certificate model.

cert-store

Blockchain certificate storage. This is used as a library in the cert-viewer project.

The certificate storage interface is simplekv. The default configurations use the FilesystemStore, which is highly recommended if you are getting started. This makes it easier to issue, copy, and view your Blockchain Certificates.

Certificate Storage Configuration

The certificate storage location can be modified with the following configuration entries in your conf.ini file:

  • cert_store_type: which key-value backing store to use. Current supported values are:
    • simplekv_fs: (Default) file system store
    • simplekv_gridfs: (Advanced) gridfs store
  • cert_store_path: file system path if using simplekv_fs
  • mongodb_uri: mongo db uri (including db name) if using simplekv_gridfs

Example File System config:

cert_store_type = simplekv_fs
cert_store_path = ./cert_data

Example GridFS config (Advanced):

cert_store_type = simplekv_gridfs
mongodb_uri = mongodb://localhost:27017/test

Legacy options

Warning

Most users should ignore these instructions, which are only included as a temporary bridge for earlier users of blockcerts. We recommend migrating to the latest version of Blockcerts.

V1 Aware Certificate Store

Warning: avoid this option unless you are sure you need it. Earlier versions of the Blockchain Certificate required a separate storage of the certificate transaction id. That was managed in a certificates mongo db table.

The --v1_aware flag allows support for these certificates.

Running the python code locally

  1. Ensure you have an python environment. Recommendations

  2. Git clone the repository and change to the directory

git clone https://github.com/blockchain-certificates/cert-core.git && cd cert-core
  1. Run cert-core setup
pip install .

Unit tests

This project uses tox to validate against several python environments.

  1. Ensure you have an python environment. Recommendations

  2. Run tests

    ./run_tests.sh
    

Publishing package to pypi

Contact

Contact us at the Blockcerts community forum.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.