Python
Installation
DIDKit is available on PyPI.
asyncio
is required, meaning you will need Python 3.7 or above.
You can install it globally with:
For further information you may refer to the repository.
Syntax
To use DIDKit in Python, import the didkit
library and manipulate the didkit
module as you would any other. It contains all the same functions as the other bindings, so you can refer to the Rust docs for an overview of the core structure of DIDKit as a library.
The method issueCredential
, for example, takes all the properties you would expect, as JSON strings and returns a credential as a JSON string that the user then .loads
to access individual fields. See the following example:
Examples
Framework | Example |
---|---|
| |
Migration
0.2 to 0.3
Functions have kept the same signatures, but some have become asynchronous. You will need to start using asyncio
if it is not already the case.
Last updated