py-umi#

Build status PyPI Downloads Latest PyPI version License

This is an under-construction official Python package from Universa to facilitate access to the Java library using Universa's UMI protocol.

Example#

#!/usr/bin/env python3
from umi.types import PrivateKey, Contract, RevokePermission

if __name__ == '__main__':
    private_key = PrivateKey(size=2048)
    contract = Contract()
    short_address = private_key.public_key.short_address
    owner_role = contract.set_owner_addresses(short_address)
    revoke_permission = RevokePermission(owner_role)
    contract.add_permission(revoke_permission)

Docs and resources#

For more information see: - Universa Knowledge Base - Universa Java API - Universa UMI server

License#

This package is available as open source under the terms of the MIT License.