Python package to access Universa API from python.
Project description
Universa
This is an under-construction official python package from Universa to facilitate access to the Java library using Universa's UMI protocol.
Installation
Prerequisites
JVM v1.8.* must be installed.
Installation
pip install universa
Usage
#!/usr/bin/env python3
from universa.transport import transport
from universa.types import PrivateKey, Contract, RevokePermission
if __name__ == '__main__':
print(transport.version())
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:
License
The gem is available as open source under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
universa-0.0.4b0.tar.gz
(10.7 kB
view hashes)
Built Distribution
universa-0.0.4b0-py3-none-any.whl
(17.0 kB
view hashes)
Close
Hashes for universa-0.0.4b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f46280229934789eb7b5d77716d84b45cf32b2b8ea63309063dba96436e6e84 |
|
MD5 | da937604956e0e64b10065b0ed319a62 |
|
BLAKE2b-256 | 4303fcef2f886d2dc9b36e53eef97e35ec08f4753a2b6045bb631c6d57556441 |