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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
googlemaps/google-maps-services-python | googlemaps/convert.py | decode_polyline | def decode_polyline(polyline):
"""Decodes a Polyline string into a list of lat/lng dicts.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param polyline: An encoded polyline
:type polyline: string
... | python | def decode_polyline(polyline):
"""Decodes a Polyline string into a list of lat/lng dicts.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param polyline: An encoded polyline
:type polyline: string
... | [
"def",
"decode_polyline",
"(",
"polyline",
")",
":",
"points",
"=",
"[",
"]",
"index",
"=",
"lat",
"=",
"lng",
"=",
"0",
"while",
"index",
"<",
"len",
"(",
"polyline",
")",
":",
"result",
"=",
"1",
"shift",
"=",
"0",
"while",
"True",
":",
"b",
"=... | Decodes a Polyline string into a list of lat/lng dicts.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param polyline: An encoded polyline
:type polyline: string
:rtype: list of dicts with lat/lng k... | [
"Decodes",
"a",
"Polyline",
"string",
"into",
"a",
"list",
"of",
"lat",
"/",
"lng",
"dicts",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/convert.py#L280-L319 | train | Decodes a Polyline string into a list of lat / lng dicts. | 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... |
googlemaps/google-maps-services-python | googlemaps/convert.py | encode_polyline | def encode_polyline(points):
"""Encodes a list of points into a polyline string.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param points: a list of lat/lng pairs
:type points: list of dicts or tu... | python | def encode_polyline(points):
"""Encodes a list of points into a polyline string.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param points: a list of lat/lng pairs
:type points: list of dicts or tu... | [
"def",
"encode_polyline",
"(",
"points",
")",
":",
"last_lat",
"=",
"last_lng",
"=",
"0",
"result",
"=",
"\"\"",
"for",
"point",
"in",
"points",
":",
"ll",
"=",
"normalize_lat_lng",
"(",
"point",
")",
"lat",
"=",
"int",
"(",
"round",
"(",
"ll",
"[",
... | Encodes a list of points into a polyline string.
See the developer docs for a detailed description of this encoding:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
:param points: a list of lat/lng pairs
:type points: list of dicts or tuples
:rtype: string | [
"Encodes",
"a",
"list",
"of",
"points",
"into",
"a",
"polyline",
"string",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/convert.py#L322-L353 | train | Encodes a list of points into a polyline string. | 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... |
googlemaps/google-maps-services-python | googlemaps/timezone.py | timezone | def timezone(client, location, timestamp=None, language=None):
"""Get time zone for a location on the earth, as well as that location's
time offset from UTC.
:param location: The latitude/longitude value representing the location to
look up.
:type location: string, dict, list, or tuple
:pa... | python | def timezone(client, location, timestamp=None, language=None):
"""Get time zone for a location on the earth, as well as that location's
time offset from UTC.
:param location: The latitude/longitude value representing the location to
look up.
:type location: string, dict, list, or tuple
:pa... | [
"def",
"timezone",
"(",
"client",
",",
"location",
",",
"timestamp",
"=",
"None",
",",
"language",
"=",
"None",
")",
":",
"params",
"=",
"{",
"\"location\"",
":",
"convert",
".",
"latlng",
"(",
"location",
")",
",",
"\"timestamp\"",
":",
"convert",
".",
... | Get time zone for a location on the earth, as well as that location's
time offset from UTC.
:param location: The latitude/longitude value representing the location to
look up.
:type location: string, dict, list, or tuple
:param timestamp: Timestamp specifies the desired time as seconds since
... | [
"Get",
"time",
"zone",
"for",
"a",
"location",
"on",
"the",
"earth",
"as",
"well",
"as",
"that",
"location",
"s",
"time",
"offset",
"from",
"UTC",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/timezone.py#L25-L54 | train | Get time zone for a location on the earth and optionally a timestamp. | 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... |
googlemaps/google-maps-services-python | googlemaps/roads.py | snap_to_roads | def snap_to_roads(client, path, interpolate=False):
"""Snaps a path to the most likely roads travelled.
Takes up to 100 GPS points collected along a route, and returns a similar
set of data with the points snapped to the most likely roads the vehicle
was traveling along.
:param path: The path to b... | python | def snap_to_roads(client, path, interpolate=False):
"""Snaps a path to the most likely roads travelled.
Takes up to 100 GPS points collected along a route, and returns a similar
set of data with the points snapped to the most likely roads the vehicle
was traveling along.
:param path: The path to b... | [
"def",
"snap_to_roads",
"(",
"client",
",",
"path",
",",
"interpolate",
"=",
"False",
")",
":",
"params",
"=",
"{",
"\"path\"",
":",
"convert",
".",
"location_list",
"(",
"path",
")",
"}",
"if",
"interpolate",
":",
"params",
"[",
"\"interpolate\"",
"]",
... | Snaps a path to the most likely roads travelled.
Takes up to 100 GPS points collected along a route, and returns a similar
set of data with the points snapped to the most likely roads the vehicle
was traveling along.
:param path: The path to be snapped.
:type path: a single location, or a list of ... | [
"Snaps",
"a",
"path",
"to",
"the",
"most",
"likely",
"roads",
"travelled",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/roads.py#L27-L56 | train | Snaps a path to the most likely roads travelled along a route. | 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... |
googlemaps/google-maps-services-python | googlemaps/roads.py | nearest_roads | def nearest_roads(client, points):
"""Find the closest road segments for each point
Takes up to 100 independent coordinates, and returns the closest road
segment for each point. The points passed do not need to be part of a
continuous path.
:param points: The points for which the nearest road segm... | python | def nearest_roads(client, points):
"""Find the closest road segments for each point
Takes up to 100 independent coordinates, and returns the closest road
segment for each point. The points passed do not need to be part of a
continuous path.
:param points: The points for which the nearest road segm... | [
"def",
"nearest_roads",
"(",
"client",
",",
"points",
")",
":",
"params",
"=",
"{",
"\"points\"",
":",
"convert",
".",
"location_list",
"(",
"points",
")",
"}",
"return",
"client",
".",
"_request",
"(",
"\"/v1/nearestRoads\"",
",",
"params",
",",
"base_url",... | Find the closest road segments for each point
Takes up to 100 independent coordinates, and returns the closest road
segment for each point. The points passed do not need to be part of a
continuous path.
:param points: The points for which the nearest road segments are to be
located.
:type ... | [
"Find",
"the",
"closest",
"road",
"segments",
"for",
"each",
"point"
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/roads.py#L58-L78 | train | Finds the closest road segments for each point. | 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... |
googlemaps/google-maps-services-python | googlemaps/roads.py | speed_limits | def speed_limits(client, place_ids):
"""Returns the posted speed limit (in km/h) for given road segments.
:param place_ids: The Place ID of the road segment. Place IDs are returned
by the snap_to_roads function. You can pass up to 100 Place IDs.
:type place_ids: str or list
:rtype: list of spe... | python | def speed_limits(client, place_ids):
"""Returns the posted speed limit (in km/h) for given road segments.
:param place_ids: The Place ID of the road segment. Place IDs are returned
by the snap_to_roads function. You can pass up to 100 Place IDs.
:type place_ids: str or list
:rtype: list of spe... | [
"def",
"speed_limits",
"(",
"client",
",",
"place_ids",
")",
":",
"params",
"=",
"[",
"(",
"\"placeId\"",
",",
"place_id",
")",
"for",
"place_id",
"in",
"convert",
".",
"as_list",
"(",
"place_ids",
")",
"]",
"return",
"client",
".",
"_request",
"(",
"\"/... | Returns the posted speed limit (in km/h) for given road segments.
:param place_ids: The Place ID of the road segment. Place IDs are returned
by the snap_to_roads function. You can pass up to 100 Place IDs.
:type place_ids: str or list
:rtype: list of speed limits. | [
"Returns",
"the",
"posted",
"speed",
"limit",
"(",
"in",
"km",
"/",
"h",
")",
"for",
"given",
"road",
"segments",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/roads.py#L80-L95 | train | Returns the posted speed limit for given ROAD segments. | 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... |
googlemaps/google-maps-services-python | googlemaps/roads.py | snapped_speed_limits | def snapped_speed_limits(client, path):
"""Returns the posted speed limit (in km/h) for given road segments.
The provided points will first be snapped to the most likely roads the
vehicle was traveling along.
:param path: The path of points to be snapped.
:type path: a single location, or a list o... | python | def snapped_speed_limits(client, path):
"""Returns the posted speed limit (in km/h) for given road segments.
The provided points will first be snapped to the most likely roads the
vehicle was traveling along.
:param path: The path of points to be snapped.
:type path: a single location, or a list o... | [
"def",
"snapped_speed_limits",
"(",
"client",
",",
"path",
")",
":",
"params",
"=",
"{",
"\"path\"",
":",
"convert",
".",
"location_list",
"(",
"path",
")",
"}",
"return",
"client",
".",
"_request",
"(",
"\"/v1/speedLimits\"",
",",
"params",
",",
"base_url",... | Returns the posted speed limit (in km/h) for given road segments.
The provided points will first be snapped to the most likely roads the
vehicle was traveling along.
:param path: The path of points to be snapped.
:type path: a single location, or a list of locations, where a
location is a stri... | [
"Returns",
"the",
"posted",
"speed",
"limit",
"(",
"in",
"km",
"/",
"h",
")",
"for",
"given",
"road",
"segments",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/roads.py#L98-L116 | train | Returns the posted speed limit for the given path. | 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... |
googlemaps/google-maps-services-python | googlemaps/roads.py | _roads_extract | def _roads_extract(resp):
"""Extracts a result from a Roads API HTTP response."""
try:
j = resp.json()
except:
if resp.status_code != 200:
raise googlemaps.exceptions.HTTPError(resp.status_code)
raise googlemaps.exceptions.ApiError("UNKNOWN_ERROR",
... | python | def _roads_extract(resp):
"""Extracts a result from a Roads API HTTP response."""
try:
j = resp.json()
except:
if resp.status_code != 200:
raise googlemaps.exceptions.HTTPError(resp.status_code)
raise googlemaps.exceptions.ApiError("UNKNOWN_ERROR",
... | [
"def",
"_roads_extract",
"(",
"resp",
")",
":",
"try",
":",
"j",
"=",
"resp",
".",
"json",
"(",
")",
"except",
":",
"if",
"resp",
".",
"status_code",
"!=",
"200",
":",
"raise",
"googlemaps",
".",
"exceptions",
".",
"HTTPError",
"(",
"resp",
".",
"sta... | Extracts a result from a Roads API HTTP response. | [
"Extracts",
"a",
"result",
"from",
"a",
"Roads",
"API",
"HTTP",
"response",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/roads.py#L119-L144 | train | Extracts a result from a Roads API HTTP response. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | find_place | def find_place(client, input, input_type, fields=None, location_bias=None,
language=None):
"""
A Find Place request takes a text input, and returns a place.
The text input can be any kind of Places data, for example,
a name, address, or phone number.
:param input: The text input spe... | python | def find_place(client, input, input_type, fields=None, location_bias=None,
language=None):
"""
A Find Place request takes a text input, and returns a place.
The text input can be any kind of Places data, for example,
a name, address, or phone number.
:param input: The text input spe... | [
"def",
"find_place",
"(",
"client",
",",
"input",
",",
"input_type",
",",
"fields",
"=",
"None",
",",
"location_bias",
"=",
"None",
",",
"language",
"=",
"None",
")",
":",
"params",
"=",
"{",
"\"input\"",
":",
"input",
",",
"\"inputtype\"",
":",
"input_t... | A Find Place request takes a text input, and returns a place.
The text input can be any kind of Places data, for example,
a name, address, or phone number.
:param input: The text input specifying which place to search for (for
example, a name, address, or phone number).
:type input: s... | [
"A",
"Find",
"Place",
"request",
"takes",
"a",
"text",
"input",
"and",
"returns",
"a",
"place",
".",
"The",
"text",
"input",
"can",
"be",
"any",
"kind",
"of",
"Places",
"data",
"for",
"example",
"a",
"name",
"address",
"or",
"phone",
"number",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L56-L115 | train | A Find Place request takes a text input and returns a place. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places | def places(client, query, location=None, radius=None, language=None,
min_price=None, max_price=None, open_now=False, type=None, region=None,
page_token=None):
"""
Places search.
:param query: The text string on which to search, for example: "restaurant".
:type query: string
:... | python | def places(client, query, location=None, radius=None, language=None,
min_price=None, max_price=None, open_now=False, type=None, region=None,
page_token=None):
"""
Places search.
:param query: The text string on which to search, for example: "restaurant".
:type query: string
:... | [
"def",
"places",
"(",
"client",
",",
"query",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"language",
"=",
"None",
",",
"min_price",
"=",
"None",
",",
"max_price",
"=",
"None",
",",
"open_now",
"=",
"False",
",",
"type",
"=",
"None... | Places search.
:param query: The text string on which to search, for example: "restaurant".
:type query: string
:param location: The latitude/longitude value for which you wish to obtain the
closest, human-readable address.
:type location: string, dict, list, or tuple
:param radius: Dista... | [
"Places",
"search",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L118-L172 | train | Search for places in a location. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places_nearby | def places_nearby(client, location=None, radius=None, keyword=None,
language=None, min_price=None, max_price=None, name=None,
open_now=False, rank_by=None, type=None, page_token=None):
"""
Performs nearby search for places.
:param location: The latitude/longitude value f... | python | def places_nearby(client, location=None, radius=None, keyword=None,
language=None, min_price=None, max_price=None, name=None,
open_now=False, rank_by=None, type=None, page_token=None):
"""
Performs nearby search for places.
:param location: The latitude/longitude value f... | [
"def",
"places_nearby",
"(",
"client",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"keyword",
"=",
"None",
",",
"language",
"=",
"None",
",",
"min_price",
"=",
"None",
",",
"max_price",
"=",
"None",
",",
"name",
"=",
"None",
",",
"... | Performs nearby search for places.
:param location: The latitude/longitude value for which you wish to obtain the
closest, human-readable address.
:type location: string, dict, list, or tuple
:param radius: Distance in meters within which to bias results.
:type radius: int
:p... | [
"Performs",
"nearby",
"search",
"for",
"places",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L175-L249 | train | This function searches for places in a region with optional parameters. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places_radar | def places_radar(client, location, radius, keyword=None, min_price=None,
max_price=None, name=None, open_now=False, type=None):
"""
Performs radar search for places.
:param location: The latitude/longitude value for which you wish to obtain the
closest, human-readable ... | python | def places_radar(client, location, radius, keyword=None, min_price=None,
max_price=None, name=None, open_now=False, type=None):
"""
Performs radar search for places.
:param location: The latitude/longitude value for which you wish to obtain the
closest, human-readable ... | [
"def",
"places_radar",
"(",
"client",
",",
"location",
",",
"radius",
",",
"keyword",
"=",
"None",
",",
"min_price",
"=",
"None",
",",
"max_price",
"=",
"None",
",",
"name",
"=",
"None",
",",
"open_now",
"=",
"False",
",",
"type",
"=",
"None",
")",
"... | Performs radar search for places.
:param location: The latitude/longitude value for which you wish to obtain the
closest, human-readable address.
:type location: string, dict, list, or tuple
:param radius: Distance in meters within which to bias results.
:type radius: int
:pa... | [
"Performs",
"radar",
"search",
"for",
"places",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L252-L305 | train | Performs a radar search for places. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | _places | def _places(client, url_part, query=None, location=None, radius=None,
keyword=None, language=None, min_price=0, max_price=4, name=None,
open_now=False, rank_by=None, type=None, region=None, page_token=None):
"""
Internal handler for ``places``, ``places_nearby``, and ``places_radar``.
... | python | def _places(client, url_part, query=None, location=None, radius=None,
keyword=None, language=None, min_price=0, max_price=4, name=None,
open_now=False, rank_by=None, type=None, region=None, page_token=None):
"""
Internal handler for ``places``, ``places_nearby``, and ``places_radar``.
... | [
"def",
"_places",
"(",
"client",
",",
"url_part",
",",
"query",
"=",
"None",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"keyword",
"=",
"None",
",",
"language",
"=",
"None",
",",
"min_price",
"=",
"0",
",",
"max_price",
"=",
"4",
... | Internal handler for ``places``, ``places_nearby``, and ``places_radar``.
See each method's docs for arg details. | [
"Internal",
"handler",
"for",
"places",
"places_nearby",
"and",
"places_radar",
".",
"See",
"each",
"method",
"s",
"docs",
"for",
"arg",
"details",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L308-L342 | train | Internal method for places 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | place | def place(client, place_id, session_token=None, fields=None, language=None):
"""
Comprehensive details for an individual place.
:param place_id: A textual identifier that uniquely identifies a place,
returned from a Places search.
:type place_id: string
:param session_token: A random strin... | python | def place(client, place_id, session_token=None, fields=None, language=None):
"""
Comprehensive details for an individual place.
:param place_id: A textual identifier that uniquely identifies a place,
returned from a Places search.
:type place_id: string
:param session_token: A random strin... | [
"def",
"place",
"(",
"client",
",",
"place_id",
",",
"session_token",
"=",
"None",
",",
"fields",
"=",
"None",
",",
"language",
"=",
"None",
")",
":",
"params",
"=",
"{",
"\"placeid\"",
":",
"place_id",
"}",
"if",
"fields",
":",
"invalid_fields",
"=",
... | Comprehensive details for an individual place.
:param place_id: A textual identifier that uniquely identifies a place,
returned from a Places search.
:type place_id: string
:param session_token: A random string which identifies an autocomplete
session for billing purposes... | [
"Comprehensive",
"details",
"for",
"an",
"individual",
"place",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L345-L386 | train | Returns a list of details for a single place. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places_photo | def places_photo(client, photo_reference, max_width=None, max_height=None):
"""
Downloads a photo from the Places API.
:param photo_reference: A string identifier that uniquely identifies a
photo, as provided by either a Places search or Places detail request.
:type photo_reference: string
... | python | def places_photo(client, photo_reference, max_width=None, max_height=None):
"""
Downloads a photo from the Places API.
:param photo_reference: A string identifier that uniquely identifies a
photo, as provided by either a Places search or Places detail request.
:type photo_reference: string
... | [
"def",
"places_photo",
"(",
"client",
",",
"photo_reference",
",",
"max_width",
"=",
"None",
",",
"max_height",
"=",
"None",
")",
":",
"if",
"not",
"(",
"max_width",
"or",
"max_height",
")",
":",
"raise",
"ValueError",
"(",
"\"a max_width or max_height arg is re... | Downloads a photo from the Places API.
:param photo_reference: A string identifier that uniquely identifies a
photo, as provided by either a Places search or Places detail request.
:type photo_reference: string
:param max_width: Specifies the maximum desired width, in pixels.
:type max_width: ... | [
"Downloads",
"a",
"photo",
"from",
"the",
"Places",
"API",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L389-L431 | train | Downloads a photo from the Places API and returns an iterator of the image data. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places_autocomplete | def places_autocomplete(client, input_text, session_token, offset=None,
location=None, radius=None, language=None, types=None,
components=None, strict_bounds=False):
"""
Returns Place predictions given a textual search string and optional
geographic bounds.
... | python | def places_autocomplete(client, input_text, session_token, offset=None,
location=None, radius=None, language=None, types=None,
components=None, strict_bounds=False):
"""
Returns Place predictions given a textual search string and optional
geographic bounds.
... | [
"def",
"places_autocomplete",
"(",
"client",
",",
"input_text",
",",
"session_token",
",",
"offset",
"=",
"None",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"language",
"=",
"None",
",",
"types",
"=",
"None",
",",
"components",
"=",
"... | Returns Place predictions given a textual search string and optional
geographic bounds.
:param input_text: The text string on which to search.
:type input_text: string
:param session_token: A random string which identifies an autocomplete
session for billing purposes.
:ty... | [
"Returns",
"Place",
"predictions",
"given",
"a",
"textual",
"search",
"string",
"and",
"optional",
"geographic",
"bounds",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L434-L484 | train | Returns a Place predictions given a textual search string and optional geographic bounds. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | places_autocomplete_query | def places_autocomplete_query(client, input_text, offset=None, location=None,
radius=None, language=None):
"""
Returns Place predictions given a textual search query, such as
"pizza near New York", and optional geographic bounds.
:param input_text: The text query on which ... | python | def places_autocomplete_query(client, input_text, offset=None, location=None,
radius=None, language=None):
"""
Returns Place predictions given a textual search query, such as
"pizza near New York", and optional geographic bounds.
:param input_text: The text query on which ... | [
"def",
"places_autocomplete_query",
"(",
"client",
",",
"input_text",
",",
"offset",
"=",
"None",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"language",
"=",
"None",
")",
":",
"return",
"_autocomplete",
"(",
"client",
",",
"\"query\"",
... | Returns Place predictions given a textual search query, such as
"pizza near New York", and optional geographic bounds.
:param input_text: The text query on which to search.
:type input_text: string
:param offset: The position, in the input term, of the last character
that the service uses to m... | [
"Returns",
"Place",
"predictions",
"given",
"a",
"textual",
"search",
"query",
"such",
"as",
"pizza",
"near",
"New",
"York",
"and",
"optional",
"geographic",
"bounds",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L487-L514 | train | Returns Place predictions given a textual search query such as pizza near New York and optional geographic bounds. | 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... |
googlemaps/google-maps-services-python | googlemaps/places.py | _autocomplete | def _autocomplete(client, url_part, input_text, session_token=None,
offset=None, location=None, radius=None, language=None,
types=None, components=None, strict_bounds=False):
"""
Internal handler for ``autocomplete`` and ``autocomplete_query``.
See each method's docs for ... | python | def _autocomplete(client, url_part, input_text, session_token=None,
offset=None, location=None, radius=None, language=None,
types=None, components=None, strict_bounds=False):
"""
Internal handler for ``autocomplete`` and ``autocomplete_query``.
See each method's docs for ... | [
"def",
"_autocomplete",
"(",
"client",
",",
"url_part",
",",
"input_text",
",",
"session_token",
"=",
"None",
",",
"offset",
"=",
"None",
",",
"location",
"=",
"None",
",",
"radius",
"=",
"None",
",",
"language",
"=",
"None",
",",
"types",
"=",
"None",
... | Internal handler for ``autocomplete`` and ``autocomplete_query``.
See each method's docs for arg details. | [
"Internal",
"handler",
"for",
"autocomplete",
"and",
"autocomplete_query",
".",
"See",
"each",
"method",
"s",
"docs",
"for",
"arg",
"details",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/places.py#L517-L547 | train | Internal method for autocomplete_query. | 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... |
googlemaps/google-maps-services-python | googlemaps/geolocation.py | _geolocation_extract | def _geolocation_extract(response):
"""
Mimics the exception handling logic in ``client._get_body``, but
for geolocation which uses a different response format.
"""
body = response.json()
if response.status_code in (200, 404):
return body
try:
error = body["error"]["errors"]... | python | def _geolocation_extract(response):
"""
Mimics the exception handling logic in ``client._get_body``, but
for geolocation which uses a different response format.
"""
body = response.json()
if response.status_code in (200, 404):
return body
try:
error = body["error"]["errors"]... | [
"def",
"_geolocation_extract",
"(",
"response",
")",
":",
"body",
"=",
"response",
".",
"json",
"(",
")",
"if",
"response",
".",
"status_code",
"in",
"(",
"200",
",",
"404",
")",
":",
"return",
"body",
"try",
":",
"error",
"=",
"body",
"[",
"\"error\""... | Mimics the exception handling logic in ``client._get_body``, but
for geolocation which uses a different response format. | [
"Mimics",
"the",
"exception",
"handling",
"logic",
"in",
"client",
".",
"_get_body",
"but",
"for",
"geolocation",
"which",
"uses",
"a",
"different",
"response",
"format",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/geolocation.py#L25-L42 | train | Extract the data from a geolocation response. | 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... |
googlemaps/google-maps-services-python | googlemaps/geolocation.py | geolocate | def geolocate(client, home_mobile_country_code=None,
home_mobile_network_code=None, radio_type=None, carrier=None,
consider_ip=None, cell_towers=None, wifi_access_points=None):
"""
The Google Maps Geolocation API returns a location and accuracy
radius based on information about c... | python | def geolocate(client, home_mobile_country_code=None,
home_mobile_network_code=None, radio_type=None, carrier=None,
consider_ip=None, cell_towers=None, wifi_access_points=None):
"""
The Google Maps Geolocation API returns a location and accuracy
radius based on information about c... | [
"def",
"geolocate",
"(",
"client",
",",
"home_mobile_country_code",
"=",
"None",
",",
"home_mobile_network_code",
"=",
"None",
",",
"radio_type",
"=",
"None",
",",
"carrier",
"=",
"None",
",",
"consider_ip",
"=",
"None",
",",
"cell_towers",
"=",
"None",
",",
... | The Google Maps Geolocation API returns a location and accuracy
radius based on information about cell towers and WiFi nodes given.
See https://developers.google.com/maps/documentation/geolocation/intro
for more info, including more detail for each parameter below.
:param home_mobile_country_code: The... | [
"The",
"Google",
"Maps",
"Geolocation",
"API",
"returns",
"a",
"location",
"and",
"accuracy",
"radius",
"based",
"on",
"information",
"about",
"cell",
"towers",
"and",
"WiFi",
"nodes",
"given",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/geolocation.py#L45-L107 | train | This function returns a location and accuracy of a node given a set of cell towers and WiFi nodes. | 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... |
googlemaps/google-maps-services-python | googlemaps/distance_matrix.py | distance_matrix | def distance_matrix(client, origins, destinations,
mode=None, language=None, avoid=None, units=None,
departure_time=None, arrival_time=None, transit_mode=None,
transit_routing_preference=None, traffic_model=None, region=None):
""" Gets travel distance and ... | python | def distance_matrix(client, origins, destinations,
mode=None, language=None, avoid=None, units=None,
departure_time=None, arrival_time=None, transit_mode=None,
transit_routing_preference=None, traffic_model=None, region=None):
""" Gets travel distance and ... | [
"def",
"distance_matrix",
"(",
"client",
",",
"origins",
",",
"destinations",
",",
"mode",
"=",
"None",
",",
"language",
"=",
"None",
",",
"avoid",
"=",
"None",
",",
"units",
"=",
"None",
",",
"departure_time",
"=",
"None",
",",
"arrival_time",
"=",
"Non... | Gets travel distance and time for a matrix of origins and destinations.
:param origins: One or more locations and/or latitude/longitude values,
from which to calculate distance and time. If you pass an address as
a string, the service will geocode the string and convert it to a
latitude/lon... | [
"Gets",
"travel",
"distance",
"and",
"time",
"for",
"a",
"matrix",
"of",
"origins",
"and",
"destinations",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/distance_matrix.py#L24-L138 | train | Gets travel distance and time for a set of origins and destinations. | 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... |
googlemaps/google-maps-services-python | googlemaps/client.py | make_api_method | def make_api_method(func):
"""
Provides a single entry point for modifying all API methods.
For now this is limited to allowing the client object to be modified
with an `extra_params` keyword arg to each method, that is then used
as the params for each web service request.
Please note that this... | python | def make_api_method(func):
"""
Provides a single entry point for modifying all API methods.
For now this is limited to allowing the client object to be modified
with an `extra_params` keyword arg to each method, that is then used
as the params for each web service request.
Please note that this... | [
"def",
"make_api_method",
"(",
"func",
")",
":",
"@",
"functools",
".",
"wraps",
"(",
"func",
")",
"def",
"wrapper",
"(",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"args",
"[",
"0",
"]",
".",
"_extra_params",
"=",
"kwargs",
".",
"pop",
"(",
... | Provides a single entry point for modifying all API methods.
For now this is limited to allowing the client object to be modified
with an `extra_params` keyword arg to each method, that is then used
as the params for each web service request.
Please note that this is an unsupported feature for advanced... | [
"Provides",
"a",
"single",
"entry",
"point",
"for",
"modifying",
"all",
"API",
"methods",
".",
"For",
"now",
"this",
"is",
"limited",
"to",
"allowing",
"the",
"client",
"object",
"to",
"be",
"modified",
"with",
"an",
"extra_params",
"keyword",
"arg",
"to",
... | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/client.py#L354-L373 | train | Decorator for creating API methods. | 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... |
googlemaps/google-maps-services-python | googlemaps/client.py | sign_hmac | def sign_hmac(secret, payload):
"""Returns a base64-encoded HMAC-SHA1 signature of a given string.
:param secret: The key used for the signature, base64 encoded.
:type secret: string
:param payload: The payload to sign.
:type payload: string
:rtype: string
"""
payload = payload.encode... | python | def sign_hmac(secret, payload):
"""Returns a base64-encoded HMAC-SHA1 signature of a given string.
:param secret: The key used for the signature, base64 encoded.
:type secret: string
:param payload: The payload to sign.
:type payload: string
:rtype: string
"""
payload = payload.encode... | [
"def",
"sign_hmac",
"(",
"secret",
",",
"payload",
")",
":",
"payload",
"=",
"payload",
".",
"encode",
"(",
"'ascii'",
",",
"'strict'",
")",
"secret",
"=",
"secret",
".",
"encode",
"(",
"'ascii'",
",",
"'strict'",
")",
"sig",
"=",
"hmac",
".",
"new",
... | Returns a base64-encoded HMAC-SHA1 signature of a given string.
:param secret: The key used for the signature, base64 encoded.
:type secret: string
:param payload: The payload to sign.
:type payload: string
:rtype: string | [
"Returns",
"a",
"base64",
"-",
"encoded",
"HMAC",
"-",
"SHA1",
"signature",
"of",
"a",
"given",
"string",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/client.py#L398-L413 | train | Returns a base64 - encoded HMAC - SHA1 signature of a given string. | 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... |
googlemaps/google-maps-services-python | googlemaps/client.py | urlencode_params | def urlencode_params(params):
"""URL encodes the parameters.
:param params: The parameters
:type params: list of key/value tuples.
:rtype: string
"""
# urlencode does not handle unicode strings in Python 2.
# Firstly, normalize the values so they get encoded correctly.
params = [(key, ... | python | def urlencode_params(params):
"""URL encodes the parameters.
:param params: The parameters
:type params: list of key/value tuples.
:rtype: string
"""
# urlencode does not handle unicode strings in Python 2.
# Firstly, normalize the values so they get encoded correctly.
params = [(key, ... | [
"def",
"urlencode_params",
"(",
"params",
")",
":",
"# urlencode does not handle unicode strings in Python 2.",
"# Firstly, normalize the values so they get encoded correctly.",
"params",
"=",
"[",
"(",
"key",
",",
"normalize_for_urlencode",
"(",
"val",
")",
")",
"for",
"key"... | URL encodes the parameters.
:param params: The parameters
:type params: list of key/value tuples.
:rtype: string | [
"URL",
"encodes",
"the",
"parameters",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/client.py#L416-L430 | train | URL encodes the parameters. | 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... |
googlemaps/google-maps-services-python | googlemaps/client.py | Client._request | def _request(self, url, params, first_request_time=None, retry_counter=0,
base_url=_DEFAULT_BASE_URL, accepts_clientid=True,
extract_body=None, requests_kwargs=None, post_json=None):
"""Performs HTTP GET/POST with credentials, returning the body as
JSON.
:param url: UR... | python | def _request(self, url, params, first_request_time=None, retry_counter=0,
base_url=_DEFAULT_BASE_URL, accepts_clientid=True,
extract_body=None, requests_kwargs=None, post_json=None):
"""Performs HTTP GET/POST with credentials, returning the body as
JSON.
:param url: UR... | [
"def",
"_request",
"(",
"self",
",",
"url",
",",
"params",
",",
"first_request_time",
"=",
"None",
",",
"retry_counter",
"=",
"0",
",",
"base_url",
"=",
"_DEFAULT_BASE_URL",
",",
"accepts_clientid",
"=",
"True",
",",
"extract_body",
"=",
"None",
",",
"reques... | Performs HTTP GET/POST with credentials, returning the body as
JSON.
:param url: URL path for the request. Should begin with a slash.
:type url: string
:param params: HTTP GET parameters.
:type params: dict or list of key/value tuples
:param first_request_time: The tim... | [
"Performs",
"HTTP",
"GET",
"/",
"POST",
"with",
"credentials",
"returning",
"the",
"body",
"as",
"JSON",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/client.py#L164-L272 | train | Performs a HTTP GET or POST 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... |
googlemaps/google-maps-services-python | googlemaps/client.py | Client._generate_auth_url | def _generate_auth_url(self, path, params, accepts_clientid):
"""Returns the path and query string portion of the request URL, first
adding any necessary parameters.
:param path: The path portion of the URL.
:type path: string
:param params: URL parameters.
:type params... | python | def _generate_auth_url(self, path, params, accepts_clientid):
"""Returns the path and query string portion of the request URL, first
adding any necessary parameters.
:param path: The path portion of the URL.
:type path: string
:param params: URL parameters.
:type params... | [
"def",
"_generate_auth_url",
"(",
"self",
",",
"path",
",",
"params",
",",
"accepts_clientid",
")",
":",
"# Deterministic ordering through sorting by key.",
"# Useful for tests, and in the future, any caching.",
"extra_params",
"=",
"getattr",
"(",
"self",
",",
"\"_extra_para... | Returns the path and query string portion of the request URL, first
adding any necessary parameters.
:param path: The path portion of the URL.
:type path: string
:param params: URL parameters.
:type params: dict or list of key/value tuples
:rtype: string | [
"Returns",
"the",
"path",
"and",
"query",
"string",
"portion",
"of",
"the",
"request",
"URL",
"first",
"adding",
"any",
"necessary",
"parameters",
"."
] | 7ed40b4d8df63479794c46ce29d03ed6083071d7 | https://github.com/googlemaps/google-maps-services-python/blob/7ed40b4d8df63479794c46ce29d03ed6083071d7/googlemaps/client.py#L294-L329 | train | Generates the path and query string portion of the request URL. | 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... |
dbader/schedule | schedule/__init__.py | Scheduler.run_pending | def run_pending(self):
"""
Run all jobs that are scheduled to run.
Please note that it is *intended behavior that run_pending()
does not run missed jobs*. For example, if you've registered a job
that should run every minute and you only call run_pending()
in one hour inc... | python | def run_pending(self):
"""
Run all jobs that are scheduled to run.
Please note that it is *intended behavior that run_pending()
does not run missed jobs*. For example, if you've registered a job
that should run every minute and you only call run_pending()
in one hour inc... | [
"def",
"run_pending",
"(",
"self",
")",
":",
"runnable_jobs",
"=",
"(",
"job",
"for",
"job",
"in",
"self",
".",
"jobs",
"if",
"job",
".",
"should_run",
")",
"for",
"job",
"in",
"sorted",
"(",
"runnable_jobs",
")",
":",
"self",
".",
"_run_job",
"(",
"... | Run all jobs that are scheduled to run.
Please note that it is *intended behavior that run_pending()
does not run missed jobs*. For example, if you've registered a job
that should run every minute and you only call run_pending()
in one hour increments then your job won't be run 60 times... | [
"Run",
"all",
"jobs",
"that",
"are",
"scheduled",
"to",
"run",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L82-L94 | train | Run all jobs that are scheduled to run. | 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... |
dbader/schedule | schedule/__init__.py | Scheduler.run_all | def run_all(self, delay_seconds=0):
"""
Run all jobs regardless if they are scheduled to run or not.
A delay of `delay` seconds is added between each job. This helps
distribute system load generated by the jobs more evenly
over time.
:param delay_seconds: A delay added ... | python | def run_all(self, delay_seconds=0):
"""
Run all jobs regardless if they are scheduled to run or not.
A delay of `delay` seconds is added between each job. This helps
distribute system load generated by the jobs more evenly
over time.
:param delay_seconds: A delay added ... | [
"def",
"run_all",
"(",
"self",
",",
"delay_seconds",
"=",
"0",
")",
":",
"logger",
".",
"info",
"(",
"'Running *all* %i jobs with %is delay inbetween'",
",",
"len",
"(",
"self",
".",
"jobs",
")",
",",
"delay_seconds",
")",
"for",
"job",
"in",
"self",
".",
... | Run all jobs regardless if they are scheduled to run or not.
A delay of `delay` seconds is added between each job. This helps
distribute system load generated by the jobs more evenly
over time.
:param delay_seconds: A delay added between every executed job | [
"Run",
"all",
"jobs",
"regardless",
"if",
"they",
"are",
"scheduled",
"to",
"run",
"or",
"not",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L96-L110 | train | Run all jobs in the 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... |
dbader/schedule | schedule/__init__.py | Scheduler.clear | def clear(self, tag=None):
"""
Deletes scheduled jobs marked with the given tag, or all jobs
if tag is omitted.
:param tag: An identifier used to identify a subset of
jobs to delete
"""
if tag is None:
del self.jobs[:]
else:
... | python | def clear(self, tag=None):
"""
Deletes scheduled jobs marked with the given tag, or all jobs
if tag is omitted.
:param tag: An identifier used to identify a subset of
jobs to delete
"""
if tag is None:
del self.jobs[:]
else:
... | [
"def",
"clear",
"(",
"self",
",",
"tag",
"=",
"None",
")",
":",
"if",
"tag",
"is",
"None",
":",
"del",
"self",
".",
"jobs",
"[",
":",
"]",
"else",
":",
"self",
".",
"jobs",
"[",
":",
"]",
"=",
"(",
"job",
"for",
"job",
"in",
"self",
".",
"j... | Deletes scheduled jobs marked with the given tag, or all jobs
if tag is omitted.
:param tag: An identifier used to identify a subset of
jobs to delete | [
"Deletes",
"scheduled",
"jobs",
"marked",
"with",
"the",
"given",
"tag",
"or",
"all",
"jobs",
"if",
"tag",
"is",
"omitted",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L112-L123 | train | Deletes all scheduled jobs with the given tag or all jobs with the given tag. | 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... |
dbader/schedule | schedule/__init__.py | Job.tag | def tag(self, *tags):
"""
Tags the job with one or more unique indentifiers.
Tags must be hashable. Duplicate tags are discarded.
:param tags: A unique list of ``Hashable`` tags.
:return: The invoked job instance
"""
if not all(isinstance(tag, collections.Hashab... | python | def tag(self, *tags):
"""
Tags the job with one or more unique indentifiers.
Tags must be hashable. Duplicate tags are discarded.
:param tags: A unique list of ``Hashable`` tags.
:return: The invoked job instance
"""
if not all(isinstance(tag, collections.Hashab... | [
"def",
"tag",
"(",
"self",
",",
"*",
"tags",
")",
":",
"if",
"not",
"all",
"(",
"isinstance",
"(",
"tag",
",",
"collections",
".",
"Hashable",
")",
"for",
"tag",
"in",
"tags",
")",
":",
"raise",
"TypeError",
"(",
"'Tags must be hashable'",
")",
"self",... | Tags the job with one or more unique indentifiers.
Tags must be hashable. Duplicate tags are discarded.
:param tags: A unique list of ``Hashable`` tags.
:return: The invoked job instance | [
"Tags",
"the",
"job",
"with",
"one",
"or",
"more",
"unique",
"indentifiers",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L364-L376 | train | Tags the job with one or more unique indentifiers. | 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... |
dbader/schedule | schedule/__init__.py | Job.at | def at(self, time_str):
"""
Specify a particular time that the job should be run at.
:param time_str: A string in one of the following formats: `HH:MM:SS`,
`HH:MM`,`:MM`, `:SS`. The format must make sense given how often
the job is repeating; for example, a job that repe... | python | def at(self, time_str):
"""
Specify a particular time that the job should be run at.
:param time_str: A string in one of the following formats: `HH:MM:SS`,
`HH:MM`,`:MM`, `:SS`. The format must make sense given how often
the job is repeating; for example, a job that repe... | [
"def",
"at",
"(",
"self",
",",
"time_str",
")",
":",
"if",
"(",
"self",
".",
"unit",
"not",
"in",
"(",
"'days'",
",",
"'hours'",
",",
"'minutes'",
")",
"and",
"not",
"self",
".",
"start_day",
")",
":",
"raise",
"ScheduleValueError",
"(",
"'Invalid unit... | Specify a particular time that the job should be run at.
:param time_str: A string in one of the following formats: `HH:MM:SS`,
`HH:MM`,`:MM`, `:SS`. The format must make sense given how often
the job is repeating; for example, a job that repeats every minute
should not be g... | [
"Specify",
"a",
"particular",
"time",
"that",
"the",
"job",
"should",
"be",
"run",
"at",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L378-L428 | train | Returns the invoked job instance that represents the time that the job should be run at. | 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... |
dbader/schedule | schedule/__init__.py | Job.do | def do(self, job_func, *args, **kwargs):
"""
Specifies the job_func that should be called every time the
job runs.
Any additional arguments are passed on to job_func when
the job runs.
:param job_func: The function to be scheduled
:return: The invoked job instan... | python | def do(self, job_func, *args, **kwargs):
"""
Specifies the job_func that should be called every time the
job runs.
Any additional arguments are passed on to job_func when
the job runs.
:param job_func: The function to be scheduled
:return: The invoked job instan... | [
"def",
"do",
"(",
"self",
",",
"job_func",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"job_func",
"=",
"functools",
".",
"partial",
"(",
"job_func",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
"try",
":",
"functools",
"... | Specifies the job_func that should be called every time the
job runs.
Any additional arguments are passed on to job_func when
the job runs.
:param job_func: The function to be scheduled
:return: The invoked job instance | [
"Specifies",
"the",
"job_func",
"that",
"should",
"be",
"called",
"every",
"time",
"the",
"job",
"runs",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L445-L466 | train | This method is called every time the job runs. It will be called every time the job runs. | 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... |
dbader/schedule | schedule/__init__.py | Job.run | def run(self):
"""
Run the job and immediately reschedule it.
:return: The return value returned by the `job_func`
"""
logger.info('Running job %s', self)
ret = self.job_func()
self.last_run = datetime.datetime.now()
self._schedule_next_run()
retu... | python | def run(self):
"""
Run the job and immediately reschedule it.
:return: The return value returned by the `job_func`
"""
logger.info('Running job %s', self)
ret = self.job_func()
self.last_run = datetime.datetime.now()
self._schedule_next_run()
retu... | [
"def",
"run",
"(",
"self",
")",
":",
"logger",
".",
"info",
"(",
"'Running job %s'",
",",
"self",
")",
"ret",
"=",
"self",
".",
"job_func",
"(",
")",
"self",
".",
"last_run",
"=",
"datetime",
".",
"datetime",
".",
"now",
"(",
")",
"self",
".",
"_sc... | Run the job and immediately reschedule it.
:return: The return value returned by the `job_func` | [
"Run",
"the",
"job",
"and",
"immediately",
"reschedule",
"it",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L475-L485 | train | Run the job and immediately reschedule it. | 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... |
dbader/schedule | schedule/__init__.py | Job._schedule_next_run | def _schedule_next_run(self):
"""
Compute the instant when this job should run next.
"""
if self.unit not in ('seconds', 'minutes', 'hours', 'days', 'weeks'):
raise ScheduleValueError('Invalid unit')
if self.latest is not None:
if not (self.latest >= self... | python | def _schedule_next_run(self):
"""
Compute the instant when this job should run next.
"""
if self.unit not in ('seconds', 'minutes', 'hours', 'days', 'weeks'):
raise ScheduleValueError('Invalid unit')
if self.latest is not None:
if not (self.latest >= self... | [
"def",
"_schedule_next_run",
"(",
"self",
")",
":",
"if",
"self",
".",
"unit",
"not",
"in",
"(",
"'seconds'",
",",
"'minutes'",
",",
"'hours'",
",",
"'days'",
",",
"'weeks'",
")",
":",
"raise",
"ScheduleValueError",
"(",
"'Invalid unit'",
")",
"if",
"self"... | Compute the instant when this job should run next. | [
"Compute",
"the",
"instant",
"when",
"this",
"job",
"should",
"run",
"next",
"."
] | 5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea | https://github.com/dbader/schedule/blob/5d2653c28b1029f1e9ddc85cd9ef26c29a79fcea/schedule/__init__.py#L487-L555 | train | Compute the instant when this job should run next. | 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/issuer_credential.py | IssuerCredential.create | async def create(source_id: str, attrs: dict, cred_def_handle: int, name: str, price: str):
"""
Creates a Class representing an Issuer Credential
:param source_id: Tag associated by user of sdk
:param attrs: attributes that will form the credential
:param cred_def... | python | async def create(source_id: str, attrs: dict, cred_def_handle: int, name: str, price: str):
"""
Creates a Class representing an Issuer Credential
:param source_id: Tag associated by user of sdk
:param attrs: attributes that will form the credential
:param cred_def... | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"attrs",
":",
"dict",
",",
"cred_def_handle",
":",
"int",
",",
"name",
":",
"str",
",",
"price",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
"attrs",
",",
"cred_de... | Creates a Class representing an Issuer Credential
:param source_id: Tag associated by user of sdk
:param attrs: attributes that will form the credential
:param cred_def_handle: Handle from previously created credential def object
:param name: Name given to the Credential
... | [
"Creates",
"a",
"Class",
"representing",
"an",
"Issuer",
"Credential",
":",
"param",
"source_id",
":",
"Tag",
"associated",
"by",
"user",
"of",
"sdk",
":",
"param",
"attrs",
":",
"attributes",
"that",
"will",
"form",
"the",
"credential",
":",
"param",
"cred_... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/issuer_credential.py#L25-L57 | train | Create an Issuer 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/issuer_credential.py | IssuerCredential.deserialize | async def deserialize(data: dict):
"""
Creates IssuerCredential object from a dict.
:param data: dict representing a serialized IssuerCredential Object
:return: IssuerCredential object
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
... | python | async def deserialize(data: dict):
"""
Creates IssuerCredential object from a dict.
:param data: dict representing a serialized IssuerCredential Object
:return: IssuerCredential object
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
... | [
"async",
"def",
"deserialize",
"(",
"data",
":",
"dict",
")",
":",
"issuer_credential",
"=",
"await",
"IssuerCredential",
".",
"_deserialize",
"(",
"\"vcx_issuer_credential_deserialize\"",
",",
"json",
".",
"dumps",
"(",
"data",
")",
",",
"data",
".",
"get",
"... | Creates IssuerCredential object from a dict.
:param data: dict representing a serialized IssuerCredential Object
:return: IssuerCredential object
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
attrs = {'key': 'value', 'key2': 'value2', 'key... | [
"Creates",
"IssuerCredential",
"object",
"from",
"a",
"dict",
".",
":",
"param",
"data",
":",
"dict",
"representing",
"a",
"serialized",
"IssuerCredential",
"Object",
":",
"return",
":",
"IssuerCredential",
"object"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/issuer_credential.py#L60-L85 | train | Deserialize a dict representing a serialized IssuerCredential 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/issuer_credential.py | IssuerCredential.send_offer | async def send_offer(self, connection: Connection):
"""
Sends an offer to a prover. Once accepted, a request will be recieved.
:param connection: vcx.api.connection.Connection
:return: None
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
attrs = {'... | python | async def send_offer(self, connection: Connection):
"""
Sends an offer to a prover. Once accepted, a request will be recieved.
:param connection: vcx.api.connection.Connection
:return: None
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
attrs = {'... | [
"async",
"def",
"send_offer",
"(",
"self",
",",
"connection",
":",
"Connection",
")",
":",
"if",
"not",
"hasattr",
"(",
"IssuerCredential",
".",
"send_offer",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_issuer_send_credential_offe... | Sends an offer to a prover. Once accepted, a request will be recieved.
:param connection: vcx.api.connection.Connection
:return: None
Example:
source_id = '1'
cred_def_id = 'cred_def_id1'
attrs = {'key': 'value', 'key2': 'value2', 'key3': 'value3'}
name = 'Crede... | [
"Sends",
"an",
"offer",
"to",
"a",
"prover",
".",
"Once",
"accepted",
"a",
"request",
"will",
"be",
"recieved",
".",
":",
"param",
"connection",
":",
"vcx",
".",
"api",
".",
"connection",
".",
"Connection",
":",
"return",
":",
"None"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/issuer_credential.py#L132-L160 | train | Sends an offer to a prover. | 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/issuer_credential.py | IssuerCredential.revoke_credential | async def revoke_credential(self):
"""
Revokes a credential.
:return: None
Example:
credential.revoke_credential()
"""
if not hasattr(IssuerCredential.revoke_credential, "cb"):
self.logger.debug("vcx_issuer_revoke_credential: Creating callback"... | python | async def revoke_credential(self):
"""
Revokes a credential.
:return: None
Example:
credential.revoke_credential()
"""
if not hasattr(IssuerCredential.revoke_credential, "cb"):
self.logger.debug("vcx_issuer_revoke_credential: Creating callback"... | [
"async",
"def",
"revoke_credential",
"(",
"self",
")",
":",
"if",
"not",
"hasattr",
"(",
"IssuerCredential",
".",
"revoke_credential",
",",
"\"cb\"",
")",
":",
"self",
".",
"logger",
".",
"debug",
"(",
"\"vcx_issuer_revoke_credential: Creating callback\"",
")",
"I... | Revokes a credential.
:return: None
Example:
credential.revoke_credential() | [
"Revokes",
"a",
"credential",
".",
":",
"return",
":",
"None",
"Example",
":",
"credential",
".",
"revoke_credential",
"()"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/issuer_credential.py#L182-L197 | train | Revokes a 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 | wrappers/python/indy/wallet.py | create_wallet | async def create_wallet(config: str,
credentials: str) -> None:
"""
Creates a new secure wallet with the given unique name.
:param config: Wallet configuration json.
{
"id": string, Identifier of the wallet.
Configured storage uses this identifier to lookup ... | python | async def create_wallet(config: str,
credentials: str) -> None:
"""
Creates a new secure wallet with the given unique name.
:param config: Wallet configuration json.
{
"id": string, Identifier of the wallet.
Configured storage uses this identifier to lookup ... | [
"async",
"def",
"create_wallet",
"(",
"config",
":",
"str",
",",
"credentials",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"create_wallet: >>> config: %r, credentials: %r\"... | Creates a new secure wallet with the given unique name.
:param config: Wallet configuration json.
{
"id": string, Identifier of the wallet.
Configured storage uses this identifier to lookup exact wallet data placement.
"storage_type": optional<string>, Type of the wallet storage. De... | [
"Creates",
"a",
"new",
"secure",
"wallet",
"with",
"the",
"given",
"unique",
"name",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/wallet.py#L9-L63 | train | Create secure wallet with the given unique name. | 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/wallet.py | close_wallet | async def close_wallet(handle: int) -> None:
"""
Closes opened wallet and frees allocated resources.
:param handle: wallet handle returned by indy_open_wallet.
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("close_wallet: >>> handle: %i", handle)
if not hasa... | python | async def close_wallet(handle: int) -> None:
"""
Closes opened wallet and frees allocated resources.
:param handle: wallet handle returned by indy_open_wallet.
:return: Error code
"""
logger = logging.getLogger(__name__)
logger.debug("close_wallet: >>> handle: %i", handle)
if not hasa... | [
"async",
"def",
"close_wallet",
"(",
"handle",
":",
"int",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"close_wallet: >>> handle: %i\"",
",",
"handle",
")",
"if",
"not",
"hasattr",
... | Closes opened wallet and frees allocated resources.
:param handle: wallet handle returned by indy_open_wallet.
:return: Error code | [
"Closes",
"opened",
"wallet",
"and",
"frees",
"allocated",
"resources",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/wallet.py#L133-L154 | train | Closes opened wallet and frees allocated resources. | 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/wallet.py | export_wallet | async def export_wallet(handle: int,
export_config_json: str) -> None:
"""
Exports opened wallet to the file.
:param handle: wallet handle returned by indy_open_wallet.
:param export_config_json: JSON containing settings for input operation.
{
"path": path of th... | python | async def export_wallet(handle: int,
export_config_json: str) -> None:
"""
Exports opened wallet to the file.
:param handle: wallet handle returned by indy_open_wallet.
:param export_config_json: JSON containing settings for input operation.
{
"path": path of th... | [
"async",
"def",
"export_wallet",
"(",
"handle",
":",
"int",
",",
"export_config_json",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"export_wallet: >>> handle: %r, export_con... | Exports opened wallet to the file.
:param handle: wallet handle returned by indy_open_wallet.
:param export_config_json: JSON containing settings for input operation.
{
"path": path of the file that contains exported wallet content
"key": string, Key or passphrase used for wallet exp... | [
"Exports",
"opened",
"wallet",
"to",
"the",
"file",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/wallet.py#L214-L250 | train | Exports opened wallet to the 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 | wrappers/python/indy/wallet.py | import_wallet | async def import_wallet(config: str,
credentials: str,
import_config_json: str) -> None:
"""
Creates a new secure wallet with the given unique name and then imports its content
according to fields provided in import_config
This can be seen as an indy_creat... | python | async def import_wallet(config: str,
credentials: str,
import_config_json: str) -> None:
"""
Creates a new secure wallet with the given unique name and then imports its content
according to fields provided in import_config
This can be seen as an indy_creat... | [
"async",
"def",
"import_wallet",
"(",
"config",
":",
"str",
",",
"credentials",
":",
"str",
",",
"import_config_json",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"i... | Creates a new secure wallet with the given unique name and then imports its content
according to fields provided in import_config
This can be seen as an indy_create_wallet call with additional content import
:param config: Wallet configuration json.
{
"id": string, Identifier of the wallet.
... | [
"Creates",
"a",
"new",
"secure",
"wallet",
"with",
"the",
"given",
"unique",
"name",
"and",
"then",
"imports",
"its",
"content",
"according",
"to",
"fields",
"provided",
"in",
"import_config",
"This",
"can",
"be",
"seen",
"as",
"an",
"indy_create_wallet",
"cal... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/wallet.py#L253-L317 | train | Creates a new secure wallet with the given unique name and then imports its content according to fields provided in import_config_json. | 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/wallet.py | generate_wallet_key | async def generate_wallet_key(config: Optional[str]) -> str:
"""
Generate wallet master key.
Returned key is compatible with "RAW" key derivation method.
It allows to avoid expensive key derivation for use cases when wallet keys can be stored in a secure enclave.
:param config: (optional) key confi... | python | async def generate_wallet_key(config: Optional[str]) -> str:
"""
Generate wallet master key.
Returned key is compatible with "RAW" key derivation method.
It allows to avoid expensive key derivation for use cases when wallet keys can be stored in a secure enclave.
:param config: (optional) key confi... | [
"async",
"def",
"generate_wallet_key",
"(",
"config",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"generate_wallet_key: >>> config: %r\"",
",",
"confi... | Generate wallet master key.
Returned key is compatible with "RAW" key derivation method.
It allows to avoid expensive key derivation for use cases when wallet keys can be stored in a secure enclave.
:param config: (optional) key configuration json.
{
"seed": string, (optional) Seed that allows... | [
"Generate",
"wallet",
"master",
"key",
".",
"Returned",
"key",
"is",
"compatible",
"with",
"RAW",
"key",
"derivation",
"method",
".",
"It",
"allows",
"to",
"avoid",
"expensive",
"key",
"derivation",
"for",
"use",
"cases",
"when",
"wallet",
"keys",
"can",
"be... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/wallet.py#L320-L351 | train | Generate wallet master 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/anoncreds.py | issuer_create_schema | async def issuer_create_schema(issuer_did: str,
name: str,
version: str,
attrs: str) -> (str, str):
"""
Create credential schema entity that describes credential attributes list and allows credentials
interoperabili... | python | async def issuer_create_schema(issuer_did: str,
name: str,
version: str,
attrs: str) -> (str, str):
"""
Create credential schema entity that describes credential attributes list and allows credentials
interoperabili... | [
"async",
"def",
"issuer_create_schema",
"(",
"issuer_did",
":",
"str",
",",
"name",
":",
"str",
",",
"version",
":",
"str",
",",
"attrs",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__nam... | Create credential schema entity that describes credential attributes list and allows credentials
interoperability.
Schema is public and intended to be shared with all anoncreds workflow actors usually by publishing SCHEMA transaction
to Indy distributed ledger.
It is IMPORTANT for current version POST... | [
"Create",
"credential",
"schema",
"entity",
"that",
"describes",
"credential",
"attributes",
"list",
"and",
"allows",
"credentials",
"interoperability",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L9-L58 | train | Create credential schema entity that describes credential attributes list and allows credentials and interoperability. | 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/anoncreds.py | issuer_create_and_store_credential_def | async def issuer_create_and_store_credential_def(wallet_handle: int,
issuer_did: str,
schema_json: str,
tag: str,
signature_... | python | async def issuer_create_and_store_credential_def(wallet_handle: int,
issuer_did: str,
schema_json: str,
tag: str,
signature_... | [
"async",
"def",
"issuer_create_and_store_credential_def",
"(",
"wallet_handle",
":",
"int",
",",
"issuer_did",
":",
"str",
",",
"schema_json",
":",
"str",
",",
"tag",
":",
"str",
",",
"signature_type",
":",
"Optional",
"[",
"str",
"]",
",",
"config_json",
":",... | Create credential definition entity that encapsulates credentials issuer DID, credential schema, secrets used for
signing credentials and secrets used for credentials revocation.
Credential definition entity contains private and public parts. Private part will be stored in the wallet.
Public part will be r... | [
"Create",
"credential",
"definition",
"entity",
"that",
"encapsulates",
"credentials",
"issuer",
"DID",
"credential",
"schema",
"secrets",
"used",
"for",
"signing",
"credentials",
"and",
"secrets",
"used",
"for",
"credentials",
"revocation",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L61-L124 | train | Create credential definition entity that encapsulates credentials and secrets used for revocation and revocation math. | 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/anoncreds.py | issuer_create_and_store_revoc_reg | async def issuer_create_and_store_revoc_reg(wallet_handle: int,
issuer_did: str,
revoc_def_type: Optional[str],
tag: str,
cred_def_id: str,
... | python | async def issuer_create_and_store_revoc_reg(wallet_handle: int,
issuer_did: str,
revoc_def_type: Optional[str],
tag: str,
cred_def_id: str,
... | [
"async",
"def",
"issuer_create_and_store_revoc_reg",
"(",
"wallet_handle",
":",
"int",
",",
"issuer_did",
":",
"str",
",",
"revoc_def_type",
":",
"Optional",
"[",
"str",
"]",
",",
"tag",
":",
"str",
",",
"cred_def_id",
":",
"str",
",",
"config_json",
":",
"s... | Create a new revocation registry for the given credential definition as tuple of entities:
- Revocation registry definition that encapsulates credentials definition reference, revocation type specific configuration and
secrets used for credentials revocation
- Revocation registry state that stores the inf... | [
"Create",
"a",
"new",
"revocation",
"registry",
"for",
"the",
"given",
"credential",
"definition",
"as",
"tuple",
"of",
"entities",
":",
"-",
"Revocation",
"registry",
"definition",
"that",
"encapsulates",
"credentials",
"definition",
"reference",
"revocation",
"typ... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L127-L208 | train | This function creates a revocation registry for the given issuer and stores it in 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 | wrappers/python/indy/anoncreds.py | issuer_create_credential_offer | async def issuer_create_credential_offer(wallet_handle: int,
cred_def_id: str) -> str:
"""
Create credential offer that will be used by Prover for
credential request creation. Offer includes nonce and key correctness proof
for authentication between protocol step... | python | async def issuer_create_credential_offer(wallet_handle: int,
cred_def_id: str) -> str:
"""
Create credential offer that will be used by Prover for
credential request creation. Offer includes nonce and key correctness proof
for authentication between protocol step... | [
"async",
"def",
"issuer_create_credential_offer",
"(",
"wallet_handle",
":",
"int",
",",
"cred_def_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"issuer_create_credential_... | Create credential offer that will be used by Prover for
credential request creation. Offer includes nonce and key correctness proof
for authentication between protocol steps and integrity checking.
:param wallet_handle: wallet handler (created by open_wallet).
:param cred_def_id: id of credential defin... | [
"Create",
"credential",
"offer",
"that",
"will",
"be",
"used",
"by",
"Prover",
"for",
"credential",
"request",
"creation",
".",
"Offer",
"includes",
"nonce",
"and",
"key",
"correctness",
"proof",
"for",
"authentication",
"between",
"protocol",
"steps",
"and",
"i... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L211-L249 | train | Create credential offer that will be used by Prover for authentication between protocol steps and integrity checking. | 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/anoncreds.py | issuer_create_credential | async def issuer_create_credential(wallet_handle: int,
cred_offer_json: str,
cred_req_json: str,
cred_values_json: str,
rev_reg_id: Optional[str],
... | python | async def issuer_create_credential(wallet_handle: int,
cred_offer_json: str,
cred_req_json: str,
cred_values_json: str,
rev_reg_id: Optional[str],
... | [
"async",
"def",
"issuer_create_credential",
"(",
"wallet_handle",
":",
"int",
",",
"cred_offer_json",
":",
"str",
",",
"cred_req_json",
":",
"str",
",",
"cred_values_json",
":",
"str",
",",
"rev_reg_id",
":",
"Optional",
"[",
"str",
"]",
",",
"blob_storage_reade... | Check Cred Request for the given Cred Offer and issue Credential for the given Cred Request.
Cred Request must match Cred Offer. The credential definition and revocation registry definition
referenced in Cred Offer and Cred Request must be already created and stored into the wallet.
Information for this c... | [
"Check",
"Cred",
"Request",
"for",
"the",
"given",
"Cred",
"Offer",
"and",
"issue",
"Credential",
"for",
"the",
"given",
"Cred",
"Request",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L252-L332 | train | Create a credential for the given Cred Request and issue it to the revocation 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... |
hyperledger/indy-sdk | wrappers/python/indy/anoncreds.py | issuer_revoke_credential | async def issuer_revoke_credential(wallet_handle: int,
blob_storage_reader_handle: int,
rev_reg_id: str,
cred_revoc_id: str) -> str:
"""
Revoke a credential identified by a cred_revoc_id (returned by issuer_... | python | async def issuer_revoke_credential(wallet_handle: int,
blob_storage_reader_handle: int,
rev_reg_id: str,
cred_revoc_id: str) -> str:
"""
Revoke a credential identified by a cred_revoc_id (returned by issuer_... | [
"async",
"def",
"issuer_revoke_credential",
"(",
"wallet_handle",
":",
"int",
",",
"blob_storage_reader_handle",
":",
"int",
",",
"rev_reg_id",
":",
"str",
",",
"cred_revoc_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"("... | Revoke a credential identified by a cred_revoc_id (returned by issuer_create_credential).
The corresponding credential definition and revocation registry must be already
created an stored into the wallet.
This call returns revoc registry delta as json file intended to be shared as REVOC_REG_ENTRY transact... | [
"Revoke",
"a",
"credential",
"identified",
"by",
"a",
"cred_revoc_id",
"(",
"returned",
"by",
"issuer_create_credential",
")",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L335-L382 | train | Revokes a credential identified by a cred_revoc_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/anoncreds.py | issuer_merge_revocation_registry_deltas | async def issuer_merge_revocation_registry_deltas(rev_reg_delta_json: str,
other_rev_reg_delta_json: str) -> str:
"""
Merge two revocation registry deltas (returned by issuer_create_credential or issuer_revoke_credential) to accumulate common delta.
Send com... | python | async def issuer_merge_revocation_registry_deltas(rev_reg_delta_json: str,
other_rev_reg_delta_json: str) -> str:
"""
Merge two revocation registry deltas (returned by issuer_create_credential or issuer_revoke_credential) to accumulate common delta.
Send com... | [
"async",
"def",
"issuer_merge_revocation_registry_deltas",
"(",
"rev_reg_delta_json",
":",
"str",
",",
"other_rev_reg_delta_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"... | Merge two revocation registry deltas (returned by issuer_create_credential or issuer_revoke_credential) to accumulate common delta.
Send common delta to ledger to reduce the load.
:param rev_reg_delta_json: revocation registry delta json
:param other_rev_reg_delta_json: revocation registry delta for which ... | [
"Merge",
"two",
"revocation",
"registry",
"deltas",
"(",
"returned",
"by",
"issuer_create_credential",
"or",
"issuer_revoke_credential",
")",
"to",
"accumulate",
"common",
"delta",
".",
"Send",
"common",
"delta",
"to",
"ledger",
"to",
"reduce",
"the",
"load",
"."
... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L435-L465 | train | Merge two revocation registry deltas into one revocation 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... |
hyperledger/indy-sdk | wrappers/python/indy/anoncreds.py | prover_create_master_secret | async def prover_create_master_secret(wallet_handle: int,
master_secret_name: Optional[str]) -> str:
"""
Creates a master secret with a given name and stores it in the wallet.
The name must be unique.
:param wallet_handle: wallet handler (created by open_wallet).
... | python | async def prover_create_master_secret(wallet_handle: int,
master_secret_name: Optional[str]) -> str:
"""
Creates a master secret with a given name and stores it in the wallet.
The name must be unique.
:param wallet_handle: wallet handler (created by open_wallet).
... | [
"async",
"def",
"prover_create_master_secret",
"(",
"wallet_handle",
":",
"int",
",",
"master_secret_name",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"("... | Creates a master secret with a given name and stores it in the wallet.
The name must be unique.
:param wallet_handle: wallet handler (created by open_wallet).
:param master_secret_name: (optional, if not present random one will be generated) new master id
:return: id of generated master secret. | [
"Creates",
"a",
"master",
"secret",
"with",
"a",
"given",
"name",
"and",
"stores",
"it",
"in",
"the",
"wallet",
".",
"The",
"name",
"must",
"be",
"unique",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L468-L498 | train | Creates a master secret with a given name and stores it in 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 | wrappers/python/indy/anoncreds.py | prover_create_credential_req | async def prover_create_credential_req(wallet_handle: int,
prover_did: str,
cred_offer_json: str,
cred_def_json: str,
master_secret_id: str) -> (str, str):
"""
... | python | async def prover_create_credential_req(wallet_handle: int,
prover_did: str,
cred_offer_json: str,
cred_def_json: str,
master_secret_id: str) -> (str, str):
"""
... | [
"async",
"def",
"prover_create_credential_req",
"(",
"wallet_handle",
":",
"int",
",",
"prover_did",
":",
"str",
",",
"cred_offer_json",
":",
"str",
",",
"cred_def_json",
":",
"str",
",",
"master_secret_id",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")"... | Creates a clam request for the given credential offer.
The method creates a blinded master secret for a master secret identified by a provided name.
The master secret identified by the name must be already stored in the secure wallet (see prover_create_master_secret)
The blinded master secret is a part of ... | [
"Creates",
"a",
"clam",
"request",
"for",
"the",
"given",
"credential",
"offer",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L501-L564 | train | Create a credential request for the given credential offer. | 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/anoncreds.py | prover_store_credential | async def prover_store_credential(wallet_handle: int,
cred_id: Optional[str],
cred_req_metadata_json: str,
cred_json: str,
cred_def_json: str,
rev_reg... | python | async def prover_store_credential(wallet_handle: int,
cred_id: Optional[str],
cred_req_metadata_json: str,
cred_json: str,
cred_def_json: str,
rev_reg... | [
"async",
"def",
"prover_store_credential",
"(",
"wallet_handle",
":",
"int",
",",
"cred_id",
":",
"Optional",
"[",
"str",
"]",
",",
"cred_req_metadata_json",
":",
"str",
",",
"cred_json",
":",
"str",
",",
"cred_def_json",
":",
"str",
",",
"rev_reg_def_json",
"... | Check credential provided by Issuer for the given credential request,
updates the credential by a master secret and stores in a secure wallet.
To support efficient search the following tags will be created for stored credential:
{
"schema_id": <credential schema id>,
"schema... | [
"Check",
"credential",
"provided",
"by",
"Issuer",
"for",
"the",
"given",
"credential",
"request",
"updates",
"the",
"credential",
"by",
"a",
"master",
"secret",
"and",
"stores",
"in",
"a",
"secure",
"wallet",
".",
"To",
"support",
"efficient",
"search",
"the"... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L567-L632 | train | Store credential in a secure 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 | wrappers/python/indy/anoncreds.py | prover_get_credential | async def prover_get_credential(wallet_handle: int,
cred_id: str) -> str:
"""
Gets human readable credential by the given id.
:param wallet_handle: wallet handler (created by open_wallet).
:param cred_id: Identifier by which requested credential is stored in the wallet
... | python | async def prover_get_credential(wallet_handle: int,
cred_id: str) -> str:
"""
Gets human readable credential by the given id.
:param wallet_handle: wallet handler (created by open_wallet).
:param cred_id: Identifier by which requested credential is stored in the wallet
... | [
"async",
"def",
"prover_get_credential",
"(",
"wallet_handle",
":",
"int",
",",
"cred_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"prover_get_credential: >>> wallet_hand... | Gets human readable credential by the given id.
:param wallet_handle: wallet handler (created by open_wallet).
:param cred_id: Identifier by which requested credential is stored in the wallet
:return: credential json
{
"referent": string, // cred_id in the wallet
"attrs": {"key1":"r... | [
"Gets",
"human",
"readable",
"credential",
"by",
"the",
"given",
"id",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L635-L672 | train | Get a credential by its 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/anoncreds.py | prover_get_credentials | async def prover_get_credentials(wallet_handle: int,
filter_json: str) -> str:
"""
Gets human readable credentials according to the filter.
If filter is NULL, then all credentials are returned.
Credentials can be filtered by tags created during saving of credential.
... | python | async def prover_get_credentials(wallet_handle: int,
filter_json: str) -> str:
"""
Gets human readable credentials according to the filter.
If filter is NULL, then all credentials are returned.
Credentials can be filtered by tags created during saving of credential.
... | [
"async",
"def",
"prover_get_credentials",
"(",
"wallet_handle",
":",
"int",
",",
"filter_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"prover_get_credentials: >>> walle... | Gets human readable credentials according to the filter.
If filter is NULL, then all credentials are returned.
Credentials can be filtered by tags created during saving of credential.
NOTE: This method is deprecated because immediately returns all fetched credentials.
Use <prover_search_credentials> to... | [
"Gets",
"human",
"readable",
"credentials",
"according",
"to",
"the",
"filter",
".",
"If",
"filter",
"is",
"NULL",
"then",
"all",
"credentials",
"are",
"returned",
".",
"Credentials",
"can",
"be",
"filtered",
"by",
"tags",
"created",
"during",
"saving",
"of",
... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L675-L725 | train | Get human readable credentials according to the filter. | 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/anoncreds.py | prover_search_credentials | async def prover_search_credentials(wallet_handle: int,
query_json: str) -> (int, int):
"""
Search for credentials stored in wallet.
Credentials can be filtered by tags created during saving of credential.
Instead of immediately returning of fetched credentials this ... | python | async def prover_search_credentials(wallet_handle: int,
query_json: str) -> (int, int):
"""
Search for credentials stored in wallet.
Credentials can be filtered by tags created during saving of credential.
Instead of immediately returning of fetched credentials this ... | [
"async",
"def",
"prover_search_credentials",
"(",
"wallet_handle",
":",
"int",
",",
"query_json",
":",
"str",
")",
"->",
"(",
"int",
",",
"int",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"p... | Search for credentials stored in wallet.
Credentials can be filtered by tags created during saving of credential.
Instead of immediately returning of fetched credentials this call returns search_handle that can be used later
to fetch records by small batches (with prover_credentials_search_fetch_records).
... | [
"Search",
"for",
"credentials",
"stored",
"in",
"wallet",
".",
"Credentials",
"can",
"be",
"filtered",
"by",
"tags",
"created",
"during",
"saving",
"of",
"credential",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L728-L764 | train | Search for credentials stored in 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 | wrappers/python/indy/anoncreds.py | prover_fetch_credentials | async def prover_fetch_credentials(search_handle: int,
count: int) -> str:
"""
Fetch next credentials for search.
:param search_handle: Search handle (created by prover_open_credentials_search)
:param count: Count of records to fetch
:return: credentials_json: Lis... | python | async def prover_fetch_credentials(search_handle: int,
count: int) -> str:
"""
Fetch next credentials for search.
:param search_handle: Search handle (created by prover_open_credentials_search)
:param count: Count of records to fetch
:return: credentials_json: Lis... | [
"async",
"def",
"prover_fetch_credentials",
"(",
"search_handle",
":",
"int",
",",
"count",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"prover_fetch_credentials: >>> search_... | Fetch next credentials for search.
:param search_handle: Search handle (created by prover_open_credentials_search)
:param count: Count of records to fetch
:return: credentials_json: List of credentials:
[{
"referent": string, // cred_id in the wallet
"attrs": {"key1":"raw_value1", "key2... | [
"Fetch",
"next",
"credentials",
"for",
"search",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L767-L805 | train | Fetch next credentials for a given 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 | wrappers/python/indy/anoncreds.py | prover_close_credentials_search | async def prover_close_credentials_search(search_handle: int) -> None:
"""
Close credentials search (make search handle invalid)
:param search_handle: Search handle (created by prover_open_credentials_search)
:return: None
"""
logger = logging.getLogger(__name__)
logger.debug("prover_close... | python | async def prover_close_credentials_search(search_handle: int) -> None:
"""
Close credentials search (make search handle invalid)
:param search_handle: Search handle (created by prover_open_credentials_search)
:return: None
"""
logger = logging.getLogger(__name__)
logger.debug("prover_close... | [
"async",
"def",
"prover_close_credentials_search",
"(",
"search_handle",
":",
"int",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"prover_close_credentials_search: >>> search_handle: %r\"",
",... | Close credentials search (make search handle invalid)
:param search_handle: Search handle (created by prover_open_credentials_search)
:return: None | [
"Close",
"credentials",
"search",
"(",
"make",
"search",
"handle",
"invalid",
")"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L808-L831 | train | Close credentials 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/anoncreds.py | prover_get_credentials_for_proof_req | async def prover_get_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str) -> str:
"""
Gets human readable credentials matching the given proof request.
NOTE: This method is deprecated because immediately returns all fetched credentials.
U... | python | async def prover_get_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str) -> str:
"""
Gets human readable credentials matching the given proof request.
NOTE: This method is deprecated because immediately returns all fetched credentials.
U... | [
"async",
"def",
"prover_get_credentials_for_proof_req",
"(",
"wallet_handle",
":",
"int",
",",
"proof_request_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"prover_get_c... | Gets human readable credentials matching the given proof request.
NOTE: This method is deprecated because immediately returns all fetched credentials.
Use <prover_search_credentials_for_proof_req> to fetch records by small batches.
:param wallet_handle: wallet handler (created by open_wallet).
:param ... | [
"Gets",
"human",
"readable",
"credentials",
"matching",
"the",
"given",
"proof",
"request",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L834-L931 | train | Get the human readable credential for a given 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 | wrappers/python/indy/anoncreds.py | prover_search_credentials_for_proof_req | async def prover_search_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str,
extra_query_json: Optional[str]) -> int:
"""
Search for credentials matching the given proof request.
Instead of... | python | async def prover_search_credentials_for_proof_req(wallet_handle: int,
proof_request_json: str,
extra_query_json: Optional[str]) -> int:
"""
Search for credentials matching the given proof request.
Instead of... | [
"async",
"def",
"prover_search_credentials_for_proof_req",
"(",
"wallet_handle",
":",
"int",
",",
"proof_request_json",
":",
"str",
",",
"extra_query_json",
":",
"Optional",
"[",
"str",
"]",
")",
"->",
"int",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",... | Search for credentials matching the given proof request.
Instead of immediately returning of fetched credentials this call returns search_handle that can be used later
to fetch records by small batches (with prover_fetch_credentials_for_proof_req).
:param wallet_handle: wallet handler (created by open_wal... | [
"Search",
"for",
"credentials",
"matching",
"the",
"given",
"proof",
"request",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L934-L993 | train | Search for credentials matching the given 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 | wrappers/python/indy/anoncreds.py | prover_create_proof | async def prover_create_proof(wallet_handle: int,
proof_req_json: str,
requested_credentials_json: str,
master_secret_name: str,
schemas_json: str,
credential_defs_json: ... | python | async def prover_create_proof(wallet_handle: int,
proof_req_json: str,
requested_credentials_json: str,
master_secret_name: str,
schemas_json: str,
credential_defs_json: ... | [
"async",
"def",
"prover_create_proof",
"(",
"wallet_handle",
":",
"int",
",",
"proof_req_json",
":",
"str",
",",
"requested_credentials_json",
":",
"str",
",",
"master_secret_name",
":",
"str",
",",
"schemas_json",
":",
"str",
",",
"credential_defs_json",
":",
"st... | Creates a proof according to the given proof request
Either a corresponding credential with optionally revealed attributes or self-attested attribute must be provided
for each requested attribute (see indy_prover_get_credentials_for_pool_req).
A proof request may request multiple credentials from different ... | [
"Creates",
"a",
"proof",
"according",
"to",
"the",
"given",
"proof",
"request",
"Either",
"a",
"corresponding",
"credential",
"with",
"optionally",
"revealed",
"attributes",
"or",
"self",
"-",
"attested",
"attribute",
"must",
"be",
"provided",
"for",
"each",
"re... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1073-L1244 | train | This function creates a proof according to the given 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 | wrappers/python/indy/anoncreds.py | verifier_verify_proof | async def verifier_verify_proof(proof_request_json: str,
proof_json: str,
schemas_json: str,
credential_defs_json: str,
rev_reg_defs_json: str,
rev_regs_json: s... | python | async def verifier_verify_proof(proof_request_json: str,
proof_json: str,
schemas_json: str,
credential_defs_json: str,
rev_reg_defs_json: str,
rev_regs_json: s... | [
"async",
"def",
"verifier_verify_proof",
"(",
"proof_request_json",
":",
"str",
",",
"proof_json",
":",
"str",
",",
"schemas_json",
":",
"str",
",",
"credential_defs_json",
":",
"str",
",",
"rev_reg_defs_json",
":",
"str",
",",
"rev_regs_json",
":",
"str",
")",
... | Verifies a proof (of multiple credential).
All required schemas, public keys and revocation registries must be provided.
:param proof_request_json:
{
"name": string,
"version": string,
"nonce": string,
"requested_attributes": { // set of requested a... | [
"Verifies",
"a",
"proof",
"(",
"of",
"multiple",
"credential",
")",
".",
"All",
"required",
"schemas",
"public",
"keys",
"and",
"revocation",
"registries",
"must",
"be",
"provided",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1247-L1364 | train | Verify a proof of multiple 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 | wrappers/python/indy/anoncreds.py | create_revocation_state | async def create_revocation_state(blob_storage_reader_handle: int,
rev_reg_def_json: str,
rev_reg_delta_json: str,
timestamp: int,
cred_rev_id: str) -> str:
"""
Create revocati... | python | async def create_revocation_state(blob_storage_reader_handle: int,
rev_reg_def_json: str,
rev_reg_delta_json: str,
timestamp: int,
cred_rev_id: str) -> str:
"""
Create revocati... | [
"async",
"def",
"create_revocation_state",
"(",
"blob_storage_reader_handle",
":",
"int",
",",
"rev_reg_def_json",
":",
"str",
",",
"rev_reg_delta_json",
":",
"str",
",",
"timestamp",
":",
"int",
",",
"cred_rev_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
... | Create revocation state for a credential in the particular time moment.
:param blob_storage_reader_handle: configuration of blob storage reader handle that will allow to read revocation tails
:param rev_reg_def_json: revocation registry definition json
:param rev_reg_delta_json: revocation registry definit... | [
"Create",
"revocation",
"state",
"for",
"a",
"credential",
"in",
"the",
"particular",
"time",
"moment",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/anoncreds.py#L1367-L1416 | train | Create revocation state for a user credential in the particular time moment. | 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/ledger.py | sign_and_submit_request | async def sign_and_submit_request(pool_handle: int,
wallet_handle: int,
submitter_did: str,
request_json: str) -> str:
"""
Signs and submits request message to validator pool.
Adds submitter information to... | python | async def sign_and_submit_request(pool_handle: int,
wallet_handle: int,
submitter_did: str,
request_json: str) -> str:
"""
Signs and submits request message to validator pool.
Adds submitter information to... | [
"async",
"def",
"sign_and_submit_request",
"(",
"pool_handle",
":",
"int",
",",
"wallet_handle",
":",
"int",
",",
"submitter_did",
":",
"str",
",",
"request_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__"... | Signs and submits request message to validator pool.
Adds submitter information to passed request json, signs it with submitter
sign key (see wallet_sign), and sends signed request message
to validator pool (see write_request).
:param pool_handle: pool handle (created by open_pool_ledger).
:param ... | [
"Signs",
"and",
"submits",
"request",
"message",
"to",
"validator",
"pool",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L9-L52 | train | Signs and submits request to validator pool. | 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/ledger.py | submit_request | async def submit_request(pool_handle: int,
request_json: str) -> str:
"""
Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool... | python | async def submit_request(pool_handle: int,
request_json: str) -> str:
"""
Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool... | [
"async",
"def",
"submit_request",
"(",
"pool_handle",
":",
"int",
",",
"request_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"submit_request: >>> pool_handle: %r, reque... | Publishes request message to validator pool (no signing, unlike sign_and_submit_request).
The request is sent to the validator pool as is. It's assumed that it's already prepared.
:param pool_handle: pool handle (created by open_pool_ledger).
:param request_json: Request data json.
:return: Request res... | [
"Publishes",
"request",
"message",
"to",
"validator",
"pool",
"(",
"no",
"signing",
"unlike",
"sign_and_submit_request",
")",
".",
"The",
"request",
"is",
"sent",
"to",
"the",
"validator",
"pool",
"as",
"is",
".",
"It",
"s",
"assumed",
"that",
"it",
"s",
"... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L55-L85 | train | Submit request to validator pool. | 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/ledger.py | submit_action | async def submit_action(pool_handle: int,
request_json: str,
nodes: Optional[str],
timeout: Optional[int]) -> str:
"""
Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
... | python | async def submit_action(pool_handle: int,
request_json: str,
nodes: Optional[str],
timeout: Optional[int]) -> str:
"""
Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
... | [
"async",
"def",
"submit_action",
"(",
"pool_handle",
":",
"int",
",",
"request_json",
":",
"str",
",",
"nodes",
":",
"Optional",
"[",
"str",
"]",
",",
"timeout",
":",
"Optional",
"[",
"int",
"]",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
... | Send action to particular nodes of validator pool.
The list of requests can be send:
POOL_RESTART
GET_VALIDATOR_INFO
The request is sent to the nodes as is. It's assumed that it's already prepared.
:param pool_handle: pool handle (created by open_pool_ledger).
:param request_js... | [
"Send",
"action",
"to",
"particular",
"nodes",
"of",
"validator",
"pool",
".",
"The",
"list",
"of",
"requests",
"can",
"be",
"send",
":",
"POOL_RESTART",
"GET_VALIDATOR_INFO",
"The",
"request",
"is",
"sent",
"to",
"the",
"nodes",
"as",
"is",
".",
"It",
"s"... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L88-L134 | train | Send action to specific nodes of validator pool. | 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/ledger.py | build_get_ddo_request | async def build_get_ddo_request(submitter_did: Optional[str],
target_did: str) -> str:
"""
Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Ide... | python | async def build_get_ddo_request(submitter_did: Optional[str],
target_did: str) -> str:
"""
Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Ide... | [
"async",
"def",
"build_get_ddo_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"target_did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_g... | Builds a request to get a DDO.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param target_did: Id of Identity stored in secured Wallet.
:return: Request result as json. | [
"Builds",
"a",
"request",
"to",
"get",
"a",
"DDO",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L217-L246 | train | Builds a request to get a DDO. | 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/ledger.py | build_nym_request | async def build_nym_request(submitter_did: str,
target_did: str,
ver_key: Optional[str],
alias: Optional[str],
role: Optional[str]) -> str:
"""
Builds a NYM request.
:param submitter_did: DID of ... | python | async def build_nym_request(submitter_did: str,
target_did: str,
ver_key: Optional[str],
alias: Optional[str],
role: Optional[str]) -> str:
"""
Builds a NYM request.
:param submitter_did: DID of ... | [
"async",
"def",
"build_nym_request",
"(",
"submitter_did",
":",
"str",
",",
"target_did",
":",
"str",
",",
"ver_key",
":",
"Optional",
"[",
"str",
"]",
",",
"alias",
":",
"Optional",
"[",
"str",
"]",
",",
"role",
":",
"Optional",
"[",
"str",
"]",
")",
... | Builds a NYM request.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param target_did: Target DID as base58-encoded string for 16 or 32 bit DID value.
:param ver_key: Target identity verification key as base58-encoded string.
:param alias: NYM's alias.
:param role: Role of a ... | [
"Builds",
"a",
"NYM",
"request",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L249-L299 | train | Builds a NYM 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/ledger.py | build_attrib_request | async def build_attrib_request(submitter_did: str,
target_did: str,
xhash: Optional[str],
raw: Optional[str],
enc: Optional[str]) -> str:
"""
Builds an ATTRIB request. Request to add attri... | python | async def build_attrib_request(submitter_did: str,
target_did: str,
xhash: Optional[str],
raw: Optional[str],
enc: Optional[str]) -> str:
"""
Builds an ATTRIB request. Request to add attri... | [
"async",
"def",
"build_attrib_request",
"(",
"submitter_did",
":",
"str",
",",
"target_did",
":",
"str",
",",
"xhash",
":",
"Optional",
"[",
"str",
"]",
",",
"raw",
":",
"Optional",
"[",
"str",
"]",
",",
"enc",
":",
"Optional",
"[",
"str",
"]",
")",
... | Builds an ATTRIB request. Request to add attribute to a NYM record.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param target_did: Target DID as base58-encoded string for 16 or 32 bit DID value.
:param xhash: (Optional) Hash of attribute data.
:param raw: (Optional) Json, where... | [
"Builds",
"an",
"ATTRIB",
"request",
".",
"Request",
"to",
"add",
"attribute",
"to",
"a",
"NYM",
"record",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L302-L346 | train | Builds an ATTRIB request. Request to add attribute to a NYM record. | 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/ledger.py | parse_get_schema_response | async def parse_get_schema_response(get_schema_response: str) -> (str, str):
"""
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema... | python | async def parse_get_schema_response(get_schema_response: str) -> (str, str):
"""
Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema... | [
"async",
"def",
"parse_get_schema_response",
"(",
"get_schema_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_schema_response: >>> get... | Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API
:param get_schema_response: response of GET_SCHEMA request.
:return: Schema Id and Schema json.
{
id: identifier of schema
attrNames: array of attribute name strings
name: Schema's name string
... | [
"Parse",
"a",
"GET_SCHEMA",
"response",
"to",
"get",
"Schema",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L499-L529 | train | Parse a GET_SCHEMA response to get Schema in the format compatible with Anoncreds API. | 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/ledger.py | build_get_cred_def_request | async def build_get_cred_def_request(submitter_did: Optional[str],
id_: str) -> str:
"""
Builds a GET_CRED_DEF request. Request to get a credential definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
:param submitter_did: (O... | python | async def build_get_cred_def_request(submitter_did: Optional[str],
id_: str) -> str:
"""
Builds a GET_CRED_DEF request. Request to get a credential definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
:param submitter_did: (O... | [
"async",
"def",
"build_get_cred_def_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"id_",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_get... | Builds a GET_CRED_DEF request. Request to get a credential definition (in particular, public key),
that Issuer creates for a particular Credential Schema.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param id_: Credential Definitio... | [
"Builds",
"a",
"GET_CRED_DEF",
"request",
".",
"Request",
"to",
"get",
"a",
"credential",
"definition",
"(",
"in",
"particular",
"public",
"key",
")",
"that",
"Issuer",
"creates",
"for",
"a",
"particular",
"Credential",
"Schema",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L576-L606 | train | Builds a GET_CRED_DEF request. Request to get a 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 | wrappers/python/indy/ledger.py | parse_get_cred_def_response | async def parse_get_cred_def_response(get_cred_def_response: str) -> (str, str):
"""
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential D... | python | async def parse_get_cred_def_response(get_cred_def_response: str) -> (str, str):
"""
Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential D... | [
"async",
"def",
"parse_get_cred_def_response",
"(",
"get_cred_def_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_cred_def_response: >... | Parse a GET_CRED_DEF response to get Credential Definition in the format compatible with Anoncreds API.
:param get_cred_def_response: response of GET_CRED_DEF request.
:return: Credential Definition Id and Credential Definition json.
{
id: string - identifier of credential definition
... | [
"Parse",
"a",
"GET_CRED_DEF",
"response",
"to",
"get",
"Credential",
"Definition",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L609-L643 | train | Parse a GET_CRED_DEF response to get Credential Definition Id and Credential Definition json. | 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/ledger.py | build_get_validator_info_request | async def build_get_validator_info_request(submitter_did: str) -> str:
"""
Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json.
"""
logger = logging.getLogger(__name__)
logger.debug("build_get_validator_info_req... | python | async def build_get_validator_info_request(submitter_did: str) -> str:
"""
Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json.
"""
logger = logging.getLogger(__name__)
logger.debug("build_get_validator_info_req... | [
"async",
"def",
"build_get_validator_info_request",
"(",
"submitter_did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"build_get_validator_info_request: >>> submitter_did: %r\"",
"... | Builds a GET_VALIDATOR_INFO request.
:param submitter_did: Id of Identity stored in secured Wallet.
:return: Request result as json. | [
"Builds",
"a",
"GET_VALIDATOR_INFO",
"request",
".",
":",
"param",
"submitter_did",
":",
"Id",
"of",
"Identity",
"stored",
"in",
"secured",
"Wallet",
".",
":",
"return",
":",
"Request",
"result",
"as",
"json",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L693-L715 | train | Builds a GET_VALIDATOR_INFO 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/ledger.py | build_get_txn_request | async def build_get_txn_request(submitter_did: Optional[str],
ledger_type: Optional[str],
seq_no: int) -> str:
"""
Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request... | python | async def build_get_txn_request(submitter_did: Optional[str],
ledger_type: Optional[str],
seq_no: int) -> str:
"""
Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request... | [
"async",
"def",
"build_get_txn_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"ledger_type",
":",
"Optional",
"[",
"str",
"]",
",",
"seq_no",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__n... | Builds a GET_TXN request. Request to get any transaction by its seq_no.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param ledger_type: (Optional) type of the ledger the requested transaction belongs to:
DOMAIN - used default,... | [
"Builds",
"a",
"GET_TXN",
"request",
".",
"Request",
"to",
"get",
"any",
"transaction",
"by",
"its",
"seq_no",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L718-L756 | train | Builds a GET_TXN request. Request to get any transaction by its seq_no. | 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/ledger.py | build_pool_config_request | async def build_pool_config_request(submitter_did: str,
writes: bool,
force: bool) -> str:
"""
Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
... | python | async def build_pool_config_request(submitter_did: str,
writes: bool,
force: bool) -> str:
"""
Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
... | [
"async",
"def",
"build_pool_config_request",
"(",
"submitter_did",
":",
"str",
",",
"writes",
":",
"bool",
",",
"force",
":",
"bool",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\... | Builds a POOL_CONFIG request. Request to change Pool's configuration.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param writes: Whether any write requests can be processed by the pool
(if false, then pool goes to read-only state). True by default.
:param force: ... | [
"Builds",
"a",
"POOL_CONFIG",
"request",
".",
"Request",
"to",
"change",
"Pool",
"s",
"configuration",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L759-L795 | train | Builds a POOL_CONFIG request. Request to change Pool s 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/ledger.py | build_pool_restart_request | async def build_pool_restart_request(submitter_did: str, action: str, datetime: str) -> str:
"""
Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "star... | python | async def build_pool_restart_request(submitter_did: str, action: str, datetime: str) -> str:
"""
Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "star... | [
"async",
"def",
"build_pool_restart_request",
"(",
"submitter_did",
":",
"str",
",",
"action",
":",
"str",
",",
"datetime",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
... | Builds a POOL_RESTART request
:param submitter_did: Id of Identity that sender transaction
:param action : Action that pool has to do after received transaction.
Can be "start" or "cancel"
:param datetime : Time when pool must be restarted. | [
"Builds",
"a",
"POOL_RESTART",
"request"
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L798-L827 | train | Builds a POOL_RESTART 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/ledger.py | build_pool_upgrade_request | async def build_pool_upgrade_request(submitter_did: str,
name: str,
version: str,
action: str,
_sha256: str,
_timeout: Optional[int],
... | python | async def build_pool_upgrade_request(submitter_did: str,
name: str,
version: str,
action: str,
_sha256: str,
_timeout: Optional[int],
... | [
"async",
"def",
"build_pool_upgrade_request",
"(",
"submitter_did",
":",
"str",
",",
"name",
":",
"str",
",",
"version",
":",
"str",
",",
"action",
":",
"str",
",",
"_sha256",
":",
"str",
",",
"_timeout",
":",
"Optional",
"[",
"int",
"]",
",",
"schedule"... | Builds a POOL_UPGRADE request. Request to upgrade the Pool (sent by Trustee).
It upgrades the specified Nodes (either all nodes in the Pool, or some specific ones).
:param submitter_did: DID of the submitter stored in secured Wallet.
:param name: Human-readable name for the upgrade.
:param version: The... | [
"Builds",
"a",
"POOL_UPGRADE",
"request",
".",
"Request",
"to",
"upgrade",
"the",
"Pool",
"(",
"sent",
"by",
"Trustee",
")",
".",
"It",
"upgrades",
"the",
"specified",
"Nodes",
"(",
"either",
"all",
"nodes",
"in",
"the",
"Pool",
"or",
"some",
"specific",
... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L830-L899 | train | Builds a POOL_UPGRADE 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/ledger.py | build_get_revoc_reg_def_request | async def build_get_revoc_reg_def_request(submitter_did: Optional[str],
rev_reg_def_id: str) -> str:
"""
Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition,
that Issuer creates for a particular Credential Definition.
:param subm... | python | async def build_get_revoc_reg_def_request(submitter_did: Optional[str],
rev_reg_def_id: str) -> str:
"""
Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition,
that Issuer creates for a particular Credential Definition.
:param subm... | [
"async",
"def",
"build_get_revoc_reg_def_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"rev_reg_def_id",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"("... | Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry definition,
that Issuer creates for a particular Credential Definition.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param rev_reg_def_id: ID of Revocation R... | [
"Builds",
"a",
"GET_REVOC_REG_DEF",
"request",
".",
"Request",
"to",
"get",
"a",
"revocation",
"registry",
"definition",
"that",
"Issuer",
"creates",
"for",
"a",
"particular",
"Credential",
"Definition",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L948-L978 | train | Builds a GET_REVOC_REG_DEF request. Request to get a revocation registry 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 | wrappers/python/indy/ledger.py | parse_get_revoc_reg_def_response | async def parse_get_revoc_reg_def_response(get_revoc_ref_def_response: str) -> (str, str):
"""
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocat... | python | async def parse_get_revoc_reg_def_response(get_revoc_ref_def_response: str) -> (str, str):
"""
Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocat... | [
"async",
"def",
"parse_get_revoc_reg_def_response",
"(",
"get_revoc_ref_def_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_revoc_reg_... | Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition in the format compatible with Anoncreds API.
:param get_revoc_ref_def_response: response of GET_REVOC_REG_DEF request.
:return: Revocation Registry Definition Id and Revocation Registry Definition json.
{
"id": string - ID... | [
"Parse",
"a",
"GET_REVOC_REG_DEF",
"response",
"to",
"get",
"Revocation",
"Registry",
"Definition",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L981-L1018 | train | Parse a GET_REVOC_REG_DEF response to get Revocation Registry Definition Id and Revocation Registry Definition json. | 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/ledger.py | build_revoc_reg_entry_request | async def build_revoc_reg_entry_request(submitter_did: str,
revoc_reg_def_id: str,
rev_def_type: str,
value: str) -> str:
"""
Builds a REVOC_REG_ENTRY request. Request to add the RevocReg ent... | python | async def build_revoc_reg_entry_request(submitter_did: str,
revoc_reg_def_id: str,
rev_def_type: str,
value: str) -> str:
"""
Builds a REVOC_REG_ENTRY request. Request to add the RevocReg ent... | [
"async",
"def",
"build_revoc_reg_entry_request",
"(",
"submitter_did",
":",
"str",
",",
"revoc_reg_def_id",
":",
"str",
",",
"rev_def_type",
":",
"str",
",",
"value",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name... | Builds a REVOC_REG_ENTRY request. Request to add the RevocReg entry containing
the new accumulator value and issued/revoked indices.
This is just a delta of indices, not the whole list. So, it can be sent each time a new credential is issued/revoked.
:param submitter_did: DID of the submitter stored in se... | [
"Builds",
"a",
"REVOC_REG_ENTRY",
"request",
".",
"Request",
"to",
"add",
"the",
"RevocReg",
"entry",
"containing",
"the",
"new",
"accumulator",
"value",
"and",
"issued",
"/",
"revoked",
"indices",
".",
"This",
"is",
"just",
"a",
"delta",
"of",
"indices",
"n... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1021-L1069 | train | Builds a REVOC_REG_ENTRY request. Request to add a Revocation Registry entry to the list of revocation registry entries. | 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/ledger.py | build_get_revoc_reg_request | async def build_get_revoc_reg_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
timestamp: int) -> str:
"""
Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry
by ID. The state ... | python | async def build_get_revoc_reg_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
timestamp: int) -> str:
"""
Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry
by ID. The state ... | [
"async",
"def",
"build_get_revoc_reg_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"revoc_reg_def_id",
":",
"str",
",",
"timestamp",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",... | Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry
by ID. The state is defined by the given timestamp.
:param submitter_did: (Optional) DID of the read request sender (if not provided then default Libindy DID will be used).
:param revoc_reg_def_id: ID of the co... | [
"Builds",
"a",
"GET_REVOC_REG",
"request",
".",
"Request",
"to",
"get",
"the",
"accumulated",
"state",
"of",
"the",
"Revocation",
"Registry",
"by",
"ID",
".",
"The",
"state",
"is",
"defined",
"by",
"the",
"given",
"timestamp",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1072-L1105 | train | Builds a GET_REVOC_REG request. Request to get the accumulated state of the Revocation Registry 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/ledger.py | parse_get_revoc_reg_response | async def parse_get_revoc_reg_response(get_revoc_reg_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id... | python | async def parse_get_revoc_reg_response(get_revoc_reg_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id... | [
"async",
"def",
"parse_get_revoc_reg_response",
"(",
"get_revoc_reg_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
",",
"int",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"parse_get_re... | Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API.
:param get_revoc_reg_response: response of GET_REVOC_REG request.
:return: Revocation Registry Definition Id, Revocation Registry json and Timestamp.
{
"value": Registry-specific data {
... | [
"Parse",
"a",
"GET_REVOC_REG",
"response",
"to",
"get",
"Revocation",
"Registry",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1108-L1137 | train | Parse a GET_REVOC_REG response to get Revocation Registry in the format compatible with Anoncreds API. | 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/ledger.py | build_get_revoc_reg_delta_request | async def build_get_revoc_reg_delta_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
from_: Optional[int],
to: int) -> str:
"""
Builds a GET_REVOC_REG_DELTA request. Re... | python | async def build_get_revoc_reg_delta_request(submitter_did: Optional[str],
revoc_reg_def_id: str,
from_: Optional[int],
to: int) -> str:
"""
Builds a GET_REVOC_REG_DELTA request. Re... | [
"async",
"def",
"build_get_revoc_reg_delta_request",
"(",
"submitter_did",
":",
"Optional",
"[",
"str",
"]",
",",
"revoc_reg_def_id",
":",
"str",
",",
"from_",
":",
"Optional",
"[",
"int",
"]",
",",
"to",
":",
"int",
")",
"->",
"str",
":",
"logger",
"=",
... | Builds a GET_REVOC_REG_DELTA request. Request to get the delta of the accumulated state of the Revocation Registry.
The Delta is defined by from and to timestamp fields.
If from is not specified, then the whole state till to will be returned.
:param submitter_did: (Optional) DID of the read request sender ... | [
"Builds",
"a",
"GET_REVOC_REG_DELTA",
"request",
".",
"Request",
"to",
"get",
"the",
"delta",
"of",
"the",
"accumulated",
"state",
"of",
"the",
"Revocation",
"Registry",
".",
"The",
"Delta",
"is",
"defined",
"by",
"from",
"and",
"to",
"timestamp",
"fields",
... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1140-L1178 | train | Builds a GET_REVOC_REG_DELTA request. Request to get the delta of the accumulated state of the Revocation 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... |
hyperledger/indy-sdk | wrappers/python/indy/ledger.py | parse_get_revoc_reg_delta_response | async def parse_get_revoc_reg_delta_response(get_revoc_reg_delta_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:retur... | python | async def parse_get_revoc_reg_delta_response(get_revoc_reg_delta_response: str) -> (str, str, int):
"""
Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:retur... | [
"async",
"def",
"parse_get_revoc_reg_delta_response",
"(",
"get_revoc_reg_delta_response",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
",",
"int",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"... | Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta in the format compatible with Anoncreds API.
:param get_revoc_reg_delta_response: response of GET_REVOC_REG_DELTA request.
:return: Revocation Registry Definition Id, Revocation Registry Delta json and Timestamp.
{
"value": R... | [
"Parse",
"a",
"GET_REVOC_REG_DELTA",
"response",
"to",
"get",
"Revocation",
"Registry",
"Delta",
"in",
"the",
"format",
"compatible",
"with",
"Anoncreds",
"API",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1181-L1215 | train | Parse a GET_REVOC_REG_DELTA response to get Revocation Registry Delta json and Timestamp. | 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/ledger.py | get_response_metadata | async def get_response_metadata(response: str) -> str:
"""
Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce ... | python | async def get_response_metadata(response: str) -> str:
"""
Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce ... | [
"async",
"def",
"get_response_metadata",
"(",
"response",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_response_metadata: >>> response: %r\"",
",",
"response",
")",
"if",... | Parse transaction response to fetch metadata.
The important use case for this method is validation of Node's response freshens.
Distributed Ledgers can reply with outdated information for consequence read request after write.
To reduce pool load libindy sends read requests to one random node in the pool... | [
"Parse",
"transaction",
"response",
"to",
"fetch",
"metadata",
".",
"The",
"important",
"use",
"case",
"for",
"this",
"method",
"is",
"validation",
"of",
"Node",
"s",
"response",
"freshens",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1218-L1263 | train | Parse response to get 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... |
hyperledger/indy-sdk | wrappers/python/indy/ledger.py | build_auth_rule_request | async def build_auth_rule_request(submitter_did: str,
txn_type: str,
action: str,
field: str,
old_value: Optional[str],
new_value: Optional[str],
... | python | async def build_auth_rule_request(submitter_did: str,
txn_type: str,
action: str,
field: str,
old_value: Optional[str],
new_value: Optional[str],
... | [
"async",
"def",
"build_auth_rule_request",
"(",
"submitter_did",
":",
"str",
",",
"txn_type",
":",
"str",
",",
"action",
":",
"str",
",",
"field",
":",
"str",
",",
"old_value",
":",
"Optional",
"[",
"str",
"]",
",",
"new_value",
":",
"Optional",
"[",
"st... | Builds a AUTH_RULE request. Request to change authentication rules for a ledger transaction.
:param submitter_did: DID of the submitter stored in secured Wallet.
:param txn_type: ledger transaction alias or associated value.
:param action: type of an action.
Can be either "ADD" (to add a new rule) o... | [
"Builds",
"a",
"AUTH_RULE",
"request",
".",
"Request",
"to",
"change",
"authentication",
"rules",
"for",
"a",
"ledger",
"transaction",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/ledger.py#L1266-L1340 | train | Builds a AUTH_RULE 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/did.py | create_and_store_my_did | async def create_and_store_my_did(wallet_handle: int,
did_json: str) -> (str, str):
"""
Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verk... | python | async def create_and_store_my_did(wallet_handle: int,
did_json: str) -> (str, str):
"""
Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verk... | [
"async",
"def",
"create_and_store_my_did",
"(",
"wallet_handle",
":",
"int",
",",
"did_json",
":",
"str",
")",
"->",
"(",
"str",
",",
"str",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"creat... | Creates keys (signing and encryption keys) for a new
DID (owned by the caller of the library).
Identity's DID must be either explicitly provided, or taken as the first 16 bit of verkey.
Saves the Identity DID with keys in a secured Wallet, so that it can be used to sign
and encrypt transactions.
:p... | [
"Creates",
"keys",
"(",
"signing",
"and",
"encryption",
"keys",
")",
"for",
"a",
"new",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
".",
"Identity",
"s",
"DID",
"must",
"be",
"either",
"explicitly",
"provided",
"or",
"taken",... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L10-L56 | train | Create a new DID and store it in a secured 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 | wrappers/python/indy/did.py | replace_keys_start | async def replace_keys_start(wallet_handle: int,
did: str,
identity_json: str) -> str:
"""
Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created b... | python | async def replace_keys_start(wallet_handle: int,
did: str,
identity_json: str) -> str:
"""
Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created b... | [
"async",
"def",
"replace_keys_start",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"identity_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"rep... | Generated new keys (signing and encryption keys) for an existing
DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: signing DID
:param identity_json: Identity information as json. Example:
{
"seed": string, (optional) Se... | [
"Generated",
"new",
"keys",
"(",
"signing",
"and",
"encryption",
"keys",
")",
"for",
"an",
"existing",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L59-L101 | train | This function generates new keys for an existing node with the given DID and identity information. | 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/did.py | replace_keys_apply | async def replace_keys_apply(wallet_handle: int,
did: str) -> None:
"""
Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Err... | python | async def replace_keys_apply(wallet_handle: int,
did: str) -> None:
"""
Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Err... | [
"async",
"def",
"replace_keys_apply",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"replace_keys_apply: >>> wallet_handle: %r, d... | Apply temporary keys as main for an existing DID (owned by the caller of the library).
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to resolve key.
:return: Error code | [
"Apply",
"temporary",
"keys",
"as",
"main",
"for",
"an",
"existing",
"DID",
"(",
"owned",
"by",
"the",
"caller",
"of",
"the",
"library",
")",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L104-L131 | train | Apply temporary keys as main for an existing 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/did.py | store_their_did | async def store_their_did(wallet_handle: int,
identity_json: str) -> None:
"""
Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: ... | python | async def store_their_did(wallet_handle: int,
identity_json: str) -> None:
"""
Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: ... | [
"async",
"def",
"store_their_did",
"(",
"wallet_handle",
":",
"int",
",",
"identity_json",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"store_their_did: >>> wallet_handle: %... | Saves their DID for a pairwise connection in a secured Wallet,
so that it can be used to verify transaction.
:param wallet_handle: wallet handler (created by open_wallet).
:param identity_json: Identity information as json. Example:
{
"did": string, (required)
"verkey": string... | [
"Saves",
"their",
"DID",
"for",
"a",
"pairwise",
"connection",
"in",
"a",
"secured",
"Wallet",
"so",
"that",
"it",
"can",
"be",
"used",
"to",
"verify",
"transaction",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L134-L169 | train | Store their DID for a pairwise connection in a secured 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 | wrappers/python/indy/did.py | create_key | async def create_key(wallet_handle: int,
key_json: str) -> str:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that a... | python | async def create_key(wallet_handle: int,
key_json: str) -> str:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that a... | [
"async",
"def",
"create_key",
"(",
"wallet_handle",
":",
"int",
",",
"key_json",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"create_key: >>> wallet_handle: %r, key_json: %r\... | Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param key_json: Key information as json. Example:
{
"seed": string, (optional) Seed that allows deterministic key creation (if not set random one will be created).
... | [
"Creates",
"keys",
"pair",
"and",
"stores",
"in",
"the",
"wallet",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L171-L207 | train | Create a new key pair and stores it in 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 | wrappers/python/indy/did.py | set_key_metadata | async def set_key_metadata(wallet_handle: int,
verkey: str,
metadata: str) -> None:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metada... | python | async def set_key_metadata(wallet_handle: int,
verkey: str,
metadata: str) -> None:
"""
Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metada... | [
"async",
"def",
"set_key_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"verkey",
":",
"str",
",",
"metadata",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"set_ke... | Creates keys pair and stores in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: the key (verkey, key id) to store metadata.
:param metadata: the meta information that will be store with the key.
:return: Error code | [
"Creates",
"keys",
"pair",
"and",
"stores",
"in",
"the",
"wallet",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L210-L242 | train | Create keys pair and stores in 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 | wrappers/python/indy/did.py | get_key_metadata | async def get_key_metadata(wallet_handle: int,
verkey: str) -> str:
"""
Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: me... | python | async def get_key_metadata(wallet_handle: int,
verkey: str) -> str:
"""
Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: me... | [
"async",
"def",
"get_key_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"verkey",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_key_metadata: >>> wallet_handle: %r, ver... | Retrieves the meta information for the giving key in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param verkey: The key (verkey, key id) to retrieve metadata.
:return: metadata: The meta information stored with the key; Can be null if no metadata was saved for this key. | [
"Retrieves",
"the",
"meta",
"information",
"for",
"the",
"giving",
"key",
"in",
"the",
"wallet",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L245-L275 | train | Retrieves the meta information for the given key in 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 | wrappers/python/indy/did.py | set_endpoint_for_did | async def set_endpoint_for_did(wallet_handle: int,
did: str,
address: str,
transport_key: str) -> None:
"""
Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_... | python | async def set_endpoint_for_did(wallet_handle: int,
did: str,
address: str,
transport_key: str) -> None:
"""
Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_... | [
"async",
"def",
"set_endpoint_for_did",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"address",
":",
"str",
",",
"transport_key",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"log... | Set/replaces endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: The DID to resolve endpoint.
:param address: The DIDs endpoint address.
:param transport_key: The DIDs transport key (ver key, key id).
:return: Error code | [
"Set",
"/",
"replaces",
"endpoint",
"information",
"for",
"the",
"given",
"DID",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L368-L405 | train | Set endpoint information for the given 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/did.py | get_endpoint_for_did | async def get_endpoint_for_did(wallet_handle: int,
pool_handle: int,
did: str) -> (str, Optional[str]):
"""
Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Poo... | python | async def get_endpoint_for_did(wallet_handle: int,
pool_handle: int,
did: str) -> (str, Optional[str]):
"""
Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Poo... | [
"async",
"def",
"get_endpoint_for_did",
"(",
"wallet_handle",
":",
"int",
",",
"pool_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"(",
"str",
",",
"Optional",
"[",
"str",
"]",
")",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__nam... | Returns endpoint information for the given DID.
:param wallet_handle: Wallet handle (created by open_wallet).
:param pool_handle: Pool handle (created by open_pool).
:param did: The DID to resolve endpoint.
:return: (endpoint, transport_vk) | [
"Returns",
"endpoint",
"information",
"for",
"the",
"given",
"DID",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L408-L445 | train | Get endpoint information for a given 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/did.py | set_did_metadata | async def set_did_metadata(wallet_handle: int,
did: str,
metadata: str) -> None:
"""
Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store met... | python | async def set_did_metadata(wallet_handle: int,
did: str,
metadata: str) -> None:
"""
Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store met... | [
"async",
"def",
"set_did_metadata",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
",",
"metadata",
":",
"str",
")",
"->",
"None",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"set_did_m... | Saves/replaces the meta information for the giving DID in the wallet.
:param wallet_handle: Wallet handle (created by open_wallet).
:param did: the DID to store metadata.
:param metadata: the meta information that will be store with the DID.
:return: Error code | [
"Saves",
"/",
"replaces",
"the",
"meta",
"information",
"for",
"the",
"giving",
"DID",
"in",
"the",
"wallet",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L448-L480 | train | Sets the meta information for the given DID in 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 | wrappers/python/indy/did.py | get_my_did_with_meta | async def get_my_did_with_meta(wallet_handle: int, did: str) -> str:
"""
Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata.
"""
logger = logging.ge... | python | async def get_my_did_with_meta(wallet_handle: int, did: str) -> str:
"""
Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata.
"""
logger = logging.ge... | [
"async",
"def",
"get_my_did_with_meta",
"(",
"wallet_handle",
":",
"int",
",",
"did",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"get_my_did_with_meta: >>> wallet_handle: %r... | Get DID metadata and verkey stored in the wallet.
:param wallet_handle: wallet handler (created by open_wallet).
:param did: The DID to retrieve metadata.
:return: DID with verkey and metadata. | [
"Get",
"DID",
"metadata",
"and",
"verkey",
"stored",
"in",
"the",
"wallet",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L516-L545 | train | Get DID metadata and verkey stored in 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 | wrappers/python/indy/did.py | abbreviate_verkey | async def abbreviate_verkey(did: str,
full_verkey: str) -> str:
"""
Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey.
""... | python | async def abbreviate_verkey(did: str,
full_verkey: str) -> str:
"""
Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey.
""... | [
"async",
"def",
"abbreviate_verkey",
"(",
"did",
":",
"str",
",",
"full_verkey",
":",
"str",
")",
"->",
"str",
":",
"logger",
"=",
"logging",
".",
"getLogger",
"(",
"__name__",
")",
"logger",
".",
"debug",
"(",
"\"abbreviate_verkey: >>> did: %r, full_verkey: %r\... | Retrieves abbreviated verkey if it is possible otherwise return full verkey.
:param did: The DID.
:param full_verkey: The DIDs verification key,
:return: metadata: Either abbreviated or full verkey. | [
"Retrieves",
"abbreviated",
"verkey",
"if",
"it",
"is",
"possible",
"otherwise",
"return",
"full",
"verkey",
"."
] | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/wrappers/python/indy/did.py#L576-L605 | train | Returns the full verkey for the given 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 | vcx/wrappers/python3/vcx/api/credential.py | Credential.create | async def create(source_id: str, credential_offer: str):
"""
Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
... | python | async def create(source_id: str, credential_offer: str):
"""
Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
... | [
"async",
"def",
"create",
"(",
"source_id",
":",
"str",
",",
"credential_offer",
":",
"str",
")",
":",
"constructor_params",
"=",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
"encode",
"(",
"'utf-8'",
")",
")",
"c_offe... | Creates a credential with an offer.
:param source_id: user defined id of object.
:param credential_offer: JSON string representing the offer used as the basis of creation.
:return: A created credential
Example:
offer = [{
"msg_type": "CLAIM_OFFER",
"version"... | [
"Creates",
"a",
"credential",
"with",
"an",
"offer",
".",
":",
"param",
"source_id",
":",
"user",
"defined",
"id",
"of",
"object",
".",
":",
"param",
"credential_offer",
":",
"JSON",
"string",
"representing",
"the",
"offer",
"used",
"as",
"the",
"basis",
"... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L31-L77 | train | Creates a credential with an offer. | 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.create_with_msgid | async def create_with_msgid(source_id: str, connection: Connection, msg_id: str):
"""
Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
... | python | async def create_with_msgid(source_id: str, connection: Connection, msg_id: str):
"""
Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
... | [
"async",
"def",
"create_with_msgid",
"(",
"source_id",
":",
"str",
",",
"connection",
":",
"Connection",
",",
"msg_id",
":",
"str",
")",
":",
"credential",
"=",
"Credential",
"(",
"source_id",
",",
")",
"c_source_id",
"=",
"c_char_p",
"(",
"source_id",
".",
... | Create a credential based off of a known message id for a given connection.
:param source_id: user defined id of object.
:param connection: connection handle of connection to receive offer from
:param msg_id: message id
:return: A created credential
Example:
credential = ... | [
"Create",
"a",
"credential",
"based",
"off",
"of",
"a",
"known",
"message",
"id",
"for",
"a",
"given",
"connection",
".",
":",
"param",
"source_id",
":",
"user",
"defined",
"id",
"of",
"object",
".",
":",
"param",
"connection",
":",
"connection",
"handle",... | 55240dc170308d7883c48f03f308130a6d077be6 | https://github.com/hyperledger/indy-sdk/blob/55240dc170308d7883c48f03f308130a6d077be6/vcx/wrappers/python3/vcx/api/credential.py#L80-L108 | train | Create a new credential based off of a known message 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.