repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential.py
Credential.deserialize
async def deserialize(data: dict): """ Create a credential object from a previously serialized credential object :param data: JSON data from a serialized object. :return: A created credential Example: credential = await Credential.create(source_id, offer) data = a...
python
async def deserialize(data: dict): """ Create a credential object from a previously serialized credential object :param data: JSON data from a serialized object. :return: A created credential Example: credential = await Credential.create(source_id, offer) data = a...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "credential", "=", "await", "Credential", ".", "_deserialize", "(", "\"vcx_credential_deserialize\"", ",", "json", ".", "dumps", "(", "data", ")", ",", "data", ".", "get", "(", "'data'", ")...
Create a credential object from a previously serialized credential object :param data: JSON data from a serialized object. :return: A created credential Example: credential = await Credential.create(source_id, offer) data = await credential.serialize() credential2 = await...
[ "Create", "a", "credential", "object", "from", "a", "previously", "serialized", "credential", "object", ":", "param", "data", ":", "JSON", "data", "from", "a", "serialized", "object", ".", ":", "return", ":", "A", "created", "credential", "Example", ":", "cr...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L111-L125
train
Create a credential object from a previously serialized credential object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential.py
Credential.get_offers
async def get_offers(connection: Connection) -> dict: """ Retrieves all pending credential offers for a given connection. :param connection: A connection handle :return: A list of dictionary objects representing offers from a given connection. Example: credential = await ...
python
async def get_offers(connection: Connection) -> dict: """ Retrieves all pending credential offers for a given connection. :param connection: A connection handle :return: A list of dictionary objects representing offers from a given connection. Example: credential = await ...
[ "async", "def", "get_offers", "(", "connection", ":", "Connection", ")", "->", "dict", ":", "if", "not", "hasattr", "(", "Credential", ".", "get_offers", ",", "\"cb\"", ")", ":", "Credential", ".", "get_offers", ".", "cb", "=", "create_cb", "(", "CFUNCTYPE...
Retrieves all pending credential offers for a given connection. :param connection: A connection handle :return: A list of dictionary objects representing offers from a given connection. Example: credential = await Credential.create_with_msgid(source_id, connection, msg_id) offers...
[ "Retrieves", "all", "pending", "credential", "offers", "for", "a", "given", "connection", ".", ":", "param", "connection", ":", "A", "connection", "handle", ":", "return", ":", "A", "list", "of", "dictionary", "objects", "representing", "offers", "from", "a", ...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L128-L146
train
Retrieves all pending credential offers for a given connection.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential.py
Credential.send_request
async def send_request(self, connection: Connection, payment_handle: int): """ Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet. :param connection: connection to submit request from :param payment_handle: curren...
python
async def send_request(self, connection: Connection, payment_handle: int): """ Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet. :param connection: connection to submit request from :param payment_handle: curren...
[ "async", "def", "send_request", "(", "self", ",", "connection", ":", "Connection", ",", "payment_handle", ":", "int", ")", ":", "if", "not", "hasattr", "(", "Credential", ".", "send_request", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", ...
Approves the credential offer and submits a credential request. The result will be a credential stored in the prover's wallet. :param connection: connection to submit request from :param payment_handle: currently unused :return: Example: connection = await Connection.create(sourc...
[ "Approves", "the", "credential", "offer", "and", "submits", "a", "credential", "request", ".", "The", "result", "will", "be", "a", "credential", "stored", "in", "the", "prover", "s", "wallet", ".", ":", "param", "connection", ":", "connection", "to", "submit...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L186-L210
train
Sends a credential request to the prover s wallet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential.py
Credential.get_payment_info
async def get_payment_info(self): """ Retrieve Payment Transaction Information for this Credential. Typically this will include how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will issue the credential to the prover. Ideally a prove...
python
async def get_payment_info(self): """ Retrieve Payment Transaction Information for this Credential. Typically this will include how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will issue the credential to the prover. Ideally a prove...
[ "async", "def", "get_payment_info", "(", "self", ")", ":", "if", "not", "hasattr", "(", "Credential", ".", "get_payment_info", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_credential_get_payment_info: Creating callback\"", ")", "Creden...
Retrieve Payment Transaction Information for this Credential. Typically this will include how much payment is requried by the issuer, which needs to be provided by the prover, before the issuer will issue the credential to the prover. Ideally a prover would want to know how much payment is being asked b...
[ "Retrieve", "Payment", "Transaction", "Information", "for", "this", "Credential", ".", "Typically", "this", "will", "include", "how", "much", "payment", "is", "requried", "by", "the", "issuer", "which", "needs", "to", "be", "provided", "by", "the", "prover", "...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L212-L230
train
Retrieve Payment Transaction Information for this Credential.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential.py
Credential.get_payment_txn
async def get_payment_txn(self): """ Retirieve the payment transaction associated with this credential. This can be used to get the txn that was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to the issuer. :return: E...
python
async def get_payment_txn(self): """ Retirieve the payment transaction associated with this credential. This can be used to get the txn that was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to the issuer. :return: E...
[ "async", "def", "get_payment_txn", "(", "self", ")", ":", "if", "not", "hasattr", "(", "Credential", ".", "get_payment_txn", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_credential_get_payment_txn: Creating callback\"", ")", "Credentia...
Retirieve the payment transaction associated with this credential. This can be used to get the txn that was used to pay the issuer from the prover. This could be considered a receipt of payment from the payer to the issuer. :return: Example: txn = credential.get_payment_txn()
[ "Retirieve", "the", "payment", "transaction", "associated", "with", "this", "credential", ".", "This", "can", "be", "used", "to", "get", "the", "txn", "that", "was", "used", "to", "pay", "the", "issuer", "from", "the", "prover", ".", "This", "could", "be",...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L232-L251
train
Retirieve the payment transaction associated with this credential.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.create
async def create(source_id: str): """ Create a connection object, represents a single endpoint and can be used for sending and receiving credentials and proofs :param source_id: Institution's unique ID for the connection :return: connection object Example: connec...
python
async def create(source_id: str): """ Create a connection object, represents a single endpoint and can be used for sending and receiving credentials and proofs :param source_id: Institution's unique ID for the connection :return: connection object Example: connec...
[ "async", "def", "create", "(", "source_id", ":", "str", ")", ":", "constructor_params", "=", "(", "source_id", ",", ")", "c_source_id", "=", "c_char_p", "(", "source_id", ".", "encode", "(", "'utf-8'", ")", ")", "c_params", "=", "(", "c_source_id", ",", ...
Create a connection object, represents a single endpoint and can be used for sending and receiving credentials and proofs :param source_id: Institution's unique ID for the connection :return: connection object Example: connection = await Connection.create(source_id)
[ "Create", "a", "connection", "object", "represents", "a", "single", "endpoint", "and", "can", "be", "used", "for", "sending", "and", "receiving", "credentials", "and", "proofs" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L33-L50
train
Create a connection object representing a single endpoint and can be used for sending and receiving and proofs of a connection.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.create_with_details
async def create_with_details(source_id: str, invite_details: str): """ Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving credentials and proofs Invite details are provided by the entity offering a connection and ge...
python
async def create_with_details(source_id: str, invite_details: str): """ Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving credentials and proofs Invite details are provided by the entity offering a connection and ge...
[ "async", "def", "create_with_details", "(", "source_id", ":", "str", ",", "invite_details", ":", "str", ")", ":", "constructor_params", "=", "(", "source_id", ",", ")", "c_source_id", "=", "c_char_p", "(", "source_id", ".", "encode", "(", "'utf-8'", ")", ")"...
Create a connection object with a provided invite, represents a single endpoint and can be used for sending and receiving credentials and proofs Invite details are provided by the entity offering a connection and generally pulled from a provided QRCode. :param source_id: Institution's unique ID...
[ "Create", "a", "connection", "object", "with", "a", "provided", "invite", "represents", "a", "single", "endpoint", "and", "can", "be", "used", "for", "sending", "and", "receiving", "credentials", "and", "proofs" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L53-L74
train
Create a connection object with a provided invite.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.deserialize
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: data = await connection1.serialize() connection2 = await Connection.deserialize(data) :return: A re-instantiated...
python
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: data = await connection1.serialize() connection2 = await Connection.deserialize(data) :return: A re-instantiated...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "return", "await", "Connection", ".", "_deserialize", "(", "\"vcx_connection_deserialize\"", ",", "json", ".", "dumps", "(", "data", ")", ",", "data", ".", "get", "(", "'source_id'", ")", "...
Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: data = await connection1.serialize() connection2 = await Connection.deserialize(data) :return: A re-instantiated object
[ "Create", "the", "object", "from", "a", "previously", "serialized", "object", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L77-L89
train
Deserialize a previously serialized object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.connect
async def connect(self, options: str) -> str: """ Connect securely and privately to the endpoint represented by the object. :param options: detailed connection options Example options: {"connection_type":"SMS","phone":"5555555555","use_public_did":true} or: {"con...
python
async def connect(self, options: str) -> str: """ Connect securely and privately to the endpoint represented by the object. :param options: detailed connection options Example options: {"connection_type":"SMS","phone":"5555555555","use_public_did":true} or: {"con...
[ "async", "def", "connect", "(", "self", ",", "options", ":", "str", ")", "->", "str", ":", "if", "not", "hasattr", "(", "Connection", ".", "connect", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_connection_connect: Creating cal...
Connect securely and privately to the endpoint represented by the object. :param options: detailed connection options Example options: {"connection_type":"SMS","phone":"5555555555","use_public_did":true} or: {"connection_type":"QR"} Example code: connection = awa...
[ "Connect", "securely", "and", "privately", "to", "the", "endpoint", "represented", "by", "the", "object", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L91-L115
train
Connect securely and privately to the endpoint represented by the object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.send_message
async def send_message(self, msg: str, msg_type: str, msg_title: str) -> str: """ Send a generic message to the connection :param msg: :param msg_type: :param msg_title: :return: """ if not hasattr(Connection.send_message, "cb"): ...
python
async def send_message(self, msg: str, msg_type: str, msg_title: str) -> str: """ Send a generic message to the connection :param msg: :param msg_type: :param msg_title: :return: """ if not hasattr(Connection.send_message, "cb"): ...
[ "async", "def", "send_message", "(", "self", ",", "msg", ":", "str", ",", "msg_type", ":", "str", ",", "msg_title", ":", "str", ")", "->", "str", ":", "if", "not", "hasattr", "(", "Connection", ".", "send_message", ",", "\"cb\"", ")", ":", "self", "....
Send a generic message to the connection :param msg: :param msg_type: :param msg_title: :return:
[ "Send", "a", "generic", "message", "to", "the", "connection", ":", "param", "msg", ":", ":", "param", "msg_type", ":", ":", "param", "msg_title", ":", ":", "return", ":" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L117-L142
train
Send a generic message to the connection.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.sign_data
async def sign_data(self, msg: bytes) -> bytes: """ Sign data using connection's pairwise key :param msg: :return: signature """ def transform_cb(arr_ptr: POINTER(c_uint8), arr_len: c_uint32): return bytes(arr_ptr[:arr_len]), if not hasattr(Connectio...
python
async def sign_data(self, msg: bytes) -> bytes: """ Sign data using connection's pairwise key :param msg: :return: signature """ def transform_cb(arr_ptr: POINTER(c_uint8), arr_len: c_uint32): return bytes(arr_ptr[:arr_len]), if not hasattr(Connectio...
[ "async", "def", "sign_data", "(", "self", ",", "msg", ":", "bytes", ")", "->", "bytes", ":", "def", "transform_cb", "(", "arr_ptr", ":", "POINTER", "(", "c_uint8", ")", ",", "arr_len", ":", "c_uint32", ")", ":", "return", "bytes", "(", "arr_ptr", "[", ...
Sign data using connection's pairwise key :param msg: :return: signature
[ "Sign", "data", "using", "connection", "s", "pairwise", "key", ":", "param", "msg", ":", ":", "return", ":", "signature" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L144-L168
train
Signs data using connection s pairwise key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.verify_signature
async def verify_signature(self, msg: bytes, signature: bytes) -> bool: """ Verification the signature of a msg :param msg: :param signature: :return: bool """ if not hasattr(Connection.verify_signature, "cb"): self.logger.debug("vcx_connection_verify_...
python
async def verify_signature(self, msg: bytes, signature: bytes) -> bool: """ Verification the signature of a msg :param msg: :param signature: :return: bool """ if not hasattr(Connection.verify_signature, "cb"): self.logger.debug("vcx_connection_verify_...
[ "async", "def", "verify_signature", "(", "self", ",", "msg", ":", "bytes", ",", "signature", ":", "bytes", ")", "->", "bool", ":", "if", "not", "hasattr", "(", "Connection", ".", "verify_signature", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", ...
Verification the signature of a msg :param msg: :param signature: :return: bool
[ "Verification", "the", "signature", "of", "a", "msg", ":", "param", "msg", ":", ":", "param", "signature", ":", ":", "return", ":", "bool" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L170-L194
train
Verify the signature of a message.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/connection.py
Connection.invite_details
async def invite_details(self, abbreviated: bool) -> dict: """ Get the invite details that were sent or can be sent to the endpoint. :param abbreviated: abbreviate invite details or not Example: phone_number = '8019119191' connection = await Connection.create('foobar123'...
python
async def invite_details(self, abbreviated: bool) -> dict: """ Get the invite details that were sent or can be sent to the endpoint. :param abbreviated: abbreviate invite details or not Example: phone_number = '8019119191' connection = await Connection.create('foobar123'...
[ "async", "def", "invite_details", "(", "self", ",", "abbreviated", ":", "bool", ")", "->", "dict", ":", "if", "not", "hasattr", "(", "Connection", ".", "invite_details", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_connection_i...
Get the invite details that were sent or can be sent to the endpoint. :param abbreviated: abbreviate invite details or not Example: phone_number = '8019119191' connection = await Connection.create('foobar123') invite_details = await connection.connect(phone_number) inivt...
[ "Get", "the", "invite", "details", "that", "were", "sent", "or", "can", "be", "sent", "to", "the", "endpoint", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/connection.py#L254-L278
train
Get the invite details that were sent to the endpoint.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.create
async def create(source_id: str, proof_request: str): """ Create a proof for fulfilling a corresponding proof request :param source_id: Tag associated by user of sdk :param proof_request: Proof Request data sent by requestor. Example: source_id = 'sourceId' reques...
python
async def create(source_id: str, proof_request: str): """ Create a proof for fulfilling a corresponding proof request :param source_id: Tag associated by user of sdk :param proof_request: Proof Request data sent by requestor. Example: source_id = 'sourceId' reques...
[ "async", "def", "create", "(", "source_id", ":", "str", ",", "proof_request", ":", "str", ")", ":", "constructor_params", "=", "(", "source_id", ",", ")", "c_source_id", "=", "c_char_p", "(", "source_id", ".", "encode", "(", "'utf-8'", ")", ")", "c_proof_r...
Create a proof for fulfilling a corresponding proof request :param source_id: Tag associated by user of sdk :param proof_request: Proof Request data sent by requestor. Example: source_id = 'sourceId' request = { "@topic": { "mid": 9, "tid": 1 ...
[ "Create", "a", "proof", "for", "fulfilling", "a", "corresponding", "proof", "request", ":", "param", "source_id", ":", "Tag", "associated", "by", "user", "of", "sdk", ":", "param", "proof_request", ":", "Proof", "Request", "data", "sent", "by", "requestor", ...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L30-L76
train
Create a disclosed proof for fulfilling a corresponding proof request.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.deserialize
async def deserialize(data: dict): """ :param data: Data provided by the serialize method Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await Discl...
python
async def deserialize(data: dict): """ :param data: Data provided by the serialize method Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await Discl...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "disclosed_proof", "=", "await", "DisclosedProof", ".", "_deserialize", "(", "\"vcx_disclosed_proof_deserialize\"", ",", "json", ".", "dumps", "(", "data", ")", ",", "data", ".", "get", "(", ...
:param data: Data provided by the serialize method Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_...
[ ":", "param", "data", ":", "Data", "provided", "by", "the", "serialize", "method", "Example", ":", "msg_id", "=", "1", "phone_number", "=", "8019119191", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", "...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L113-L129
train
Deserialize a disclosed proof from a dict.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.get_requests
async def get_requests(connection: Connection) -> dict: """ Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id,...
python
async def get_requests(connection: Connection) -> dict: """ Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id,...
[ "async", "def", "get_requests", "(", "connection", ":", "Connection", ")", "->", "dict", ":", "if", "not", "hasattr", "(", "DisclosedProof", ".", "get_requests", ",", "\"cb\"", ")", ":", "DisclosedProof", ".", "get_requests", ".", "cb", "=", "create_cb", "("...
Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id) requests = await DisclosedProof.get_requests(co...
[ "Example", ":", "msg_id", "=", "1", "phone_number", "=", "8019119191", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", "phone_number", ")", "disclosed_proof", "=", "await", "DisclosedPro...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L132-L153
train
Get all requests associated with the connection
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.get_creds
async def get_creds(self) -> dict: """ Gets the credentials from a disclosed proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedPro...
python
async def get_creds(self) -> dict: """ Gets the credentials from a disclosed proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedPro...
[ "async", "def", "get_creds", "(", "self", ")", "->", "dict", ":", "if", "not", "hasattr", "(", "DisclosedProof", ".", "get_creds", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_disclosed_proof_retrieve_credentials: Creating callback\"",...
Gets the credentials from a disclosed proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id) ...
[ "Gets", "the", "credentials", "from", "a", "disclosed", "proof", "Example", ":", "msg_id", "=", "1", "phone_number", "=", "8019119191", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", ...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L204-L225
train
Get the credentials from a disclosed proof.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.send_proof
async def send_proof(self, connection: Connection): """ Sends the proof to the Connection Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await Discl...
python
async def send_proof(self, connection: Connection): """ Sends the proof to the Connection Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await Discl...
[ "async", "def", "send_proof", "(", "self", ",", "connection", ":", "Connection", ")", ":", "if", "not", "hasattr", "(", "DisclosedProof", ".", "send_proof", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_disclosed_proof_send_proof: C...
Sends the proof to the Connection Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id) await...
[ "Sends", "the", "proof", "to", "the", "Connection", "Example", ":", "msg_id", "=", "1", "phone_number", "=", "8019119191", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", "phone_number...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L227-L250
train
Sends the proof to the Connection
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/disclosed_proof.py
DisclosedProof.generate_proof
async def generate_proof(self, selected_creds: dict, self_attested_attrs: dict): """ Generates the proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proo...
python
async def generate_proof(self, selected_creds: dict, self_attested_attrs: dict): """ Generates the proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proo...
[ "async", "def", "generate_proof", "(", "self", ",", "selected_creds", ":", "dict", ",", "self_attested_attrs", ":", "dict", ")", ":", "if", "not", "hasattr", "(", "DisclosedProof", ".", "generate_proof", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", ...
Generates the proof Example: msg_id = '1' phone_number = '8019119191' connection = await Connection.create(source_id) await connection.connect(phone_number) disclosed_proof = await DisclosedProof.create_with_msgid(source_id, connection, msg_id) await disclosed_pro...
[ "Generates", "the", "proof", "Example", ":", "msg_id", "=", "1", "phone_number", "=", "8019119191", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", "phone_number", ")", "disclosed_proof"...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/disclosed_proof.py#L253-L279
train
Generate the proof for the selected credentials and self - attested attributes.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
create_payment_address
async def create_payment_address(wallet_handle: int, payment_method: str, config: str) -> str: """ Create the payment address for specified payment method This method generates private part of payment address and stores it in a secur...
python
async def create_payment_address(wallet_handle: int, payment_method: str, config: str) -> str: """ Create the payment address for specified payment method This method generates private part of payment address and stores it in a secur...
[ "async", "def", "create_payment_address", "(", "wallet_handle", ":", "int", ",", "payment_method", ":", "str", ",", "config", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", ...
Create the payment address for specified payment method This method generates private part of payment address and stores it in a secure place. Ideally it should be secret in libindy wallet (see crypto module). Note that payment method should be able to resolve this secret by fully resolvable...
[ "Create", "the", "payment", "address", "for", "specified", "payment", "method" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L9-L54
train
Create payment address for specified payment method and config.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
build_get_payment_sources_request
async def build_get_payment_sources_request(wallet_handle: int, submitter_did: str, payment_address: str) -> (str, str): """ Builds Indy request for getting sources list for payment address according to this payment meth...
python
async def build_get_payment_sources_request(wallet_handle: int, submitter_did: str, payment_address: str) -> (str, str): """ Builds Indy request for getting sources list for payment address according to this payment meth...
[ "async", "def", "build_get_payment_sources_request", "(", "wallet_handle", ":", "int", ",", "submitter_did", ":", "str", ",", "payment_address", ":", "str", ")", "->", "(", "str", ",", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name...
Builds Indy request for getting sources list for payment address according to this payment method. :param wallet_handle: wallet handle (created by open_wallet). :param submitter_did : (Option) DID of request sender :param payment_address: target payment address :return: get_sources_txn_json: Indy r...
[ "Builds", "Indy", "request", "for", "getting", "sources", "list", "for", "payment", "address", "according", "to", "this", "payment", "method", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L196-L232
train
Builds get sources list request.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
build_payment_req
async def build_payment_req(wallet_handle: int, submitter_did: str, inputs_json: str, outputs_json: str, extra: Optional[str]) -> (str, str): """ Builds Indy request for doing payment according to...
python
async def build_payment_req(wallet_handle: int, submitter_did: str, inputs_json: str, outputs_json: str, extra: Optional[str]) -> (str, str): """ Builds Indy request for doing payment according to...
[ "async", "def", "build_payment_req", "(", "wallet_handle", ":", "int", ",", "submitter_did", ":", "str", ",", "inputs_json", ":", "str", ",", "outputs_json", ":", "str", ",", "extra", ":", "Optional", "[", "str", "]", ")", "->", "(", "str", ",", "str", ...
Builds Indy request for doing payment according to this payment method. This method consumes set of inputs and outputs. Format of inputs is specific for payment method. Usually it should reference payment transaction with at least one output that corresponds to payment address that user owns. ...
[ "Builds", "Indy", "request", "for", "doing", "payment", "according", "to", "this", "payment", "method", ".", "This", "method", "consumes", "set", "of", "inputs", "and", "outputs", ".", "Format", "of", "inputs", "is", "specific", "for", "payment", "method", "...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L274-L333
train
Builds Indy request for doing payment.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
build_set_txn_fees_req
async def build_set_txn_fees_req(wallet_handle: int, submitter_did: str, payment_method: str, fees_json: str) -> str: """ Builds Indy request for setting fees for transactions in the ledger :param wallet_hand...
python
async def build_set_txn_fees_req(wallet_handle: int, submitter_did: str, payment_method: str, fees_json: str) -> str: """ Builds Indy request for setting fees for transactions in the ledger :param wallet_hand...
[ "async", "def", "build_set_txn_fees_req", "(", "wallet_handle", ":", "int", ",", "submitter_did", ":", "str", ",", "payment_method", ":", "str", ",", "fees_json", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__",...
Builds Indy request for setting fees for transactions in the ledger :param wallet_handle: wallet handle (created by open_wallet). :param submitter_did : (Option) DID of request sender :param payment_method: Payment method to use (for example, 'sov'). :param fees_json: { txnType1: amount1, ...
[ "Builds", "Indy", "request", "for", "setting", "fees", "for", "transactions", "in", "the", "ledger" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L425-L469
train
Builds Indy request for setting fees for transactions in ledger.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
build_get_txn_fees_req
async def build_get_txn_fees_req(wallet_handle: int, submitter_did: str, payment_method: str) -> str: """ Builds Indy request for getting fees for transactions in the ledger :param wallet_handle: wallet handle (created by open_wallet). :...
python
async def build_get_txn_fees_req(wallet_handle: int, submitter_did: str, payment_method: str) -> str: """ Builds Indy request for getting fees for transactions in the ledger :param wallet_handle: wallet handle (created by open_wallet). :...
[ "async", "def", "build_get_txn_fees_req", "(", "wallet_handle", ":", "int", ",", "submitter_did", ":", "str", ",", "payment_method", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", ...
Builds Indy request for getting fees for transactions in the ledger :param wallet_handle: wallet handle (created by open_wallet). :param submitter_did : (Option) DID of request sender :param payment_method: Payment method to use (for example, 'sov'). :return: set_txn_fees_json: Indy request for setting...
[ "Builds", "Indy", "request", "for", "getting", "fees", "for", "transactions", "in", "the", "ledger" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L472-L506
train
Builds Indy request for getting fees for transactions in ledger.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
parse_get_txn_fees_response
async def parse_get_txn_fees_response(payment_method: str, resp_json: str) -> str: """ Parses response for Indy request for getting fees :param payment_method: Payment method to use (for example, 'sov'). :param resp_json: response for Indy request for getting fees ...
python
async def parse_get_txn_fees_response(payment_method: str, resp_json: str) -> str: """ Parses response for Indy request for getting fees :param payment_method: Payment method to use (for example, 'sov'). :param resp_json: response for Indy request for getting fees ...
[ "async", "def", "parse_get_txn_fees_response", "(", "payment_method", ":", "str", ",", "resp_json", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"parse_get_txn_fees_response: ...
Parses response for Indy request for getting fees :param payment_method: Payment method to use (for example, 'sov'). :param resp_json: response for Indy request for getting fees :return: fees_json: { txnType1: amount1, txnType2: amount2, ................. txnTypeN: amountN, ...
[ "Parses", "response", "for", "Indy", "request", "for", "getting", "fees" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L509-L543
train
Parses response for Indy request for getting fees.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/payment.py
build_verify_payment_req
async def build_verify_payment_req(wallet_handle: int, submitter_did: str, receipt: str) -> (str, str): """ Builds Indy request for information to verify the payment receipt :param wallet_handle: wallet handle (created by open_wallet). ...
python
async def build_verify_payment_req(wallet_handle: int, submitter_did: str, receipt: str) -> (str, str): """ Builds Indy request for information to verify the payment receipt :param wallet_handle: wallet handle (created by open_wallet). ...
[ "async", "def", "build_verify_payment_req", "(", "wallet_handle", ":", "int", ",", "submitter_did", ":", "str", ",", "receipt", ":", "str", ")", "->", "(", "str", ",", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "lo...
Builds Indy request for information to verify the payment receipt :param wallet_handle: wallet handle (created by open_wallet). :param submitter_did : (Option) DID of request sender :param receipt: payment receipt to verify :return: verify_txn_json: Indy request for verification receipt for transactio...
[ "Builds", "Indy", "request", "for", "information", "to", "verify", "the", "payment", "receipt" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/payment.py#L546-L582
train
Builds Indy request for information to verify the payment receipt for transactions in ledger .
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/schema.py
Schema.create
async def create(source_id: str, name: str, version: str, attrs: list, payment_handle: int): """ Creates a new schema object that is written to the ledger :param source_id: Institution's unique ID for the schema :param name: Name of schema :param version: Version of the schema ...
python
async def create(source_id: str, name: str, version: str, attrs: list, payment_handle: int): """ Creates a new schema object that is written to the ledger :param source_id: Institution's unique ID for the schema :param name: Name of schema :param version: Version of the schema ...
[ "async", "def", "create", "(", "source_id", ":", "str", ",", "name", ":", "str", ",", "version", ":", "str", ",", "attrs", ":", "list", ",", "payment_handle", ":", "int", ")", ":", "constructor_params", "=", "(", "source_id", ",", "name", ",", "version...
Creates a new schema object that is written to the ledger :param source_id: Institution's unique ID for the schema :param name: Name of schema :param version: Version of the schema :param attrs: Atttributes of the schema :param payment_handle: NYI - payment of ledger fee is take...
[ "Creates", "a", "new", "schema", "object", "that", "is", "written", "to", "the", "ledger" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L65-L94
train
Creates a new schema object that is written to the ledger
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/schema.py
Schema.deserialize
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] ...
python
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] ...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "try", ":", "# Todo: Find better way to access attr_names. Potential for issues.", "schema", "=", "await", "Schema", ".", "_deserialize", "(", "\"vcx_schema_deserialize\"", ",", "json", ".", "dumps", "...
Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] payment_handle = 0 schema1 = await Schema....
[ "Create", "the", "object", "from", "a", "previously", "serialized", "object", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L97-L124
train
Deserialize a previously serialized object into a new object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/schema.py
Schema.lookup
async def lookup(source_id: str, schema_id: str): """ Create a new schema object from an existing ledger schema :param source_id: Institution's personal identification for the schema :param schema_id: Ledger schema ID for lookup Example: source_id = 'foobar123' n...
python
async def lookup(source_id: str, schema_id: str): """ Create a new schema object from an existing ledger schema :param source_id: Institution's personal identification for the schema :param schema_id: Ledger schema ID for lookup Example: source_id = 'foobar123' n...
[ "async", "def", "lookup", "(", "source_id", ":", "str", ",", "schema_id", ":", "str", ")", ":", "try", ":", "schema", "=", "Schema", "(", "source_id", ",", "''", ",", "''", ",", "[", "]", ")", "if", "not", "hasattr", "(", "Schema", ".", "lookup", ...
Create a new schema object from an existing ledger schema :param source_id: Institution's personal identification for the schema :param schema_id: Ledger schema ID for lookup Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['addre...
[ "Create", "a", "new", "schema", "object", "from", "an", "existing", "ledger", "schema" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L127-L170
train
Create a new schema object from an existing ledger schema.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/schema.py
Schema.get_schema_id
async def get_schema_id(self): """ Get the ledger ID of the object Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] payment_handle = 0 schema1 = await Schema.create(source_id, name, vers...
python
async def get_schema_id(self): """ Get the ledger ID of the object Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] payment_handle = 0 schema1 = await Schema.create(source_id, name, vers...
[ "async", "def", "get_schema_id", "(", "self", ")", ":", "cb", "=", "create_cb", "(", "CFUNCTYPE", "(", "None", ",", "c_uint32", ",", "c_uint32", ",", "c_char_p", ")", ")", "c_handle", "=", "c_uint32", "(", "self", ".", "handle", ")", "id", "=", "await"...
Get the ledger ID of the object Example: source_id = 'foobar123' name = 'Address Schema' version = '1.0' attrs = ['address', 'city', 'state'] payment_handle = 0 schema1 = await Schema.create(source_id, name, version, attrs, payment_handle) id1 = await sch...
[ "Get", "the", "ledger", "ID", "of", "the", "object" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/schema.py#L196-L213
train
Get the ledger ID of the object containing the object containing the schema ID
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pairwise.py
is_pairwise_exists
async def is_pairwise_exists(wallet_handle: int, their_did: str) -> bool: """ Check if pairwise is exists. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did. :return: true - if pairwise is exists, false - otherwise """ ...
python
async def is_pairwise_exists(wallet_handle: int, their_did: str) -> bool: """ Check if pairwise is exists. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did. :return: true - if pairwise is exists, false - otherwise """ ...
[ "async", "def", "is_pairwise_exists", "(", "wallet_handle", ":", "int", ",", "their_did", ":", "str", ")", "->", "bool", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"is_pairwise_exists: >>> wallet_handle:...
Check if pairwise is exists. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did. :return: true - if pairwise is exists, false - otherwise
[ "Check", "if", "pairwise", "is", "exists", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L9-L37
train
Check if pairwise is exists.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pairwise.py
list_pairwise
async def list_pairwise(wallet_handle: int) -> str: """ Get list of saved pairwise. :param wallet_handle: wallet handler (created by open_wallet). :return: pairwise_list: list of saved pairwise """ logger = logging.getLogger(__name__) logger.debug("list_pairwise: >>> wallet_handle: %r", wa...
python
async def list_pairwise(wallet_handle: int) -> str: """ Get list of saved pairwise. :param wallet_handle: wallet handler (created by open_wallet). :return: pairwise_list: list of saved pairwise """ logger = logging.getLogger(__name__) logger.debug("list_pairwise: >>> wallet_handle: %r", wa...
[ "async", "def", "list_pairwise", "(", "wallet_handle", ":", "int", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"list_pairwise: >>> wallet_handle: %r\"", ",", "wallet_handle", ")", "if", ...
Get list of saved pairwise. :param wallet_handle: wallet handler (created by open_wallet). :return: pairwise_list: list of saved pairwise
[ "Get", "list", "of", "saved", "pairwise", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L80-L103
train
Get list of saved pairwise.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pairwise.py
get_pairwise
async def get_pairwise(wallet_handle: int, their_did: str) -> None: """ Gets pairwise information for specific their_did. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did :return: pairwise_info_json: did info associated with their d...
python
async def get_pairwise(wallet_handle: int, their_did: str) -> None: """ Gets pairwise information for specific their_did. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did :return: pairwise_info_json: did info associated with their d...
[ "async", "def", "get_pairwise", "(", "wallet_handle", ":", "int", ",", "their_did", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"get_pairwise: >>> wallet_handle: %r, their_d...
Gets pairwise information for specific their_did. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded Did :return: pairwise_info_json: did info associated with their did
[ "Gets", "pairwise", "information", "for", "specific", "their_did", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L106-L135
train
Get pairwise information for specific their_did.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pairwise.py
set_pairwise_metadata
async def set_pairwise_metadata(wallet_handle: int, their_did: str, metadata: Optional[str]) -> None: """ Save some data in the Wallet for pairwise associated with Did. :param wallet_handle: wallet handler (created by open_wallet). :param ...
python
async def set_pairwise_metadata(wallet_handle: int, their_did: str, metadata: Optional[str]) -> None: """ Save some data in the Wallet for pairwise associated with Did. :param wallet_handle: wallet handler (created by open_wallet). :param ...
[ "async", "def", "set_pairwise_metadata", "(", "wallet_handle", ":", "int", ",", "their_did", ":", "str", ",", "metadata", ":", "Optional", "[", "str", "]", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ...
Save some data in the Wallet for pairwise associated with Did. :param wallet_handle: wallet handler (created by open_wallet). :param their_did: encoded DID :param metadata: some extra information for pairwise :return: Error code
[ "Save", "some", "data", "in", "the", "Wallet", "for", "pairwise", "associated", "with", "Did", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pairwise.py#L138-L170
train
Set some extra information for pairwise associated with Did.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
docs/how-tos/rotate-key/python/rotate_key.py
print_log
def print_log(value_color="", value_noncolor=""): """set the colors for text.""" HEADER = '\033[92m' ENDC = '\033[0m' print(HEADER + value_color + ENDC + str(value_noncolor))
python
def print_log(value_color="", value_noncolor=""): """set the colors for text.""" HEADER = '\033[92m' ENDC = '\033[0m' print(HEADER + value_color + ENDC + str(value_noncolor))
[ "def", "print_log", "(", "value_color", "=", "\"\"", ",", "value_noncolor", "=", "\"\"", ")", ":", "HEADER", "=", "'\\033[92m'", "ENDC", "=", "'\\033[0m'", "print", "(", "HEADER", "+", "value_color", "+", "ENDC", "+", "str", "(", "value_noncolor", ")", ")"...
set the colors for text.
[ "set", "the", "colors", "for", "text", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/docs/how-tos/rotate-key/python/rotate_key.py#L33-L37
train
set the colors for text
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/libindy.py
set_runtime_config
def set_runtime_config(config: str): """ Set libindy runtime configuration. Can be optionally called to change current params. :param config: { "crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default) "collect_backtrace": Optional...
python
def set_runtime_config(config: str): """ Set libindy runtime configuration. Can be optionally called to change current params. :param config: { "crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default) "collect_backtrace": Optional...
[ "def", "set_runtime_config", "(", "config", ":", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"set_runtime_config: >>> config: %r\"", ",", "config", ")", "c_config", "=", "c_char_p", "(", "co...
Set libindy runtime configuration. Can be optionally called to change current params. :param config: { "crypto_thread_pool_size": Optional<int> - size of thread pool for the most expensive crypto operations. (4 by default) "collect_backtrace": Optional<bool> - whether errors backtrace should be collec...
[ "Set", "libindy", "runtime", "configuration", ".", "Can", "be", "optionally", "called", "to", "change", "current", "params", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/libindy.py#L196-L216
train
Set libindy runtime configuration.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/proof.py
Proof.create
async def create(source_id: str, name: str, requested_attrs: list, revocation_interval: dict, requested_predicates: list = []): """ Builds a generic proof object :param source_id: Tag associated by user of sdk :param name: Name of the Proof :param requested_attrs: Attributes ass...
python
async def create(source_id: str, name: str, requested_attrs: list, revocation_interval: dict, requested_predicates: list = []): """ Builds a generic proof object :param source_id: Tag associated by user of sdk :param name: Name of the Proof :param requested_attrs: Attributes ass...
[ "async", "def", "create", "(", "source_id", ":", "str", ",", "name", ":", "str", ",", "requested_attrs", ":", "list", ",", "revocation_interval", ":", "dict", ",", "requested_predicates", ":", "list", "=", "[", "]", ")", ":", "constructor_params", "=", "("...
Builds a generic proof object :param source_id: Tag associated by user of sdk :param name: Name of the Proof :param requested_attrs: Attributes associated with the Proof :param revocation_interval: interval applied to all requested attributes indicating when the claim must be valid (NOT ...
[ "Builds", "a", "generic", "proof", "object", ":", "param", "source_id", ":", "Tag", "associated", "by", "user", "of", "sdk", ":", "param", "name", ":", "Name", "of", "the", "Proof", ":", "param", "requested_attrs", ":", "Attributes", "associated", "with", ...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L27-L52
train
Creates a generic object containing the specified attributes and revocation intervals.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/proof.py
Proof.deserialize
async def deserialize(data: dict): """ Builds a Proof object with defined attributes. Attributes are provided by a previous call to the serialize function. :param data: Example: name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": ...
python
async def deserialize(data: dict): """ Builds a Proof object with defined attributes. Attributes are provided by a previous call to the serialize function. :param data: Example: name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": ...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "return", "await", "Proof", ".", "_deserialize", "(", "\"vcx_proof_deserialize\"", ",", "json", ".", "dumps", "(", "data", ")", ",", "data", ".", "get", "(", "'data'", ")", ".", "get", ...
Builds a Proof object with defined attributes. Attributes are provided by a previous call to the serialize function. :param data: Example: name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_...
[ "Builds", "a", "Proof", "object", "with", "defined", "attributes", ".", "Attributes", "are", "provided", "by", "a", "previous", "call", "to", "the", "serialize", "function", ".", ":", "param", "data", ":", "Example", ":", "name", "=", "proof", "name", "req...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L55-L70
train
Deserialize a Proof object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/proof.py
Proof.request_proof
async def request_proof(self, connection: Connection): """ Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schem...
python
async def request_proof(self, connection: Connection): """ Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schem...
[ "async", "def", "request_proof", "(", "self", ",", "connection", ":", "Connection", ")", ":", "if", "not", "hasattr", "(", "Proof", ".", "request_proof", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_proof_send_request: Creating cal...
Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_name":"Faber Student Info", "schema_version":"1.0",...
[ "Example", ":", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", "phone_number", ")", "name", "=", "proof", "name", "requested_attrs", "=", "[", "{", "name", ":", "age", "restrictions...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L116-L138
train
Request a new proof from the database.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/proof.py
Proof.get_proof
async def get_proof(self, connection: Connection) -> list: """ Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:s...
python
async def get_proof(self, connection: Connection) -> list: """ Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:s...
[ "async", "def", "get_proof", "(", "self", ",", "connection", ":", "Connection", ")", "->", "list", ":", "if", "not", "hasattr", "(", "Proof", ".", "get_proof", ",", "\"cb\"", ")", ":", "self", ".", "logger", ".", "debug", "(", "\"vcx_get_proof: Creating ca...
Example: connection = await Connection.create(source_id) await connection.connect(phone_number) name = "proof name" requested_attrs = [{"name": "age", "restrictions": [{"schema_id": "6XFh8yBzrpJQmNyZzgoTqB:2:schema_name:0.0.11", "schema_name":"Faber Student Info", "schema_version":"1.0",...
[ "Example", ":", "connection", "=", "await", "Connection", ".", "create", "(", "source_id", ")", "await", "connection", ".", "connect", "(", "phone_number", ")", "name", "=", "proof", "name", "requested_attrs", "=", "[", "{", "name", ":", "age", "restrictions...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/proof.py#L140-L165
train
Get the proof for the given connection.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/utils.py
vcx_agent_provision
async def vcx_agent_provision(config: str) -> None: """ Provision an agent in the agency, populate configuration and wallet for this agent. Example: import json enterprise_config = { 'agency_url': 'http://localhost:8080', 'agency_did': 'VsKV7grR1BUE29mG2Fm2kX', 'agency_verkey...
python
async def vcx_agent_provision(config: str) -> None: """ Provision an agent in the agency, populate configuration and wallet for this agent. Example: import json enterprise_config = { 'agency_url': 'http://localhost:8080', 'agency_did': 'VsKV7grR1BUE29mG2Fm2kX', 'agency_verkey...
[ "async", "def", "vcx_agent_provision", "(", "config", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "vcx_agent_provision", ",", "\"cb\"", ")", ":", "logger", ".", "debug",...
Provision an agent in the agency, populate configuration and wallet for this agent. Example: import json enterprise_config = { 'agency_url': 'http://localhost:8080', 'agency_did': 'VsKV7grR1BUE29mG2Fm2kX', 'agency_verkey': "Hezce2UWMZ3wUhVkh2LfKSs8nDzWwzs2Win7EzNN3YaR", 'wall...
[ "Provision", "an", "agent", "in", "the", "agency", "populate", "configuration", "and", "wallet", "for", "this", "agent", ".", "Example", ":", "import", "json", "enterprise_config", "=", "{", "agency_url", ":", "http", ":", "//", "localhost", ":", "8080", "ag...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L6-L37
train
Provision an agent in the agency populate configuration and wallet for this agent.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/utils.py
vcx_ledger_get_fees
async def vcx_ledger_get_fees() -> str: """ Get ledger fees from the sovrin network Example: fees = await vcx_ledger_get_fees() :return: JSON representing fees """ logger = logging.getLogger(__name__) if not hasattr(vcx_ledger_get_fees, "cb"): logger.debug("vcx_ledger_get_fees: ...
python
async def vcx_ledger_get_fees() -> str: """ Get ledger fees from the sovrin network Example: fees = await vcx_ledger_get_fees() :return: JSON representing fees """ logger = logging.getLogger(__name__) if not hasattr(vcx_ledger_get_fees, "cb"): logger.debug("vcx_ledger_get_fees: ...
[ "async", "def", "vcx_ledger_get_fees", "(", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "vcx_ledger_get_fees", ",", "\"cb\"", ")", ":", "logger", ".", "debug", "(", "\"vcx_ledger_get_f...
Get ledger fees from the sovrin network Example: fees = await vcx_ledger_get_fees() :return: JSON representing fees
[ "Get", "ledger", "fees", "from", "the", "sovrin", "network", "Example", ":", "fees", "=", "await", "vcx_ledger_get_fees", "()", ":", "return", ":", "JSON", "representing", "fees" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L60-L77
train
Get ledger fees from the sovrin network
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/utils.py
vcx_messages_download
async def vcx_messages_download(status: str = None, uids: str = None, pw_dids: str = None) -> str: """ Retrieve messages from the specified connection :param status: :param uids: :param pw_dids: :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_messages_download, ...
python
async def vcx_messages_download(status: str = None, uids: str = None, pw_dids: str = None) -> str: """ Retrieve messages from the specified connection :param status: :param uids: :param pw_dids: :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_messages_download, ...
[ "async", "def", "vcx_messages_download", "(", "status", ":", "str", "=", "None", ",", "uids", ":", "str", "=", "None", ",", "pw_dids", ":", "str", "=", "None", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "...
Retrieve messages from the specified connection :param status: :param uids: :param pw_dids: :return:
[ "Retrieve", "messages", "from", "the", "specified", "connection", ":", "param", "status", ":", ":", "param", "uids", ":", ":", "param", "pw_dids", ":", ":", "return", ":" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L79-L115
train
Retrieve messages from the specified connection
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/utils.py
vcx_messages_update_status
async def vcx_messages_update_status(msg_json: str): """ Update the status of messages from the specified connection :param msg_json: :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_messages_update_status, "cb"): logger.debug("vcx_messages_update_status: Creatin...
python
async def vcx_messages_update_status(msg_json: str): """ Update the status of messages from the specified connection :param msg_json: :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_messages_update_status, "cb"): logger.debug("vcx_messages_update_status: Creatin...
[ "async", "def", "vcx_messages_update_status", "(", "msg_json", ":", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "vcx_messages_update_status", ",", "\"cb\"", ")", ":", "logger", ".", "debug", ...
Update the status of messages from the specified connection :param msg_json: :return:
[ "Update", "the", "status", "of", "messages", "from", "the", "specified", "connection", ":", "param", "msg_json", ":", ":", "return", ":" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/utils.py#L118-L139
train
Update the status of messages from the specified connection
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
crypto_sign
async def crypto_sign(wallet_handle: int, signer_vk: str, msg: bytes) -> bytes: """ Signs a message with a key. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param wallet_handle: wallet handle...
python
async def crypto_sign(wallet_handle: int, signer_vk: str, msg: bytes) -> bytes: """ Signs a message with a key. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param wallet_handle: wallet handle...
[ "async", "def", "crypto_sign", "(", "wallet_handle", ":", "int", ",", "signer_vk", ":", "str", ",", "msg", ":", "bytes", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"crypto_sig...
Signs a message with a key. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param wallet_handle: wallet handler (created by open_wallet). :param signer_vk: id (verkey) of my key. The key must be created by calling create_key or create_and_st...
[ "Signs", "a", "message", "with", "a", "key", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L117-L156
train
Signs a message with a key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
crypto_verify
async def crypto_verify(signer_vk: str, msg: bytes, signature: bytes) -> bool: """ Verify a signature with a verkey. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param signer_vk: verkey o...
python
async def crypto_verify(signer_vk: str, msg: bytes, signature: bytes) -> bool: """ Verify a signature with a verkey. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param signer_vk: verkey o...
[ "async", "def", "crypto_verify", "(", "signer_vk", ":", "str", ",", "msg", ":", "bytes", ",", "signature", ":", "bytes", ")", "->", "bool", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"crypto_veri...
Verify a signature with a verkey. Note to use DID keys with this function you can call indy_key_for_did to get key id (verkey) for specific DID. :param signer_vk: verkey of signer of the message :param msg: message that has been signed :param signature: a signature to be verified :return: valid: t...
[ "Verify", "a", "signature", "with", "a", "verkey", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L159-L196
train
Verify a message with a verkey.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
auth_crypt
async def auth_crypt(wallet_handle: int, sender_vk: str, recipient_vk: str, msg: bytes) -> bytes: """ **** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD **** Encrypt a message by authenticated-encryption scheme. Sender can encr...
python
async def auth_crypt(wallet_handle: int, sender_vk: str, recipient_vk: str, msg: bytes) -> bytes: """ **** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD **** Encrypt a message by authenticated-encryption scheme. Sender can encr...
[ "async", "def", "auth_crypt", "(", "wallet_handle", ":", "int", ",", "sender_vk", ":", "str", ",", "recipient_vk", ":", "str", ",", "msg", ":", "bytes", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ...
**** THIS FUNCTION WILL BE DEPRECATED USE pack_message INSTEAD **** Encrypt a message by authenticated-encryption scheme. Sender can encrypt a confidential message specifically for Recipient, using Sender's public key. Using Recipient's public key, Sender can compute a shared secret key. Using Sender'...
[ "****", "THIS", "FUNCTION", "WILL", "BE", "DEPRECATED", "USE", "pack_message", "INSTEAD", "****" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L199-L253
train
This function is used to encrypt a message using authenticated - encryption scheme.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
auth_decrypt
async def auth_decrypt(wallet_handle: int, recipient_vk: str, encrypted_msg: bytes) -> (str, bytes): """ **** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD **** Decrypt a message by authenticated-encryption scheme. Sender can encrypt a confid...
python
async def auth_decrypt(wallet_handle: int, recipient_vk: str, encrypted_msg: bytes) -> (str, bytes): """ **** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD **** Decrypt a message by authenticated-encryption scheme. Sender can encrypt a confid...
[ "async", "def", "auth_decrypt", "(", "wallet_handle", ":", "int", ",", "recipient_vk", ":", "str", ",", "encrypted_msg", ":", "bytes", ")", "->", "(", "str", ",", "bytes", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logge...
**** THIS FUNCTION WILL BE DEPRECATED USE unpack_message INSTEAD **** Decrypt a message by authenticated-encryption scheme. Sender can encrypt a confidential message specifically for Recipient, using Sender's public key. Using Recipient's public key, Sender can compute a shared secret key. Using Sende...
[ "****", "THIS", "FUNCTION", "WILL", "BE", "DEPRECATED", "USE", "unpack_message", "INSTEAD", "****" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L256-L308
train
Decrypt a message using authenticated - encryption scheme.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
anon_crypt
async def anon_crypt(recipient_vk: str, msg: bytes) -> bytes: """ Encrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipient can decrypt these messages, using its private key. ...
python
async def anon_crypt(recipient_vk: str, msg: bytes) -> bytes: """ Encrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipient can decrypt these messages, using its private key. ...
[ "async", "def", "anon_crypt", "(", "recipient_vk", ":", "str", ",", "msg", ":", "bytes", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"anon_crypt: >>> recipient_vk: %r, msg: %r\"", ",...
Encrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipient can decrypt these messages, using its private key. While the Recipient can verify the integrity of the message, it cannot verify the identity of ...
[ "Encrypts", "a", "message", "by", "anonymous", "-", "encryption", "scheme", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L311-L352
train
Encrypts a message using anonymous - encryption scheme.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
anon_decrypt
async def anon_decrypt(wallet_handle: int, recipient_vk: str, encrypted_msg: bytes) -> bytes: """ Decrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipie...
python
async def anon_decrypt(wallet_handle: int, recipient_vk: str, encrypted_msg: bytes) -> bytes: """ Decrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipie...
[ "async", "def", "anon_decrypt", "(", "wallet_handle", ":", "int", ",", "recipient_vk", ":", "str", ",", "encrypted_msg", ":", "bytes", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", ...
Decrypts a message by anonymous-encryption scheme. Sealed boxes are designed to anonymously send messages to a Recipient given its public key. Only the Recipient can decrypt these messages, using its private key. While the Recipient can verify the integrity of the message, it cannot verify the identity of ...
[ "Decrypts", "a", "message", "by", "anonymous", "-", "encryption", "scheme", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L355-L400
train
Decrypts a message using anonymous - encryption scheme.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
pack_message
async def pack_message(wallet_handle: int, message: str, recipient_verkeys: list, sender_verkey: Optional[str]) -> bytes: """ Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental) Note to use DID ...
python
async def pack_message(wallet_handle: int, message: str, recipient_verkeys: list, sender_verkey: Optional[str]) -> bytes: """ Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental) Note to use DID ...
[ "async", "def", "pack_message", "(", "wallet_handle", ":", "int", ",", "message", ":", "str", ",", "recipient_verkeys", ":", "list", ",", "sender_verkey", ":", "Optional", "[", "str", "]", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger"...
Packs a message by encrypting the message and serializes it in a JWE-like format (Experimental) Note to use DID keys with this function you can call did.key_for_did to get key id (verkey) for specific DID. #Params command_handle: command handle to map callback to user context. wallet_handle: walle...
[ "Packs", "a", "message", "by", "encrypting", "the", "message", "and", "serializes", "it", "in", "a", "JWE", "-", "like", "format", "(", "Experimental", ")" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L403-L450
train
Packs a message into a JWE - like format.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/crypto.py
unpack_message
async def unpack_message(wallet_handle: int, jwe: bytes) -> bytes: """ Unpacks a JWE-like formatted message outputted by pack_message (Experimental) #Params command_handle: command handle to map callback to user context. wallet_handle: wallet handler (created by open_wallet...
python
async def unpack_message(wallet_handle: int, jwe: bytes) -> bytes: """ Unpacks a JWE-like formatted message outputted by pack_message (Experimental) #Params command_handle: command handle to map callback to user context. wallet_handle: wallet handler (created by open_wallet...
[ "async", "def", "unpack_message", "(", "wallet_handle", ":", "int", ",", "jwe", ":", "bytes", ")", "->", "bytes", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"unpack_message: >>> wallet_handle: %r, jwe: %...
Unpacks a JWE-like formatted message outputted by pack_message (Experimental) #Params command_handle: command handle to map callback to user context. wallet_handle: wallet handler (created by open_wallet) message: the output of a pack message #Returns -> See HIPE 0028 for details (Authcrypt mo...
[ "Unpacks", "a", "JWE", "-", "like", "formatted", "message", "outputted", "by", "pack_message", "(", "Experimental", ")" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/crypto.py#L453-L501
train
Unpacks a JWE - like formatted message outputted by pack_message.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/vcx_init.py
vcx_init
async def vcx_init(config_path: str) -> None: """ Initializes VCX with config file. :param config_path: String Example: await vcx_init('/home/username/vcxconfig.json') :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_init, "cb"): logger.debug("vcx_init: C...
python
async def vcx_init(config_path: str) -> None: """ Initializes VCX with config file. :param config_path: String Example: await vcx_init('/home/username/vcxconfig.json') :return: """ logger = logging.getLogger(__name__) if not hasattr(vcx_init, "cb"): logger.debug("vcx_init: C...
[ "async", "def", "vcx_init", "(", "config_path", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "vcx_init", ",", "\"cb\"", ")", ":", "logger", ".", "debug", "(", "\"vcx_...
Initializes VCX with config file. :param config_path: String Example: await vcx_init('/home/username/vcxconfig.json') :return:
[ "Initializes", "VCX", "with", "config", "file", ".", ":", "param", "config_path", ":", "String", "Example", ":", "await", "vcx_init", "(", "/", "home", "/", "username", "/", "vcxconfig", ".", "json", ")", ":", "return", ":" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/vcx_init.py#L7-L28
train
Initializes VCX with config file.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential_def.py
CredentialDef.create
async def create(source_id: str, name: str, schema_id: str, payment_handle: int): """ Creates a new CredentialDef object that is written to the ledger :param source_id: Institution's unique ID for the credential definition :param name: Name of credential definition :param schema...
python
async def create(source_id: str, name: str, schema_id: str, payment_handle: int): """ Creates a new CredentialDef object that is written to the ledger :param source_id: Institution's unique ID for the credential definition :param name: Name of credential definition :param schema...
[ "async", "def", "create", "(", "source_id", ":", "str", ",", "name", ":", "str", ",", "schema_id", ":", "str", ",", "payment_handle", ":", "int", ")", ":", "constructor_params", "=", "(", "source_id", ",", "name", ",", "schema_id", ")", "c_source_id", "=...
Creates a new CredentialDef object that is written to the ledger :param source_id: Institution's unique ID for the credential definition :param name: Name of credential definition :param schema_id: The schema ID given during the creation of the schema :param payment_handle: NYI - paymen...
[ "Creates", "a", "new", "CredentialDef", "object", "that", "is", "written", "to", "the", "ledger" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L46-L76
train
Creates a new CredentialDef object that is written to the ledger.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential_def.py
CredentialDef.deserialize
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await Credentia...
python
async def deserialize(data: dict): """ Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await Credentia...
[ "async", "def", "deserialize", "(", "data", ":", "dict", ")", ":", "try", ":", "credential_def", "=", "await", "CredentialDef", ".", "_deserialize", "(", "\"vcx_credentialdef_deserialize\"", ",", "json", ".", "dumps", "(", "data", ")", ",", "data", "[", "'da...
Create the object from a previously serialized object. :param data: The output of the "serialize" call Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle)...
[ "Create", "the", "object", "from", "a", "previously", "serialized", "object", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L94-L116
train
Deserialize a previously serialized credential definition.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/credential_def.py
CredentialDef.get_cred_def_id
async def get_cred_def_id(self): """ Get the ledger ID of the object Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle) assert await cred...
python
async def get_cred_def_id(self): """ Get the ledger ID of the object Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle) assert await cred...
[ "async", "def", "get_cred_def_id", "(", "self", ")", ":", "cb", "=", "create_cb", "(", "CFUNCTYPE", "(", "None", ",", "c_uint32", ",", "c_uint32", ",", "c_char_p", ")", ")", "c_handle", "=", "c_uint32", "(", "self", ".", "handle", ")", "cred_def_id", "="...
Get the ledger ID of the object Example: source_id = 'foobar123' schema_name = 'Schema Name' payment_handle = 0 credential_def1 = await CredentialDef.create(source_id, name, schema_id, payment_handle) assert await credential_def.get_cred_def_id() == '2hoqvcwupRTUNkXn6ArY...
[ "Get", "the", "ledger", "ID", "of", "the", "object" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential_def.py#L119-L134
train
Get the ledger ID of the object containing credential definitions.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pool.py
create_pool_ledger_config
async def create_pool_ledger_config(config_name: str, config: Optional[str]) -> None: """ Creates a new local pool ledger configuration that can be used later to connect pool nodes. :param config_name: Name of the pool ledger configuration. :param config: (optional) ...
python
async def create_pool_ledger_config(config_name: str, config: Optional[str]) -> None: """ Creates a new local pool ledger configuration that can be used later to connect pool nodes. :param config_name: Name of the pool ledger configuration. :param config: (optional) ...
[ "async", "def", "create_pool_ledger_config", "(", "config_name", ":", "str", ",", "config", ":", "Optional", "[", "str", "]", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"create_p...
Creates a new local pool ledger configuration that can be used later to connect pool nodes. :param config_name: Name of the pool ledger configuration. :param config: (optional) Pool configuration json. if NULL, then default config will be used. Example: { "genesis_txn": string (optional), A...
[ "Creates", "a", "new", "local", "pool", "ledger", "configuration", "that", "can", "be", "used", "later", "to", "connect", "pool", "nodes", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L10-L42
train
Create a new local pool ledger configuration.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pool.py
refresh_pool_ledger
async def refresh_pool_ledger(handle: int) -> None: """ Refreshes a local copy of a pool ledger and updates pool nodes connections. :param handle: pool handle returned by indy_open_pool_ledger :return: Error code """ logger = logging.getLogger(__name__) logger.debug("refresh_pool_ledger: >...
python
async def refresh_pool_ledger(handle: int) -> None: """ Refreshes a local copy of a pool ledger and updates pool nodes connections. :param handle: pool handle returned by indy_open_pool_ledger :return: Error code """ logger = logging.getLogger(__name__) logger.debug("refresh_pool_ledger: >...
[ "async", "def", "refresh_pool_ledger", "(", "handle", ":", "int", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"refresh_pool_ledger: >>> config_name: %r\"", ",", "handle", ")", "if", "...
Refreshes a local copy of a pool ledger and updates pool nodes connections. :param handle: pool handle returned by indy_open_pool_ledger :return: Error code
[ "Refreshes", "a", "local", "copy", "of", "a", "pool", "ledger", "and", "updates", "pool", "nodes", "connections", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L88-L111
train
Refreshes a local copy of a pool ledger and updates pool nodes connections.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pool.py
list_pools
async def list_pools() -> None: """ Lists names of created pool ledgers :return: Error code """ logger = logging.getLogger(__name__) logger.debug("list_pools: >>> ") if not hasattr(list_pools, "cb"): logger.debug("list_pools: Creating callback") list_pools.cb = create_cb(CF...
python
async def list_pools() -> None: """ Lists names of created pool ledgers :return: Error code """ logger = logging.getLogger(__name__) logger.debug("list_pools: >>> ") if not hasattr(list_pools, "cb"): logger.debug("list_pools: Creating callback") list_pools.cb = create_cb(CF...
[ "async", "def", "list_pools", "(", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"list_pools: >>> \"", ")", "if", "not", "hasattr", "(", "list_pools", ",", "\"cb\"", ")", ":", "lo...
Lists names of created pool ledgers :return: Error code
[ "Lists", "names", "of", "created", "pool", "ledgers", ":", "return", ":", "Error", "code" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L113-L130
train
Lists names of created pool ledgers
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pool.py
delete_pool_ledger_config
async def delete_pool_ledger_config(config_name: str) -> None: """ Deletes created pool ledger configuration. :param config_name: Name of the pool ledger configuration to delete. :return: Error code """ logger = logging.getLogger(__name__) logger.debug("delete_pool_ledger_config: >>> confi...
python
async def delete_pool_ledger_config(config_name: str) -> None: """ Deletes created pool ledger configuration. :param config_name: Name of the pool ledger configuration to delete. :return: Error code """ logger = logging.getLogger(__name__) logger.debug("delete_pool_ledger_config: >>> confi...
[ "async", "def", "delete_pool_ledger_config", "(", "config_name", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"delete_pool_ledger_config: >>> config_name: %r\"", ",", "config_nam...
Deletes created pool ledger configuration. :param config_name: Name of the pool ledger configuration to delete. :return: Error code
[ "Deletes", "created", "pool", "ledger", "configuration", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L158-L181
train
Delete pool ledger configuration.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/pool.py
set_protocol_version
async def set_protocol_version(protocol_version: int) -> None: """ Set PROTOCOL_VERSION to specific version. There is a global property PROTOCOL_VERSION that used in every request to the pool and specified version of Indy Node which Libindy works. By default PROTOCOL_VERSION=1. :param protocol...
python
async def set_protocol_version(protocol_version: int) -> None: """ Set PROTOCOL_VERSION to specific version. There is a global property PROTOCOL_VERSION that used in every request to the pool and specified version of Indy Node which Libindy works. By default PROTOCOL_VERSION=1. :param protocol...
[ "async", "def", "set_protocol_version", "(", "protocol_version", ":", "int", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"set_protocol_version: >>> protocol_version: %r\"", ",", "protocol_v...
Set PROTOCOL_VERSION to specific version. There is a global property PROTOCOL_VERSION that used in every request to the pool and specified version of Indy Node which Libindy works. By default PROTOCOL_VERSION=1. :param protocol_version: Protocol version will be used: 1 - for Indy Node 1.3 ...
[ "Set", "PROTOCOL_VERSION", "to", "specific", "version", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/pool.py#L184-L211
train
Set protocol version of the current node.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.open_search
async def open_search(type_: str, query: dict, options: dict): """ Opens a search handle within the storage wallet. :param type_: String :param query: dictionary :param options: dictionary Example: query_json = {"tagName1": "str1"} type_ = 'TestType' ...
python
async def open_search(type_: str, query: dict, options: dict): """ Opens a search handle within the storage wallet. :param type_: String :param query: dictionary :param options: dictionary Example: query_json = {"tagName1": "str1"} type_ = 'TestType' ...
[ "async", "def", "open_search", "(", "type_", ":", "str", ",", "query", ":", "dict", ",", "options", ":", "dict", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "open_search", ",",...
Opens a search handle within the storage wallet. :param type_: String :param query: dictionary :param options: dictionary Example: query_json = {"tagName1": "str1"} type_ = 'TestType' search_handle = await Wallet.open_search(type_, query_json, None) :retu...
[ "Opens", "a", "search", "handle", "within", "the", "storage", "wallet", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L28-L58
train
Opens a search handle within the storage wallet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.search_next_records
async def search_next_records(handle: int, count: int): """ Searches for next n record from an open search handle :param handle: int :param count: int Example: query_json = {"tagName1": "str1"} type_ = 'TestType' search_handle = await Wallet.open_search(...
python
async def search_next_records(handle: int, count: int): """ Searches for next n record from an open search handle :param handle: int :param count: int Example: query_json = {"tagName1": "str1"} type_ = 'TestType' search_handle = await Wallet.open_search(...
[ "async", "def", "search_next_records", "(", "handle", ":", "int", ",", "count", ":", "int", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "search_next_records", ",", "\"cb\"", ")", ...
Searches for next n record from an open search handle :param handle: int :param count: int Example: query_json = {"tagName1": "str1"} type_ = 'TestType' search_handle = await Wallet.open_search(type_, query_json, None) results = await Wallet.search_next_records(...
[ "Searches", "for", "next", "n", "record", "from", "an", "open", "search", "handle" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L61-L88
train
Search next n records from an open search handle.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.get_record
async def get_record(type_: str, id: str, options: str): """ Retrieves a record from the wallet storage. :param type_: String :param id: String :param options: String Example: import json await Wallet.add_record({ 'id': 'RecordId', ...
python
async def get_record(type_: str, id: str, options: str): """ Retrieves a record from the wallet storage. :param type_: String :param id: String :param options: String Example: import json await Wallet.add_record({ 'id': 'RecordId', ...
[ "async", "def", "get_record", "(", "type_", ":", "str", ",", "id", ":", "str", ",", "options", ":", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "get_record", ",", "\"c...
Retrieves a record from the wallet storage. :param type_: String :param id: String :param options: String Example: import json await Wallet.add_record({ 'id': 'RecordId', 'tags': json.dumps({ 'tag1': 'unencrypted value1', ...
[ "Retrieves", "a", "record", "from", "the", "wallet", "storage", ".", ":", "param", "type_", ":", "String", ":", "param", "id", ":", "String", ":", "param", "options", ":", "String", "Example", ":", "import", "json", "await", "Wallet", ".", "add_record", ...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L91-L130
train
Retrieves a record from the wallet storage.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.delete_record
async def delete_record(type_: str, id: str): """ Delete a record from the storage wallet. :param type_: :param id: Example: await Wallet.add_record({ 'id': 'RecordId', 'tags': json.dumps({ 'tag1': 'unencrypted value1', ...
python
async def delete_record(type_: str, id: str): """ Delete a record from the storage wallet. :param type_: :param id: Example: await Wallet.add_record({ 'id': 'RecordId', 'tags': json.dumps({ 'tag1': 'unencrypted value1', ...
[ "async", "def", "delete_record", "(", "type_", ":", "str", ",", "id", ":", "str", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "delete_record", ",", "\"cb\"", ")", ":", "logger"...
Delete a record from the storage wallet. :param type_: :param id: Example: await Wallet.add_record({ 'id': 'RecordId', 'tags': json.dumps({ 'tag1': 'unencrypted value1', '~encryptedTag', 'this value is encrypted, 'i...
[ "Delete", "a", "record", "from", "the", "storage", "wallet", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L133-L167
train
Delete a record from the storage wallet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.get_token_info
async def get_token_info(handle: int) -> str: """ Retrieves from the ledger token info associated with the wallet. :param handle: Example: payment_handle = 0 // payment handle is always 0, for now. info = await Wallet.get_token_info(payment_handle) :return: ...
python
async def get_token_info(handle: int) -> str: """ Retrieves from the ledger token info associated with the wallet. :param handle: Example: payment_handle = 0 // payment handle is always 0, for now. info = await Wallet.get_token_info(payment_handle) :return: ...
[ "async", "def", "get_token_info", "(", "handle", ":", "int", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "get_token_info", ",", "\"cb\"", ")", ":", "logger", ".", ...
Retrieves from the ledger token info associated with the wallet. :param handle: Example: payment_handle = 0 // payment handle is always 0, for now. info = await Wallet.get_token_info(payment_handle) :return:
[ "Retrieves", "from", "the", "ledger", "token", "info", "associated", "with", "the", "wallet", ".", ":", "param", "handle", ":", "Example", ":", "payment_handle", "=", "0", "//", "payment", "handle", "is", "always", "0", "for", "now", ".", "info", "=", "a...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L357-L379
train
Retrieves the ledger token info associated with the given handle.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.create_payment_address
async def create_payment_address(seed: str = None) -> str: """ Creates a payment address inside the wallet. :param seed: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') :return: String """ logger = logging....
python
async def create_payment_address(seed: str = None) -> str: """ Creates a payment address inside the wallet. :param seed: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') :return: String """ logger = logging....
[ "async", "def", "create_payment_address", "(", "seed", ":", "str", "=", "None", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "create_payment_address", ",", "\"cb\"", ")...
Creates a payment address inside the wallet. :param seed: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') :return: String
[ "Creates", "a", "payment", "address", "inside", "the", "wallet", ".", ":", "param", "seed", ":", "String", "Example", ":", "address", "=", "await", "Wallet", ".", "create_payment_address", "(", "00000000000000000000000001234567", ")", ":", "return", ":", "String...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L382-L406
train
Creates a payment address inside the wallet.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.validate_payment_address
async def validate_payment_address(address: str) -> None: """ Determines whether a payment address is valid or not :param address: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') b = await Wallet.validate_payment_address(a...
python
async def validate_payment_address(address: str) -> None: """ Determines whether a payment address is valid or not :param address: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') b = await Wallet.validate_payment_address(a...
[ "async", "def", "validate_payment_address", "(", "address", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "validate_payment_address", ",", "\"cb\"", ")", ":",...
Determines whether a payment address is valid or not :param address: String Example: address = await Wallet.create_payment_address('00000000000000000000000001234567') b = await Wallet.validate_payment_address(address) :return: Boolean
[ "Determines", "whether", "a", "payment", "address", "is", "valid", "or", "not", ":", "param", "address", ":", "String", "Example", ":", "address", "=", "await", "Wallet", ".", "create_payment_address", "(", "00000000000000000000000001234567", ")", "b", "=", "awa...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L409-L431
train
Determines whether a payment address is valid or not.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.send_tokens
async def send_tokens(payment_handle: int, tokens: int, address: str) -> str: """ Sends tokens to an address payment_handle is always 0 :param payment_handle: Integer :param tokens: Integer :param address: String Example: payment_handle = 0 amount ...
python
async def send_tokens(payment_handle: int, tokens: int, address: str) -> str: """ Sends tokens to an address payment_handle is always 0 :param payment_handle: Integer :param tokens: Integer :param address: String Example: payment_handle = 0 amount ...
[ "async", "def", "send_tokens", "(", "payment_handle", ":", "int", ",", "tokens", ":", "int", ",", "address", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", "."...
Sends tokens to an address payment_handle is always 0 :param payment_handle: Integer :param tokens: Integer :param address: String Example: payment_handle = 0 amount = 1000 address = await Wallet.create_payment_address('00000000000000000000000001234567') ...
[ "Sends", "tokens", "to", "an", "address", "payment_handle", "is", "always", "0", ":", "param", "payment_handle", ":", "Integer", ":", "param", "tokens", ":", "Integer", ":", "param", "address", ":", "String", "Example", ":", "payment_handle", "=", "0", "amou...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L434-L465
train
Send tokens to an address.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.export
async def export(path, backup_key): """ Exports opened wallet :param path: Path to export wallet to User's File System. :param backupKey: String representing the User's Key for securing (encrypting) the exported Wallet. :return: Error code - success indicates that the wal...
python
async def export(path, backup_key): """ Exports opened wallet :param path: Path to export wallet to User's File System. :param backupKey: String representing the User's Key for securing (encrypting) the exported Wallet. :return: Error code - success indicates that the wal...
[ "async", "def", "export", "(", "path", ",", "backup_key", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "export", ",", "\"cb\"", ")", ":", "logger", ".", "debug", "(", "\"vcx_wal...
Exports opened wallet :param path: Path to export wallet to User's File System. :param backupKey: String representing the User's Key for securing (encrypting) the exported Wallet. :return: Error code - success indicates that the wallet was successfully exported.
[ "Exports", "opened", "wallet", ":", "param", "path", ":", "Path", "to", "export", "wallet", "to", "User", "s", "File", "System", ".", ":", "param", "backupKey", ":", "String", "representing", "the", "User", "s", "Key", "for", "securing", "(", "encrypting",...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L468-L491
train
Exports the wallet to User s File System.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
vcx/wrappers/python3/vcx/api/wallet.py
Wallet.import_wallet
async def import_wallet(config): """ Imports wallet from file with given key. Cannot be used if wallet is already opened (Especially if vcx_init has already been used). :param config: Can be same config that is passed to vcx_init. Must include: '{"wallet_name":"","wallet_key":"",...
python
async def import_wallet(config): """ Imports wallet from file with given key. Cannot be used if wallet is already opened (Especially if vcx_init has already been used). :param config: Can be same config that is passed to vcx_init. Must include: '{"wallet_name":"","wallet_key":"",...
[ "async", "def", "import_wallet", "(", "config", ")", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "if", "not", "hasattr", "(", "Wallet", ".", "import_wallet", ",", "\"cb\"", ")", ":", "logger", ".", "debug", "(", "\"vcx_wallet_imp...
Imports wallet from file with given key. Cannot be used if wallet is already opened (Especially if vcx_init has already been used). :param config: Can be same config that is passed to vcx_init. Must include: '{"wallet_name":"","wallet_key":"","exported_wallet_path":"","backup_key":""}' :...
[ "Imports", "wallet", "from", "file", "with", "given", "key", ".", "Cannot", "be", "used", "if", "wallet", "is", "already", "opened", "(", "Especially", "if", "vcx_init", "has", "already", "been", "used", ")", ".", ":", "param", "config", ":", "Can", "be"...
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/wallet.py#L494-L517
train
Imports wallet from file with given key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/non_secrets.py
update_wallet_record_value
async def update_wallet_record_value(wallet_handle: int, type_: str, id_: str, value: str) -> None: """ Update a non-secret wallet record value :param wallet_handle: wallet handler (created by ope...
python
async def update_wallet_record_value(wallet_handle: int, type_: str, id_: str, value: str) -> None: """ Update a non-secret wallet record value :param wallet_handle: wallet handler (created by ope...
[ "async", "def", "update_wallet_record_value", "(", "wallet_handle", ":", "int", ",", "type_", ":", "str", ",", "id_", ":", "str", ",", "value", ":", "str", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger"...
Update a non-secret wallet record value :param wallet_handle: wallet handler (created by open_wallet). :param type_: allows to separate different record types collections :param id_: the id of record :param value: the value of record :return: None
[ "Update", "a", "non", "-", "secret", "wallet", "record", "value" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/non_secrets.py#L61-L99
train
Update a non - secret wallet record value.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/non_secrets.py
get_wallet_record
async def get_wallet_record(wallet_handle: int, type_: str, id: str, options_json: str) -> str: """ Get an wallet record by id :param wallet_handle: wallet handler (created by open_wallet). :param type_: allows to separ...
python
async def get_wallet_record(wallet_handle: int, type_: str, id: str, options_json: str) -> str: """ Get an wallet record by id :param wallet_handle: wallet handler (created by open_wallet). :param type_: allows to separ...
[ "async", "def", "get_wallet_record", "(", "wallet_handle", ":", "int", ",", "type_", ":", "str", ",", "id", ":", "str", ",", "options_json", ":", "str", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ...
Get an wallet record by id :param wallet_handle: wallet handler (created by open_wallet). :param type_: allows to separate different record types collections :param id: the id of record :param options_json: //TODO: FIXME: Think about replacing by bitmask { retrieveType: (optional, false b...
[ "Get", "an", "wallet", "record", "by", "id" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/non_secrets.py#L273-L323
train
Get an wallet record by id.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/non_secrets.py
open_wallet_search
async def open_wallet_search(wallet_handle: int, type_: str, query_json: str, options_json: str) -> int: """ Search for wallet records :param wallet_handle: wallet handler (created by open_wallet). :param type_: allo...
python
async def open_wallet_search(wallet_handle: int, type_: str, query_json: str, options_json: str) -> int: """ Search for wallet records :param wallet_handle: wallet handler (created by open_wallet). :param type_: allo...
[ "async", "def", "open_wallet_search", "(", "wallet_handle", ":", "int", ",", "type_", ":", "str", ",", "query_json", ":", "str", ",", "options_json", ":", "str", ")", "->", "int", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "lo...
Search for wallet records :param wallet_handle: wallet handler (created by open_wallet). :param type_: allows to separate different record types collections :param query_json: MongoDB style query to wallet record tags: { "tagName": "tagValue", $or: { "tagName2": { $regex: 'p...
[ "Search", "for", "wallet", "records" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/non_secrets.py#L326-L380
train
Search for wallet records by small batches.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/non_secrets.py
fetch_wallet_search_next_records
async def fetch_wallet_search_next_records(wallet_handle: int, wallet_search_handle: int, count: int) -> str: """ Fetch next records for wallet search. :param wallet_handle: wallet handler (created by open_wallet). :p...
python
async def fetch_wallet_search_next_records(wallet_handle: int, wallet_search_handle: int, count: int) -> str: """ Fetch next records for wallet search. :param wallet_handle: wallet handler (created by open_wallet). :p...
[ "async", "def", "fetch_wallet_search_next_records", "(", "wallet_handle", ":", "int", ",", "wallet_search_handle", ":", "int", ",", "count", ":", "int", ")", "->", "str", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "...
Fetch next records for wallet search. :param wallet_handle: wallet handler (created by open_wallet). :param wallet_search_handle: wallet wallet handle (created by open_wallet_search) :param count: Count of records to fetch :return: wallet records json: { totalCount: <str>, // present only i...
[ "Fetch", "next", "records", "for", "wallet", "search", "." ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/non_secrets.py#L383-L426
train
Fetch next records for wallet search.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
hyperledger/indy-sdk
wrappers/python/indy/non_secrets.py
close_wallet_search
async def close_wallet_search(wallet_search_handle: int) -> None: """ Close wallet search (make search handle invalid) :param wallet_search_handle: wallet wallet handle (created by open_wallet_search) :return: None """ logger = logging.getLogger(__name__) logger.debug("close_wallet_search:...
python
async def close_wallet_search(wallet_search_handle: int) -> None: """ Close wallet search (make search handle invalid) :param wallet_search_handle: wallet wallet handle (created by open_wallet_search) :return: None """ logger = logging.getLogger(__name__) logger.debug("close_wallet_search:...
[ "async", "def", "close_wallet_search", "(", "wallet_search_handle", ":", "int", ")", "->", "None", ":", "logger", "=", "logging", ".", "getLogger", "(", "__name__", ")", "logger", ".", "debug", "(", "\"close_wallet_search: >>> wallet_search_handle: %r\"", ",", "wall...
Close wallet search (make search handle invalid) :param wallet_search_handle: wallet wallet handle (created by open_wallet_search) :return: None
[ "Close", "wallet", "search", "(", "make", "search", "handle", "invalid", ")" ]
55240dc170308d7883c48f03f308130a6d077be6
https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/non_secrets.py#L429-L452
train
Close wallet search.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/marks.py
register_mark
def register_mark(key=None): """Returns a decorator registering a mark class in the mark type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot mark so that the frontend can use this key regardless of the kernel language. """ def wrap(mark)...
python
def register_mark(key=None): """Returns a decorator registering a mark class in the mark type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot mark so that the frontend can use this key regardless of the kernel language. """ def wrap(mark)...
[ "def", "register_mark", "(", "key", "=", "None", ")", ":", "def", "wrap", "(", "mark", ")", ":", "name", "=", "key", "if", "key", "is", "not", "None", "else", "mark", ".", "__module__", "+", "mark", ".", "__name__", "Mark", ".", "mark_types", "[", ...
Returns a decorator registering a mark class in the mark type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot mark so that the frontend can use this key regardless of the kernel language.
[ "Returns", "a", "decorator", "registering", "a", "mark", "class", "in", "the", "mark", "type", "registry", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/marks.py#L60-L71
train
Returns a decorator registering a mark class in the mark type registry.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/marks.py
Mark._get_dimension_scales
def _get_dimension_scales(self, dimension, preserve_domain=False): """ Return the list of scales corresponding to a given dimension. The preserve_domain optional argument specifies whether one should filter out the scales for which preserve_domain is set to True. """ if ...
python
def _get_dimension_scales(self, dimension, preserve_domain=False): """ Return the list of scales corresponding to a given dimension. The preserve_domain optional argument specifies whether one should filter out the scales for which preserve_domain is set to True. """ if ...
[ "def", "_get_dimension_scales", "(", "self", ",", "dimension", ",", "preserve_domain", "=", "False", ")", ":", "if", "preserve_domain", ":", "return", "[", "self", ".", "scales", "[", "k", "]", "for", "k", "in", "self", ".", "scales", "if", "(", "k", "...
Return the list of scales corresponding to a given dimension. The preserve_domain optional argument specifies whether one should filter out the scales for which preserve_domain is set to True.
[ "Return", "the", "list", "of", "scales", "corresponding", "to", "a", "given", "dimension", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/marks.py#L192-L213
train
Returns the list of scales corresponding to a given dimension.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/marks.py
Mark._validate_scales
def _validate_scales(self, proposal): """ Validates the `scales` based on the mark's scaled attributes metadata. First checks for missing scale and then for 'rtype' compatibility. """ # Validate scales' 'rtype' versus data attribute 'rtype' decoration # At this stage it ...
python
def _validate_scales(self, proposal): """ Validates the `scales` based on the mark's scaled attributes metadata. First checks for missing scale and then for 'rtype' compatibility. """ # Validate scales' 'rtype' versus data attribute 'rtype' decoration # At this stage it ...
[ "def", "_validate_scales", "(", "self", ",", "proposal", ")", ":", "# Validate scales' 'rtype' versus data attribute 'rtype' decoration", "# At this stage it is already validated that all values in self.scales", "# are instances of Scale.", "scales", "=", "proposal", ".", "value", "f...
Validates the `scales` based on the mark's scaled attributes metadata. First checks for missing scale and then for 'rtype' compatibility.
[ "Validates", "the", "scales", "based", "on", "the", "mark", "s", "scaled", "attributes", "metadata", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/marks.py#L216-L238
train
Validate the scales based on the mark s scaled attributes metadata.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/axes.py
register_axis
def register_axis(key=None): """Returns a decorator registering an axis class in the axis type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot axis so that the frontend can use this key regardless of the kernel language. """ def wrap(axis...
python
def register_axis(key=None): """Returns a decorator registering an axis class in the axis type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot axis so that the frontend can use this key regardless of the kernel language. """ def wrap(axis...
[ "def", "register_axis", "(", "key", "=", "None", ")", ":", "def", "wrap", "(", "axis", ")", ":", "name", "=", "key", "if", "key", "is", "not", "None", "else", "axis", ".", "__module__", "+", "axis", ".", "__name__", "BaseAxis", ".", "axis_types", "["...
Returns a decorator registering an axis class in the axis type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot axis so that the frontend can use this key regardless of the kernel language.
[ "Returns", "a", "decorator", "registering", "an", "axis", "class", "in", "the", "axis", "type", "registry", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/axes.py#L39-L50
train
Returns a decorator registering an axis class in the axis type registry.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/interacts.py
register_interaction
def register_interaction(key=None): """Decorator registering an interaction class in the registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot interaction type so that the frontend can use this key regardless of the kernal language. """ def wra...
python
def register_interaction(key=None): """Decorator registering an interaction class in the registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot interaction type so that the frontend can use this key regardless of the kernal language. """ def wra...
[ "def", "register_interaction", "(", "key", "=", "None", ")", ":", "def", "wrap", "(", "interaction", ")", ":", "name", "=", "key", "if", "key", "is", "not", "None", "else", "interaction", ".", "__module__", "+", "interaction", ".", "__name__", "interaction...
Decorator registering an interaction class in the registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot interaction type so that the frontend can use this key regardless of the kernal language.
[ "Decorator", "registering", "an", "interaction", "class", "in", "the", "registry", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/interacts.py#L51-L63
train
Decorator registering an interaction class in the registry.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/interacts.py
panzoom
def panzoom(marks): """Helper function for panning and zooming over a set of marks. Creates and returns a panzoom interaction with the 'x' and 'y' dimension scales of the specified marks. """ return PanZoom(scales={ 'x': sum([mark._get_dimension_scales('x', preserve_domain=True) for mar...
python
def panzoom(marks): """Helper function for panning and zooming over a set of marks. Creates and returns a panzoom interaction with the 'x' and 'y' dimension scales of the specified marks. """ return PanZoom(scales={ 'x': sum([mark._get_dimension_scales('x', preserve_domain=True) for mar...
[ "def", "panzoom", "(", "marks", ")", ":", "return", "PanZoom", "(", "scales", "=", "{", "'x'", ":", "sum", "(", "[", "mark", ".", "_get_dimension_scales", "(", "'x'", ",", "preserve_domain", "=", "True", ")", "for", "mark", "in", "marks", "]", ",", "...
Helper function for panning and zooming over a set of marks. Creates and returns a panzoom interaction with the 'x' and 'y' dimension scales of the specified marks.
[ "Helper", "function", "for", "panning", "and", "zooming", "over", "a", "set", "of", "marks", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/interacts.py#L164-L173
train
Returns a PanZoom interaction with the x and y dimension scales of the specified marks.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/scales.py
register_scale
def register_scale(key=None): """Returns a decorator to register a scale type in the scale type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot scale type so that the frontend can use this key regardless of the kernal language. """ de...
python
def register_scale(key=None): """Returns a decorator to register a scale type in the scale type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot scale type so that the frontend can use this key regardless of the kernal language. """ de...
[ "def", "register_scale", "(", "key", "=", "None", ")", ":", "def", "wrap", "(", "scale", ")", ":", "label", "=", "key", "if", "key", "is", "not", "None", "else", "scale", ".", "__module__", "+", "scale", ".", "__name__", "Scale", ".", "scale_types", ...
Returns a decorator to register a scale type in the scale type registry. If no key is provided, the class name is used as a key. A key is provided for each core bqplot scale type so that the frontend can use this key regardless of the kernal language.
[ "Returns", "a", "decorator", "to", "register", "a", "scale", "type", "in", "the", "scale", "type", "registry", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/scales.py#L49-L61
train
Returns a decorator to register a scale type in the scale registry.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/install.py
install
def install(user=False, symlink=False, overwrite=False, **kwargs): """Install the bqplot nbextension. Parameters ---------- user: bool Install for current user instead of system-wide. symlink: bool Symlink instead of copy (for development). overwrite: bool Overwrite...
python
def install(user=False, symlink=False, overwrite=False, **kwargs): """Install the bqplot nbextension. Parameters ---------- user: bool Install for current user instead of system-wide. symlink: bool Symlink instead of copy (for development). overwrite: bool Overwrite...
[ "def", "install", "(", "user", "=", "False", ",", "symlink", "=", "False", ",", "overwrite", "=", "False", ",", "*", "*", "kwargs", ")", ":", "directory", "=", "join", "(", "dirname", "(", "abspath", "(", "__file__", ")", ")", ",", "'nbextension'", "...
Install the bqplot nbextension. Parameters ---------- user: bool Install for current user instead of system-wide. symlink: bool Symlink instead of copy (for development). overwrite: bool Overwrite previously-installed files for this extension **kwargs: keyword argum...
[ "Install", "the", "bqplot", "nbextension", ".", "Parameters", "----------" ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/install.py#L7-L25
train
Install the bqplot nbextension.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
hashable
def hashable(data, v): """Determine whether `v` can be hashed.""" try: data[v] except (TypeError, KeyError, IndexError): return False return True
python
def hashable(data, v): """Determine whether `v` can be hashed.""" try: data[v] except (TypeError, KeyError, IndexError): return False return True
[ "def", "hashable", "(", "data", ",", "v", ")", ":", "try", ":", "data", "[", "v", "]", "except", "(", "TypeError", ",", "KeyError", ",", "IndexError", ")", ":", "return", "False", "return", "True" ]
Determine whether `v` can be hashed.
[ "Determine", "whether", "v", "can", "be", "hashed", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L110-L116
train
Determine whether v can be hashed.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
show
def show(key=None, display_toolbar=True): """Shows the current context figure in the output area. Parameters ---------- key : hashable, optional Any variable that can be used as a key for a dictionary. display_toolbar: bool (default: True) If True, a toolbar for different mouse int...
python
def show(key=None, display_toolbar=True): """Shows the current context figure in the output area. Parameters ---------- key : hashable, optional Any variable that can be used as a key for a dictionary. display_toolbar: bool (default: True) If True, a toolbar for different mouse int...
[ "def", "show", "(", "key", "=", "None", ",", "display_toolbar", "=", "True", ")", ":", "if", "key", "is", "None", ":", "figure", "=", "current_figure", "(", ")", "else", ":", "figure", "=", "_context", "[", "'figure_registry'", "]", "[", "key", "]", ...
Shows the current context figure in the output area. Parameters ---------- key : hashable, optional Any variable that can be used as a key for a dictionary. display_toolbar: bool (default: True) If True, a toolbar for different mouse interaction is displayed with the figure. ...
[ "Shows", "the", "current", "context", "figure", "in", "the", "output", "area", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L119-L158
train
Shows the current context figure in the output area.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
figure
def figure(key=None, fig=None, **kwargs): """Creates figures and switches between figures. If a ``bqplot.Figure`` object is provided via the fig optional argument, this figure becomes the current context figure. Otherwise: - If no key is provided, a new empty context figure is created. - If a...
python
def figure(key=None, fig=None, **kwargs): """Creates figures and switches between figures. If a ``bqplot.Figure`` object is provided via the fig optional argument, this figure becomes the current context figure. Otherwise: - If no key is provided, a new empty context figure is created. - If a...
[ "def", "figure", "(", "key", "=", "None", ",", "fig", "=", "None", ",", "*", "*", "kwargs", ")", ":", "scales_arg", "=", "kwargs", ".", "pop", "(", "'scales'", ",", "{", "}", ")", "_context", "[", "'current_key'", "]", "=", "key", "if", "fig", "i...
Creates figures and switches between figures. If a ``bqplot.Figure`` object is provided via the fig optional argument, this figure becomes the current context figure. Otherwise: - If no key is provided, a new empty context figure is created. - If a key is provided for which a context already exis...
[ "Creates", "figures", "and", "switches", "between", "figures", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L161-L212
train
Creates a new context figure and switches between figures.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
close
def close(key): """Closes and unregister the context figure corresponding to the key. Parameters ---------- key: hashable Any variable that can be used as a key for a dictionary """ figure_registry = _context['figure_registry'] if key not in figure_registry: return if ...
python
def close(key): """Closes and unregister the context figure corresponding to the key. Parameters ---------- key: hashable Any variable that can be used as a key for a dictionary """ figure_registry = _context['figure_registry'] if key not in figure_registry: return if ...
[ "def", "close", "(", "key", ")", ":", "figure_registry", "=", "_context", "[", "'figure_registry'", "]", "if", "key", "not", "in", "figure_registry", ":", "return", "if", "_context", "[", "'figure'", "]", "==", "figure_registry", "[", "key", "]", ":", "fig...
Closes and unregister the context figure corresponding to the key. Parameters ---------- key: hashable Any variable that can be used as a key for a dictionary
[ "Closes", "and", "unregister", "the", "context", "figure", "corresponding", "to", "the", "key", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L215-L235
train
Closes and unregister the context figure corresponding to the key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
_process_data
def _process_data(*kwarg_names): """Helper function to handle data keyword argument """ def _data_decorator(func): @functools.wraps(func) def _mark_with_data(*args, **kwargs): data = kwargs.pop('data', None) if data is None: return func(*args, **kwargs...
python
def _process_data(*kwarg_names): """Helper function to handle data keyword argument """ def _data_decorator(func): @functools.wraps(func) def _mark_with_data(*args, **kwargs): data = kwargs.pop('data', None) if data is None: return func(*args, **kwargs...
[ "def", "_process_data", "(", "*", "kwarg_names", ")", ":", "def", "_data_decorator", "(", "func", ")", ":", "@", "functools", ".", "wraps", "(", "func", ")", "def", "_mark_with_data", "(", "*", "args", ",", "*", "*", "kwargs", ")", ":", "data", "=", ...
Helper function to handle data keyword argument
[ "Helper", "function", "to", "handle", "data", "keyword", "argument" ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L238-L263
train
Decorator to handle data keyword argument in a node tree tree.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
scales
def scales(key=None, scales={}): """Creates and switches between context scales. If no key is provided, a new blank context is created. If a key is provided for which a context already exists, the existing context is set as the current context. If a key is provided and no corresponding context ex...
python
def scales(key=None, scales={}): """Creates and switches between context scales. If no key is provided, a new blank context is created. If a key is provided for which a context already exists, the existing context is set as the current context. If a key is provided and no corresponding context ex...
[ "def", "scales", "(", "key", "=", "None", ",", "scales", "=", "{", "}", ")", ":", "old_ctxt", "=", "_context", "[", "'scales'", "]", "if", "key", "is", "None", ":", "# No key provided", "_context", "[", "'scales'", "]", "=", "{", "_get_attribute_dimensio...
Creates and switches between context scales. If no key is provided, a new blank context is created. If a key is provided for which a context already exists, the existing context is set as the current context. If a key is provided and no corresponding context exists, a new context is created for t...
[ "Creates", "and", "switches", "between", "context", "scales", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L266-L317
train
Creates and switches between context scales.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
set_lim
def set_lim(min, max, name): """Set the domain bounds of the scale associated with the provided key. Parameters ---------- name: hashable Any variable that can be used as a key for a dictionary Raises ------ KeyError When no context figure is associated with the provided ke...
python
def set_lim(min, max, name): """Set the domain bounds of the scale associated with the provided key. Parameters ---------- name: hashable Any variable that can be used as a key for a dictionary Raises ------ KeyError When no context figure is associated with the provided ke...
[ "def", "set_lim", "(", "min", ",", "max", ",", "name", ")", ":", "scale", "=", "_context", "[", "'scales'", "]", "[", "_get_attribute_dimension", "(", "name", ")", "]", "scale", ".", "min", "=", "min", "scale", ".", "max", "=", "max", "return", "scal...
Set the domain bounds of the scale associated with the provided key. Parameters ---------- name: hashable Any variable that can be used as a key for a dictionary Raises ------ KeyError When no context figure is associated with the provided key.
[ "Set", "the", "domain", "bounds", "of", "the", "scale", "associated", "with", "the", "provided", "key", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L332-L349
train
Sets the domain bounds of the scale associated with the provided key.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
axes
def axes(mark=None, options={}, **kwargs): """Draws axes corresponding to the scales of a given mark. It also returns a dictionary of drawn axes. If the mark is not provided, the last drawn mark is used. Parameters ---------- mark: Mark or None (default: None) The mark to inspect to cr...
python
def axes(mark=None, options={}, **kwargs): """Draws axes corresponding to the scales of a given mark. It also returns a dictionary of drawn axes. If the mark is not provided, the last drawn mark is used. Parameters ---------- mark: Mark or None (default: None) The mark to inspect to cr...
[ "def", "axes", "(", "mark", "=", "None", ",", "options", "=", "{", "}", ",", "*", "*", "kwargs", ")", ":", "if", "mark", "is", "None", ":", "mark", "=", "_context", "[", "'last_mark'", "]", "if", "mark", "is", "None", ":", "return", "{", "}", "...
Draws axes corresponding to the scales of a given mark. It also returns a dictionary of drawn axes. If the mark is not provided, the last drawn mark is used. Parameters ---------- mark: Mark or None (default: None) The mark to inspect to create axes. If None, the last mark drawn is ...
[ "Draws", "axes", "corresponding", "to", "the", "scales", "of", "a", "given", "mark", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L352-L404
train
Draws axes corresponding to the scales of a given mark.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
_set_label
def _set_label(label, mark, dim, **kwargs): """Helper function to set labels for an axis """ if mark is None: mark = _context['last_mark'] if mark is None: return {} fig = kwargs.get('figure', current_figure()) scales = mark.scales scale_metadata = mark.scales_metadata.get(di...
python
def _set_label(label, mark, dim, **kwargs): """Helper function to set labels for an axis """ if mark is None: mark = _context['last_mark'] if mark is None: return {} fig = kwargs.get('figure', current_figure()) scales = mark.scales scale_metadata = mark.scales_metadata.get(di...
[ "def", "_set_label", "(", "label", ",", "mark", ",", "dim", ",", "*", "*", "kwargs", ")", ":", "if", "mark", "is", "None", ":", "mark", "=", "_context", "[", "'last_mark'", "]", "if", "mark", "is", "None", ":", "return", "{", "}", "fig", "=", "kw...
Helper function to set labels for an axis
[ "Helper", "function", "to", "set", "labels", "for", "an", "axis" ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L407-L424
train
Helper function to set labels for an axis
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
grids
def grids(fig=None, value='solid'): """Sets the value of the grid_lines for the axis to the passed value. The default value is `solid`. Parameters ---------- fig: Figure or None(default: None) The figure for which the axes should be edited. If the value is None, the current figure i...
python
def grids(fig=None, value='solid'): """Sets the value of the grid_lines for the axis to the passed value. The default value is `solid`. Parameters ---------- fig: Figure or None(default: None) The figure for which the axes should be edited. If the value is None, the current figure i...
[ "def", "grids", "(", "fig", "=", "None", ",", "value", "=", "'solid'", ")", ":", "if", "fig", "is", "None", ":", "fig", "=", "current_figure", "(", ")", "for", "a", "in", "fig", ".", "axes", ":", "a", ".", "grid_lines", "=", "value" ]
Sets the value of the grid_lines for the axis to the passed value. The default value is `solid`. Parameters ---------- fig: Figure or None(default: None) The figure for which the axes should be edited. If the value is None, the current figure is used. value: {'none', 'solid', 'dashe...
[ "Sets", "the", "value", "of", "the", "grid_lines", "for", "the", "axis", "to", "the", "passed", "value", ".", "The", "default", "value", "is", "solid", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L451-L467
train
Sets the value of the grid_lines for the axis.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
title
def title(label, style=None): """Sets the title for the current figure. Parameters ---------- label : str The new title for the current figure. style: dict The CSS style to be applied to the figure title """ fig = current_figure() fig.title = label if style is not No...
python
def title(label, style=None): """Sets the title for the current figure. Parameters ---------- label : str The new title for the current figure. style: dict The CSS style to be applied to the figure title """ fig = current_figure() fig.title = label if style is not No...
[ "def", "title", "(", "label", ",", "style", "=", "None", ")", ":", "fig", "=", "current_figure", "(", ")", "fig", ".", "title", "=", "label", "if", "style", "is", "not", "None", ":", "fig", ".", "title_style", "=", "style" ]
Sets the title for the current figure. Parameters ---------- label : str The new title for the current figure. style: dict The CSS style to be applied to the figure title
[ "Sets", "the", "title", "for", "the", "current", "figure", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L470-L483
train
Sets the title for the current figure.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
hline
def hline(level, **kwargs): """Draws a horizontal line at the given level. Parameters ---------- level: float The level at which to draw the horizontal line. preserve_domain: boolean (default: False) If true, the line does not affect the domain of the 'y' scale. """ kwargs.s...
python
def hline(level, **kwargs): """Draws a horizontal line at the given level. Parameters ---------- level: float The level at which to draw the horizontal line. preserve_domain: boolean (default: False) If true, the line does not affect the domain of the 'y' scale. """ kwargs.s...
[ "def", "hline", "(", "level", ",", "*", "*", "kwargs", ")", ":", "kwargs", ".", "setdefault", "(", "'colors'", ",", "[", "'dodgerblue'", "]", ")", "kwargs", ".", "setdefault", "(", "'stroke_width'", ",", "1", ")", "scales", "=", "kwargs", ".", "pop", ...
Draws a horizontal line at the given level. Parameters ---------- level: float The level at which to draw the horizontal line. preserve_domain: boolean (default: False) If true, the line does not affect the domain of the 'y' scale.
[ "Draws", "a", "horizontal", "line", "at", "the", "given", "level", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L492-L518
train
Draws a horizontal line at the given level.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
_process_cmap
def _process_cmap(cmap): ''' Returns a kwarg dict suitable for a ColorScale ''' option = {} if isinstance(cmap, str): option['scheme'] = cmap elif isinstance(cmap, list): option['colors'] = cmap else: raise ValueError('''`cmap` must be a string (name of a color scheme...
python
def _process_cmap(cmap): ''' Returns a kwarg dict suitable for a ColorScale ''' option = {} if isinstance(cmap, str): option['scheme'] = cmap elif isinstance(cmap, list): option['colors'] = cmap else: raise ValueError('''`cmap` must be a string (name of a color scheme...
[ "def", "_process_cmap", "(", "cmap", ")", ":", "option", "=", "{", "}", "if", "isinstance", "(", "cmap", ",", "str", ")", ":", "option", "[", "'scheme'", "]", "=", "cmap", "elif", "isinstance", "(", "cmap", ",", "list", ")", ":", "option", "[", "'c...
Returns a kwarg dict suitable for a ColorScale
[ "Returns", "a", "kwarg", "dict", "suitable", "for", "a", "ColorScale" ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L552-L565
train
Returns a kwarg dict suitable for a ColorScale
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
set_cmap
def set_cmap(cmap): ''' Set the color map of the current 'color' scale. ''' scale = _context['scales']['color'] for k, v in _process_cmap(cmap).items(): setattr(scale, k, v) return scale
python
def set_cmap(cmap): ''' Set the color map of the current 'color' scale. ''' scale = _context['scales']['color'] for k, v in _process_cmap(cmap).items(): setattr(scale, k, v) return scale
[ "def", "set_cmap", "(", "cmap", ")", ":", "scale", "=", "_context", "[", "'scales'", "]", "[", "'color'", "]", "for", "k", ",", "v", "in", "_process_cmap", "(", "cmap", ")", ".", "items", "(", ")", ":", "setattr", "(", "scale", ",", "k", ",", "v"...
Set the color map of the current 'color' scale.
[ "Set", "the", "color", "map", "of", "the", "current", "color", "scale", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L568-L575
train
Set the color map of the current color scale.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
_draw_mark
def _draw_mark(mark_type, options={}, axes_options={}, **kwargs): """Draw the mark of specified mark type. Parameters ---------- mark_type: type The type of mark to be drawn options: dict (default: {}) Options for the scales to be created. If a scale labeled 'x' is required ...
python
def _draw_mark(mark_type, options={}, axes_options={}, **kwargs): """Draw the mark of specified mark type. Parameters ---------- mark_type: type The type of mark to be drawn options: dict (default: {}) Options for the scales to be created. If a scale labeled 'x' is required ...
[ "def", "_draw_mark", "(", "mark_type", ",", "options", "=", "{", "}", ",", "axes_options", "=", "{", "}", ",", "*", "*", "kwargs", ")", ":", "fig", "=", "kwargs", ".", "pop", "(", "'figure'", ",", "current_figure", "(", ")", ")", "scales", "=", "kw...
Draw the mark of specified mark type. Parameters ---------- mark_type: type The type of mark to be drawn options: dict (default: {}) Options for the scales to be created. If a scale labeled 'x' is required for that mark, options['x'] contains optional keyword arguments f...
[ "Draw", "the", "mark", "of", "specified", "mark", "type", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L578-L652
train
Draw the data attributes of the specified mark type.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
bloomberg/bqplot
bqplot/pyplot.py
_infer_x_for_line
def _infer_x_for_line(y): """ Infers the x for a line if no x is provided. """ array_shape = shape(y) if len(array_shape) == 0: return [] if len(array_shape) == 1: return arange(array_shape[0]) if len(array_shape) > 1: return arange(array_shape[1])
python
def _infer_x_for_line(y): """ Infers the x for a line if no x is provided. """ array_shape = shape(y) if len(array_shape) == 0: return [] if len(array_shape) == 1: return arange(array_shape[0]) if len(array_shape) > 1: return arange(array_shape[1])
[ "def", "_infer_x_for_line", "(", "y", ")", ":", "array_shape", "=", "shape", "(", "y", ")", "if", "len", "(", "array_shape", ")", "==", "0", ":", "return", "[", "]", "if", "len", "(", "array_shape", ")", "==", "1", ":", "return", "arange", "(", "ar...
Infers the x for a line if no x is provided.
[ "Infers", "the", "x", "for", "a", "line", "if", "no", "x", "is", "provided", "." ]
8eb8b163abe9ee6306f6918067e2f36c1caef2ef
https://github.com/bloomberg/bqplot/blob/8eb8b163abe9ee6306f6918067e2f36c1caef2ef/bqplot/pyplot.py#L655-L666
train
Infers the x for a line if no x is provided.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...