Search is not available for this dataset
identifier stringlengths 1 155 | parameters stringlengths 2 6.09k | docstring stringlengths 11 63.4k | docstring_summary stringlengths 0 63.4k | function stringlengths 29 99.8k | function_tokens list | start_point list | end_point list | language stringclasses 1
value | docstring_language stringlengths 2 7 | docstring_language_predictions stringlengths 18 23 | is_langid_reliable stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
AccountSessionHandler.__init__ | (self, account) |
Initializes the handler.
Args:
account (Account): The Account on which this handler is defined.
|
Initializes the handler. | def __init__(self, account):
"""
Initializes the handler.
Args:
account (Account): The Account on which this handler is defined.
"""
self.account = account | [
"def",
"__init__",
"(",
"self",
",",
"account",
")",
":",
"self",
".",
"account",
"=",
"account"
] | [
52,
4
] | [
60,
30
] | python | en | ['en', 'error', 'th'] | False |
AccountSessionHandler.get | (self, sessid=None) |
Get the sessions linked to this object.
Args:
sessid (int, optional): Specify a given session by
session id.
Returns:
sessions (list): A list of Session objects. If `sessid`
is given, this is a list with one (or zero) elements.
|
Get the sessions linked to this object. | def get(self, sessid=None):
"""
Get the sessions linked to this object.
Args:
sessid (int, optional): Specify a given session by
session id.
Returns:
sessions (list): A list of Session objects. If `sessid`
is given, this is a list... | [
"def",
"get",
"(",
"self",
",",
"sessid",
"=",
"None",
")",
":",
"global",
"_SESSIONS",
"if",
"not",
"_SESSIONS",
":",
"from",
"evennia",
".",
"server",
".",
"sessionhandler",
"import",
"SESSIONS",
"as",
"_SESSIONS",
"if",
"sessid",
":",
"return",
"make_it... | [
62,
4
] | [
81,
64
] | python | en | ['en', 'error', 'th'] | False |
AccountSessionHandler.all | (self) |
Alias to get(), returning all sessions.
Returns:
sessions (list): All sessions.
|
Alias to get(), returning all sessions. | def all(self):
"""
Alias to get(), returning all sessions.
Returns:
sessions (list): All sessions.
"""
return self.get() | [
"def",
"all",
"(",
"self",
")",
":",
"return",
"self",
".",
"get",
"(",
")"
] | [
83,
4
] | [
91,
25
] | python | en | ['en', 'error', 'th'] | False |
AccountSessionHandler.count | (self) |
Get amount of sessions connected.
Returns:
sesslen (int): Number of sessions handled.
|
Get amount of sessions connected. | def count(self):
"""
Get amount of sessions connected.
Returns:
sesslen (int): Number of sessions handled.
"""
return len(self.get()) | [
"def",
"count",
"(",
"self",
")",
":",
"return",
"len",
"(",
"self",
".",
"get",
"(",
")",
")"
] | [
93,
4
] | [
101,
30
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.disconnect_session_from_account | (self, session, reason=None) |
Access method for disconnecting a given session from the
account (connection happens automatically in the
sessionhandler)
Args:
session (Session): Session to disconnect.
reason (str, optional): Eventual reason for the disconnect.
|
Access method for disconnecting a given session from the
account (connection happens automatically in the
sessionhandler) | def disconnect_session_from_account(self, session, reason=None):
"""
Access method for disconnecting a given session from the
account (connection happens automatically in the
sessionhandler)
Args:
session (Session): Session to disconnect.
reason (str, opt... | [
"def",
"disconnect_session_from_account",
"(",
"self",
",",
"session",
",",
"reason",
"=",
"None",
")",
":",
"global",
"_SESSIONS",
"if",
"not",
"_SESSIONS",
":",
"from",
"evennia",
".",
"server",
".",
"sessionhandler",
"import",
"SESSIONS",
"as",
"_SESSIONS",
... | [
194,
4
] | [
208,
45
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.puppet_object | (self, session, obj) |
Use the given session to control (puppet) the given object (usually
a Character type).
Args:
session (Session): session to use for puppeting
obj (Object): the object to start puppeting
Raises:
RuntimeError: If puppeting is not possible, the
... |
Use the given session to control (puppet) the given object (usually
a Character type). | def puppet_object(self, session, obj):
"""
Use the given session to control (puppet) the given object (usually
a Character type).
Args:
session (Session): session to use for puppeting
obj (Object): the object to start puppeting
Raises:
Runtim... | [
"def",
"puppet_object",
"(",
"self",
",",
"session",
",",
"obj",
")",
":",
"# safety checks",
"if",
"not",
"obj",
":",
"raise",
"RuntimeError",
"(",
"\"Object not found\"",
")",
"if",
"not",
"session",
":",
"raise",
"RuntimeError",
"(",
"\"Session not found\"",
... | [
212,
4
] | [
283,
28
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.unpuppet_object | (self, session) |
Disengage control over an object.
Args:
session (Session or list): The session or a list of
sessions to disengage from their puppets.
Raises:
RuntimeError With message about error.
|
Disengage control over an object. | def unpuppet_object(self, session):
"""
Disengage control over an object.
Args:
session (Session or list): The session or a list of
sessions to disengage from their puppets.
Raises:
RuntimeError With message about error.
"""
for ... | [
"def",
"unpuppet_object",
"(",
"self",
",",
"session",
")",
":",
"for",
"session",
"in",
"make_iter",
"(",
"session",
")",
":",
"obj",
"=",
"session",
".",
"puppet",
"if",
"obj",
":",
"# do the disconnect, but only if we are the last session to puppet",
"obj",
"."... | [
285,
4
] | [
308,
31
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.unpuppet_all | (self) |
Disconnect all puppets. This is called by server before a
reset/shutdown.
|
Disconnect all puppets. This is called by server before a
reset/shutdown.
| def unpuppet_all(self):
"""
Disconnect all puppets. This is called by server before a
reset/shutdown.
"""
self.unpuppet_object(self.sessions.all()) | [
"def",
"unpuppet_all",
"(",
"self",
")",
":",
"self",
".",
"unpuppet_object",
"(",
"self",
".",
"sessions",
".",
"all",
"(",
")",
")"
] | [
310,
4
] | [
315,
49
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.get_puppet | (self, session) |
Get an object puppeted by this session through this account. This is
the main method for retrieving the puppeted object from the
account's end.
Args:
session (Session): Find puppeted object based on this session
Returns:
puppet (Object): The matching pu... |
Get an object puppeted by this session through this account. This is
the main method for retrieving the puppeted object from the
account's end. | def get_puppet(self, session):
"""
Get an object puppeted by this session through this account. This is
the main method for retrieving the puppeted object from the
account's end.
Args:
session (Session): Find puppeted object based on this session
Returns:
... | [
"def",
"get_puppet",
"(",
"self",
",",
"session",
")",
":",
"return",
"session",
".",
"puppet"
] | [
317,
4
] | [
330,
29
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.get_all_puppets | (self) |
Get all currently puppeted objects.
Returns:
puppets (list): All puppeted objects currently controlled
by this Account.
|
Get all currently puppeted objects. | def get_all_puppets(self):
"""
Get all currently puppeted objects.
Returns:
puppets (list): All puppeted objects currently controlled
by this Account.
"""
return list(set(session.puppet for session in self.sessions.all() if session.puppet)) | [
"def",
"get_all_puppets",
"(",
"self",
")",
":",
"return",
"list",
"(",
"set",
"(",
"session",
".",
"puppet",
"for",
"session",
"in",
"self",
".",
"sessions",
".",
"all",
"(",
")",
"if",
"session",
".",
"puppet",
")",
")"
] | [
332,
4
] | [
341,
93
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.__get_single_puppet | (self) |
This is a legacy convenience link for use with `MULTISESSION_MODE`.
Returns:
puppets (Object or list): Users of `MULTISESSION_MODE` 0 or 1 will
always get the first puppet back. Users of higher `MULTISESSION_MODE`s will
get a list of all puppeted objects.
... |
This is a legacy convenience link for use with `MULTISESSION_MODE`. | def __get_single_puppet(self):
"""
This is a legacy convenience link for use with `MULTISESSION_MODE`.
Returns:
puppets (Object or list): Users of `MULTISESSION_MODE` 0 or 1 will
always get the first puppet back. Users of higher `MULTISESSION_MODE`s will
... | [
"def",
"__get_single_puppet",
"(",
"self",
")",
":",
"puppets",
"=",
"self",
".",
"get_all_puppets",
"(",
")",
"if",
"_MULTISESSION_MODE",
"in",
"(",
"0",
",",
"1",
")",
":",
"return",
"puppets",
"and",
"puppets",
"[",
"0",
"]",
"or",
"None",
"return",
... | [
343,
4
] | [
356,
22
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.validate_password | (cls, password, account=None) |
Checks the given password against the list of Django validators enabled
in the server.conf file.
Args:
password (str): Password to validate
Kwargs:
account (DefaultAccount, optional): Account object to validate the
password for. Optional, but Dj... |
Checks the given password against the list of Django validators enabled
in the server.conf file. | def validate_password(cls, password, account=None):
"""
Checks the given password against the list of Django validators enabled
in the server.conf file.
Args:
password (str): Password to validate
Kwargs:
account (DefaultAccount, optional): Account object... | [
"def",
"validate_password",
"(",
"cls",
",",
"password",
",",
"account",
"=",
"None",
")",
":",
"valid",
"=",
"False",
"error",
"=",
"None",
"# Validation returns None on success; invert it and return a more sensible bool",
"try",
":",
"valid",
"=",
"not",
"password_v... | [
362,
4
] | [
392,
27
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.set_password | (self, password, force=False) |
Applies the given password to the account if it passes validation checks.
Can be overridden by using the 'force' flag.
Args:
password (str): Password to set
Kwargs:
force (bool): Sets password without running validation checks.
Raises:
Vali... |
Applies the given password to the account if it passes validation checks.
Can be overridden by using the 'force' flag. | def set_password(self, password, force=False):
"""
Applies the given password to the account if it passes validation checks.
Can be overridden by using the 'force' flag.
Args:
password (str): Password to set
Kwargs:
force (bool): Sets password without ru... | [
"def",
"set_password",
"(",
"self",
",",
"password",
",",
"force",
"=",
"False",
")",
":",
"if",
"not",
"force",
":",
"# Run validation checks",
"valid",
",",
"error",
"=",
"self",
".",
"validate_password",
"(",
"password",
",",
"account",
"=",
"self",
")"... | [
394,
4
] | [
419,
33
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.delete | (self, *args, **kwargs) |
Deletes the account permanently.
Notes:
`*args` and `**kwargs` are passed on to the base delete
mechanism (these are usually not used).
|
Deletes the account permanently. | def delete(self, *args, **kwargs):
"""
Deletes the account permanently.
Notes:
`*args` and `**kwargs` are passed on to the base delete
mechanism (these are usually not used).
"""
for session in self.sessions.all():
# unpuppeting all objects ... | [
"def",
"delete",
"(",
"self",
",",
"*",
"args",
",",
"*",
"*",
"kwargs",
")",
":",
"for",
"session",
"in",
"self",
".",
"sessions",
".",
"all",
"(",
")",
":",
"# unpuppeting all objects and disconnecting the user, if any",
"# sessions remain (should usually be handl... | [
421,
4
] | [
444,
59
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.msg | (self, text=None, from_obj=None, session=None, options=None, **kwargs) |
Evennia -> User
This is the main route for sending data back to the user from the
server.
Args:
text (str, optional): text data to send
from_obj (Object or Account or list, optional): Object sending. If given, its
at_msg_send() hook will be calle... |
Evennia -> User
This is the main route for sending data back to the user from the
server. | def msg(self, text=None, from_obj=None, session=None, options=None, **kwargs):
"""
Evennia -> User
This is the main route for sending data back to the user from the
server.
Args:
text (str, optional): text data to send
from_obj (Object or Account or list,... | [
"def",
"msg",
"(",
"self",
",",
"text",
"=",
"None",
",",
"from_obj",
"=",
"None",
",",
"session",
"=",
"None",
",",
"options",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"from_obj",
":",
"# call hook",
"for",
"obj",
"in",
"make_iter",
"... | [
447,
4
] | [
496,
38
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.execute_cmd | (self, raw_string, session=None, **kwargs) |
Do something as this account. This method is never called normally,
but only when the account object itself is supposed to execute the
command. It takes account nicks into account, but not nicks of
eventual puppets.
Args:
raw_string (str): Raw command input coming f... |
Do something as this account. This method is never called normally,
but only when the account object itself is supposed to execute the
command. It takes account nicks into account, but not nicks of
eventual puppets. | def execute_cmd(self, raw_string, session=None, **kwargs):
"""
Do something as this account. This method is never called normally,
but only when the account object itself is supposed to execute the
command. It takes account nicks into account, but not nicks of
eventual puppets.
... | [
"def",
"execute_cmd",
"(",
"self",
",",
"raw_string",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"raw_string",
"=",
"to_unicode",
"(",
"raw_string",
")",
"raw_string",
"=",
"self",
".",
"nicks",
".",
"nickreplace",
"(",
"raw_string",
... | [
498,
4
] | [
526,
85
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.search | (self, searchdata, return_puppet=False, search_object=False,
typeclass=None, nofound_string=None, multimatch_string=None, use_nicks=True, **kwargs) |
This is similar to `DefaultObject.search` but defaults to searching
for Accounts only.
Args:
searchdata (str or int): Search criterion, the Account's
key or dbref to search for.
return_puppet (bool, optional): Instructs the method to
retu... |
This is similar to `DefaultObject.search` but defaults to searching
for Accounts only. | def search(self, searchdata, return_puppet=False, search_object=False,
typeclass=None, nofound_string=None, multimatch_string=None, use_nicks=True, **kwargs):
"""
This is similar to `DefaultObject.search` but defaults to searching
for Accounts only.
Args:
sear... | [
"def",
"search",
"(",
"self",
",",
"searchdata",
",",
"return_puppet",
"=",
"False",
",",
"search_object",
"=",
"False",
",",
"typeclass",
"=",
"None",
",",
"nofound_string",
"=",
"None",
",",
"multimatch_string",
"=",
"None",
",",
"use_nicks",
"=",
"True",
... | [
528,
4
] | [
582,
22
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.access | (self, accessing_obj, access_type='read', default=False, no_superuser_bypass=False, **kwargs) |
Determines if another object has permission to access this
object in whatever way.
Args:
accessing_obj (Object): Object trying to access this one.
access_type (str, optional): Type of access sought.
default (bool, optional): What to return if no lock of
... |
Determines if another object has permission to access this
object in whatever way. | def access(self, accessing_obj, access_type='read', default=False, no_superuser_bypass=False, **kwargs):
"""
Determines if another object has permission to access this
object in whatever way.
Args:
accessing_obj (Object): Object trying to access this one.
access_type... | [
"def",
"access",
"(",
"self",
",",
"accessing_obj",
",",
"access_type",
"=",
"'read'",
",",
"default",
"=",
"False",
",",
"no_superuser_bypass",
"=",
"False",
",",
"*",
"*",
"kwargs",
")",
":",
"result",
"=",
"super",
"(",
"DefaultAccount",
",",
"self",
... | [
584,
4
] | [
607,
21
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.idle_time | (self) |
Returns the idle time of the least idle session in seconds. If
no sessions are connected it returns nothing.
|
Returns the idle time of the least idle session in seconds. If
no sessions are connected it returns nothing.
| def idle_time(self):
"""
Returns the idle time of the least idle session in seconds. If
no sessions are connected it returns nothing.
"""
idle = [session.cmd_last_visible for session in self.sessions.all()]
if idle:
return time.time() - float(max(idle))
... | [
"def",
"idle_time",
"(",
"self",
")",
":",
"idle",
"=",
"[",
"session",
".",
"cmd_last_visible",
"for",
"session",
"in",
"self",
".",
"sessions",
".",
"all",
"(",
")",
"]",
"if",
"idle",
":",
"return",
"time",
".",
"time",
"(",
")",
"-",
"float",
"... | [
610,
4
] | [
618,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.connection_time | (self) |
Returns the maximum connection time of all connected sessions
in seconds. Returns nothing if there are no sessions.
|
Returns the maximum connection time of all connected sessions
in seconds. Returns nothing if there are no sessions.
| def connection_time(self):
"""
Returns the maximum connection time of all connected sessions
in seconds. Returns nothing if there are no sessions.
"""
conn = [session.conn_time for session in self.sessions.all()]
if conn:
return time.time() - float(min(conn))
... | [
"def",
"connection_time",
"(",
"self",
")",
":",
"conn",
"=",
"[",
"session",
".",
"conn_time",
"for",
"session",
"in",
"self",
".",
"sessions",
".",
"all",
"(",
")",
"]",
"if",
"conn",
":",
"return",
"time",
".",
"time",
"(",
")",
"-",
"float",
"(... | [
621,
4
] | [
629,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.basetype_setup | (self) |
This sets up the basic properties for an account. Overload this
with at_account_creation rather than changing this method.
|
This sets up the basic properties for an account. Overload this
with at_account_creation rather than changing this method. | def basetype_setup(self):
"""
This sets up the basic properties for an account. Overload this
with at_account_creation rather than changing this method.
"""
# A basic security setup
lockstring = "examine:perm(Admin);edit:perm(Admin);" \
"delete:perm(... | [
"def",
"basetype_setup",
"(",
"self",
")",
":",
"# A basic security setup",
"lockstring",
"=",
"\"examine:perm(Admin);edit:perm(Admin);\"",
"\"delete:perm(Admin);boot:perm(Admin);msg:all();\"",
"\"noidletimeout:perm(Builder) or perm(noidletimeout)\"",
"self",
".",
"locks",
".",
"add"... | [
633,
4
] | [
646,
64
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_account_creation | (self) |
This is called once, the very first time the account is created
(i.e. first time they register with the game). It's a good
place to store attributes all accounts should have, like
configuration values etc.
|
This is called once, the very first time the account is created
(i.e. first time they register with the game). It's a good
place to store attributes all accounts should have, like
configuration values etc. | def at_account_creation(self):
"""
This is called once, the very first time the account is created
(i.e. first time they register with the game). It's a good
place to store attributes all accounts should have, like
configuration values etc.
"""
# set an (empty) a... | [
"def",
"at_account_creation",
"(",
"self",
")",
":",
"# set an (empty) attribute holding the characters this account has",
"lockstring",
"=",
"\"attrread:perm(Admins);attredit:perm(Admins);\"",
"\"attrcreate:perm(Admins);\"",
"self",
".",
"attributes",
".",
"add",
"(",
"\"_playable... | [
648,
4
] | [
660,
79
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_init | (self) |
This is always called whenever this object is initiated --
that is, whenever it its typeclass is cached from memory. This
happens on-demand first time the object is used or activated
in some way after being created but also after each server
restart or reload. In the case of acc... |
This is always called whenever this object is initiated --
that is, whenever it its typeclass is cached from memory. This
happens on-demand first time the object is used or activated
in some way after being created but also after each server
restart or reload. In the case of acc... | def at_init(self):
"""
This is always called whenever this object is initiated --
that is, whenever it its typeclass is cached from memory. This
happens on-demand first time the object is used or activated
in some way after being created but also after each server
restart... | [
"def",
"at_init",
"(",
"self",
")",
":",
"pass"
] | [
662,
4
] | [
673,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_first_save | (self) |
This is a generic hook called by Evennia when this object is
saved to the database the very first time. You generally
don't override this method but the hooks called by it.
|
This is a generic hook called by Evennia when this object is
saved to the database the very first time. You generally
don't override this method but the hooks called by it. | def at_first_save(self):
"""
This is a generic hook called by Evennia when this object is
saved to the database the very first time. You generally
don't override this method but the hooks called by it.
"""
self.basetype_setup()
self.at_account_creation()
... | [
"def",
"at_first_save",
"(",
"self",
")",
":",
"self",
".",
"basetype_setup",
"(",
")",
"self",
".",
"at_account_creation",
"(",
")",
"permissions",
"=",
"[",
"settings",
".",
"PERMISSION_ACCOUNT_DEFAULT",
"]",
"if",
"hasattr",
"(",
"self",
",",
"\"_createdict... | [
681,
4
] | [
723,
48
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_access | (self, result, accessing_obj, access_type, **kwargs) |
This is triggered after an access-call on this Account has
completed.
Args:
result (bool): The result of the access check.
accessing_obj (any): The object requesting the access
check.
access_type (str): The type of access checked.
... |
This is triggered after an access-call on this Account has
completed. | def at_access(self, result, accessing_obj, access_type, **kwargs):
"""
This is triggered after an access-call on this Account has
completed.
Args:
result (bool): The result of the access check.
accessing_obj (any): The object requesting the access
... | [
"def",
"at_access",
"(",
"self",
",",
"result",
",",
"accessing_obj",
",",
"access_type",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
725,
4
] | [
748,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_cmdset_get | (self, **kwargs) |
Called just *before* cmdsets on this account are requested by
the command handler. The cmdsets are available as
`self.cmdset`. If changes need to be done on the fly to the
cmdset before passing them on to the cmdhandler, this is the
place to do it. This is called also if the ac... |
Called just *before* cmdsets on this account are requested by
the command handler. The cmdsets are available as
`self.cmdset`. If changes need to be done on the fly to the
cmdset before passing them on to the cmdhandler, this is the
place to do it. This is called also if the ac... | def at_cmdset_get(self, **kwargs):
"""
Called just *before* cmdsets on this account are requested by
the command handler. The cmdsets are available as
`self.cmdset`. If changes need to be done on the fly to the
cmdset before passing them on to the cmdhandler, this is the
... | [
"def",
"at_cmdset_get",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
750,
4
] | [
761,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_first_login | (self, **kwargs) |
Called the very first time this account logs into the game.
Note that this is called *before* at_pre_login, so no session
is established and usually no character is yet assigned at
this point. This hook is intended for account-specific setup
like configurations.
Args:
... |
Called the very first time this account logs into the game.
Note that this is called *before* at_pre_login, so no session
is established and usually no character is yet assigned at
this point. This hook is intended for account-specific setup
like configurations. | def at_first_login(self, **kwargs):
"""
Called the very first time this account logs into the game.
Note that this is called *before* at_pre_login, so no session
is established and usually no character is yet assigned at
this point. This hook is intended for account-specific setu... | [
"def",
"at_first_login",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
763,
4
] | [
776,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_password_change | (self, **kwargs) |
Called after a successful password set/modify.
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Called after a successful password set/modify. | def at_password_change(self, **kwargs):
"""
Called after a successful password set/modify.
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
"""
pass | [
"def",
"at_password_change",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
778,
4
] | [
787,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_pre_login | (self, **kwargs) |
Called every time the user logs in, just before the actual
login-state is set.
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Called every time the user logs in, just before the actual
login-state is set. | def at_pre_login(self, **kwargs):
"""
Called every time the user logs in, just before the actual
login-state is set.
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
"""
pass | [
"def",
"at_pre_login",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
789,
4
] | [
799,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount._send_to_connect_channel | (self, message) |
Helper method for loading and sending to the comm channel
dedicated to connection messages.
Args:
message (str): A message to send to the connect channel.
|
Helper method for loading and sending to the comm channel
dedicated to connection messages. | def _send_to_connect_channel(self, message):
"""
Helper method for loading and sending to the comm channel
dedicated to connection messages.
Args:
message (str): A message to send to the connect channel.
"""
global _CONNECT_CHANNEL
if not _CONNECT_CH... | [
"def",
"_send_to_connect_channel",
"(",
"self",
",",
"message",
")",
":",
"global",
"_CONNECT_CHANNEL",
"if",
"not",
"_CONNECT_CHANNEL",
":",
"try",
":",
"_CONNECT_CHANNEL",
"=",
"ChannelDB",
".",
"objects",
".",
"filter",
"(",
"db_key",
"=",
"settings",
".",
... | [
801,
4
] | [
822,
56
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_post_login | (self, session=None, **kwargs) |
Called at the end of the login process, just before letting
the account loose.
Args:
session (Session, optional): Session logging in, if any.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
Notes... |
Called at the end of the login process, just before letting
the account loose. | def at_post_login(self, session=None, **kwargs):
"""
Called at the end of the login process, just before letting
the account loose.
Args:
session (Session, optional): Session logging in, if any.
**kwargs (dict): Arbitrary, optional arguments for users
... | [
"def",
"at_post_login",
"(",
"self",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"# if we have saved protocol flags on ourselves, load them here.",
"protocol_flags",
"=",
"self",
".",
"attributes",
".",
"get",
"(",
"\"_saved_protocol_flags\"",
",",... | [
824,
4
] | [
872,
68
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_failed_login | (self, session, **kwargs) |
Called by the login process if a user account is targeted correctly
but provided with an invalid password. By default it does nothing,
but exists to be overriden.
Args:
session (session): Session logging in.
**kwargs (dict): Arbitrary, optional arguments for use... |
Called by the login process if a user account is targeted correctly
but provided with an invalid password. By default it does nothing,
but exists to be overriden. | def at_failed_login(self, session, **kwargs):
"""
Called by the login process if a user account is targeted correctly
but provided with an invalid password. By default it does nothing,
but exists to be overriden.
Args:
session (session): Session logging in.
... | [
"def",
"at_failed_login",
"(",
"self",
",",
"session",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
874,
4
] | [
885,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_disconnect | (self, reason=None, **kwargs) |
Called just before user is disconnected.
Args:
reason (str, optional): The reason given for the disconnect,
(echoed to the connection channel by default).
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by def... |
Called just before user is disconnected. | def at_disconnect(self, reason=None, **kwargs):
"""
Called just before user is disconnected.
Args:
reason (str, optional): The reason given for the disconnect,
(echoed to the connection channel by default).
**kwargs (dict): Arbitrary, optional arguments f... | [
"def",
"at_disconnect",
"(",
"self",
",",
"reason",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"reason",
"=",
"\" (%s)\"",
"%",
"reason",
"if",
"reason",
"else",
"\"\"",
"self",
".",
"_send_to_connect_channel",
"(",
"\"|R%s disconnected%s|n\"",
"%",
"("... | [
887,
4
] | [
900,
83
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_post_disconnect | (self, **kwargs) |
This is called *after* disconnection is complete. No messages
can be relayed to the account from here. After this call, the
account should not be accessed any more, making this a good
spot for deleting it (in the case of a guest account account,
for example).
Args:
... |
This is called *after* disconnection is complete. No messages
can be relayed to the account from here. After this call, the
account should not be accessed any more, making this a good
spot for deleting it (in the case of a guest account account,
for example). | def at_post_disconnect(self, **kwargs):
"""
This is called *after* disconnection is complete. No messages
can be relayed to the account from here. After this call, the
account should not be accessed any more, making this a good
spot for deleting it (in the case of a guest account... | [
"def",
"at_post_disconnect",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
902,
4
] | [
915,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_msg_receive | (self, text=None, from_obj=None, **kwargs) |
This hook is called whenever someone sends a message to this
object using the `msg` method.
Note that from_obj may be None if the sender did not include
itself as an argument to the obj.msg() call - so you have to
check for this. .
Consider this a pre-processing method... |
This hook is called whenever someone sends a message to this
object using the `msg` method. | def at_msg_receive(self, text=None, from_obj=None, **kwargs):
"""
This hook is called whenever someone sends a message to this
object using the `msg` method.
Note that from_obj may be None if the sender did not include
itself as an argument to the obj.msg() call - so you have to... | [
"def",
"at_msg_receive",
"(",
"self",
",",
"text",
"=",
"None",
",",
"from_obj",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"return",
"True"
] | [
917,
4
] | [
945,
19
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_msg_send | (self, text=None, to_obj=None, **kwargs) |
This is a hook that is called when *this* object sends a
message to another object with `obj.msg(text, to_obj=obj)`.
Args:
text (str, optional): Text to send.
to_obj (any, optional): The object to send to.
Kwargs:
Keywords passed from msg()
... |
This is a hook that is called when *this* object sends a
message to another object with `obj.msg(text, to_obj=obj)`. | def at_msg_send(self, text=None, to_obj=None, **kwargs):
"""
This is a hook that is called when *this* object sends a
message to another object with `obj.msg(text, to_obj=obj)`.
Args:
text (str, optional): Text to send.
to_obj (any, optional): The object to send ... | [
"def",
"at_msg_send",
"(",
"self",
",",
"text",
"=",
"None",
",",
"to_obj",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"pass"
] | [
947,
4
] | [
965,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_server_reload | (self) |
This hook is called whenever the server is shutting down for
restart/reboot. If you want to, for example, save
non-persistent properties across a restart, this is the place
to do it.
|
This hook is called whenever the server is shutting down for
restart/reboot. If you want to, for example, save
non-persistent properties across a restart, this is the place
to do it.
| def at_server_reload(self):
"""
This hook is called whenever the server is shutting down for
restart/reboot. If you want to, for example, save
non-persistent properties across a restart, this is the place
to do it.
"""
pass | [
"def",
"at_server_reload",
"(",
"self",
")",
":",
"pass"
] | [
967,
4
] | [
974,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_server_shutdown | (self) |
This hook is called whenever the server is shutting down fully
(i.e. not for a restart).
|
This hook is called whenever the server is shutting down fully
(i.e. not for a restart).
| def at_server_shutdown(self):
"""
This hook is called whenever the server is shutting down fully
(i.e. not for a restart).
"""
pass | [
"def",
"at_server_shutdown",
"(",
"self",
")",
":",
"pass"
] | [
976,
4
] | [
981,
12
] | python | en | ['en', 'error', 'th'] | False |
DefaultAccount.at_look | (self, target=None, session=None, **kwargs) |
Called when this object executes a look. It allows to customize
just what this means.
Args:
target (Object or list, optional): An object or a list
objects to inspect.
session (Session, optional): The session doing this look.
**kwargs (dict): ... |
Called when this object executes a look. It allows to customize
just what this means. | def at_look(self, target=None, session=None, **kwargs):
"""
Called when this object executes a look. It allows to customize
just what this means.
Args:
target (Object or list, optional): An object or a list
objects to inspect.
session (Session, op... | [
"def",
"at_look",
"(",
"self",
",",
"target",
"=",
"None",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"if",
"target",
"and",
"not",
"is_iter",
"(",
"target",
")",
":",
"# single target - just show it",
"if",
"hasattr",
"(",
"target",... | [
983,
4
] | [
1061,
30
] | python | en | ['en', 'error', 'th'] | False |
DefaultGuest.at_post_login | (self, session=None, **kwargs) |
In theory, guests only have one character regardless of which
MULTISESSION_MODE we're in. They don't get a choice.
Args:
session (Session, optional): Session connecting.
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused... |
In theory, guests only have one character regardless of which
MULTISESSION_MODE we're in. They don't get a choice. | def at_post_login(self, session=None, **kwargs):
"""
In theory, guests only have one character regardless of which
MULTISESSION_MODE we're in. They don't get a choice.
Args:
session (Session, optional): Session connecting.
**kwargs (dict): Arbitrary, optional arg... | [
"def",
"at_post_login",
"(",
"self",
",",
"session",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"self",
".",
"_send_to_connect_channel",
"(",
"\"|G%s connected|n\"",
"%",
"self",
".",
"key",
")",
"self",
".",
"puppet_object",
"(",
"session",
",",
"sel... | [
1070,
4
] | [
1082,
57
] | python | en | ['en', 'error', 'th'] | False |
DefaultGuest.at_server_shutdown | (self) |
We repeat the functionality of `at_disconnect()` here just to
be on the safe side.
|
We repeat the functionality of `at_disconnect()` here just to
be on the safe side.
| def at_server_shutdown(self):
"""
We repeat the functionality of `at_disconnect()` here just to
be on the safe side.
"""
super(DefaultGuest, self).at_server_shutdown()
characters = self.db._playable_characters
for character in characters:
if character:... | [
"def",
"at_server_shutdown",
"(",
"self",
")",
":",
"super",
"(",
"DefaultGuest",
",",
"self",
")",
".",
"at_server_shutdown",
"(",
")",
"characters",
"=",
"self",
".",
"db",
".",
"_playable_characters",
"for",
"character",
"in",
"characters",
":",
"if",
"ch... | [
1084,
4
] | [
1094,
34
] | python | en | ['en', 'error', 'th'] | False |
DefaultGuest.at_post_disconnect | (self, **kwargs) |
Once having disconnected, destroy the guest's characters and
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
|
Once having disconnected, destroy the guest's characters and | def at_post_disconnect(self, **kwargs):
"""
Once having disconnected, destroy the guest's characters and
Args:
**kwargs (dict): Arbitrary, optional arguments for users
overriding the call (unused by default).
"""
super(DefaultGuest, self).at_post_dis... | [
"def",
"at_post_disconnect",
"(",
"self",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"DefaultGuest",
",",
"self",
")",
".",
"at_post_disconnect",
"(",
")",
"characters",
"=",
"self",
".",
"db",
".",
"_playable_characters",
"for",
"character",
"in",
"... | [
1096,
4
] | [
1110,
21
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.align | (self) |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... |
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeration values:
['... | def align(self):
"""
Sets the horizontal alignment of the text content within hover
label box. Has an effect only if the hover label text spans
more two or more lines
The 'align' property is an enumeration that may be specified as:
- One of the following enumeratio... | [
"def",
"align",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"align\"",
"]"
] | [
25,
4
] | [
40,
28
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.alignsrc | (self) |
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def alignsrc(self):
"""
Sets the source reference on Chart Studio Cloud for align .
The 'alignsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["alignsrc"] | [
"def",
"alignsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"alignsrc\"",
"]"
] | [
49,
4
] | [
60,
31
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolor | (self) |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... |
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva str... | def bgcolor(self):
"""
Sets the background color of the hover labels for this trace
The 'bgcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
69,
4
] | [
120,
30
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bgcolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bgcolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for bgcolor .
The 'bgcolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bgcolorsrc"] | [
"def",
"bgcolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolorsrc\"",
"]"
] | [
129,
4
] | [
140,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolor | (self) |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... |
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva st... | def bordercolor(self):
"""
Sets the border color of the hover labels for this trace.
The 'bordercolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%... | [
"def",
"bordercolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolor\"",
"]"
] | [
149,
4
] | [
200,
34
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.bordercolorsrc | (self) |
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def bordercolorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for
bordercolor .
The 'bordercolorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["bo... | [
"def",
"bordercolorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bordercolorsrc\"",
"]"
] | [
209,
4
] | [
221,
37
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.font | (self) |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... |
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.hoverlabel.Font`
- A dict of string/value properties that will be passed
to the Font constructor
... | def font(self):
"""
Sets the font used in hover labels.
The 'font' property is an instance of Font
that may be specified as:
- An instance of :class:`plotly.graph_objs.treemap.hoverlabel.Font`
- A dict of string/value properties that will be passed
to... | [
"def",
"font",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"font\"",
"]"
] | [
230,
4
] | [
277,
27
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelength | (self) |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... |
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
that many characters, but if it... | def namelength(self):
"""
Sets the default length (in number of characters) of the trace
name in the hover labels for all traces. -1 shows the whole
name regardless of length. 0-3 shows the first 0-3 characters,
and an integer >3 will show the whole name if it is less than
... | [
"def",
"namelength",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelength\"",
"]"
] | [
286,
4
] | [
304,
33
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.namelengthsrc | (self) |
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def namelengthsrc(self):
"""
Sets the source reference on Chart Studio Cloud for namelength
.
The 'namelengthsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["name... | [
"def",
"namelengthsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"namelengthsrc\"",
"]"
] | [
313,
4
] | [
325,
36
] | python | en | ['en', 'error', 'th'] | False |
Hoverlabel.__init__ | (
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
) |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.treemap.Hoverlabel`
align
Sets the horizontal alignment of the tex... |
Construct a new Hoverlabel object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.treemap.Hoverlabel`
align
Sets the horizontal alignment of the tex... | def __init__(
self,
arg=None,
align=None,
alignsrc=None,
bgcolor=None,
bgcolorsrc=None,
bordercolor=None,
bordercolorsrc=None,
font=None,
namelength=None,
namelengthsrc=None,
**kwargs
):
"""
Construct a n... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"align",
"=",
"None",
",",
"alignsrc",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"bgcolorsrc",
"=",
"None",
",",
"bordercolor",
"=",
"None",
",",
"bordercolorsrc",
"=",
"None",
",",
"... | [
370,
4
] | [
502,
34
] | python | en | ['en', 'error', 'th'] | False |
Layer.below | (self) |
Determines if the layer will be inserted before the layer with
the specified ID. If omitted or set to '', the layer will be
inserted above every existing layer.
The 'below' property is a string and must be specified as:
- A string
- A number that will be convert... |
Determines if the layer will be inserted before the layer with
the specified ID. If omitted or set to '', the layer will be
inserted above every existing layer.
The 'below' property is a string and must be specified as:
- A string
- A number that will be convert... | def below(self):
"""
Determines if the layer will be inserted before the layer with
the specified ID. If omitted or set to '', the layer will be
inserted above every existing layer.
The 'below' property is a string and must be specified as:
- A string
- A... | [
"def",
"below",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"below\"",
"]"
] | [
34,
4
] | [
48,
28
] | python | en | ['en', 'error', 'th'] | False |
Layer.circle | (self) |
The 'circle' property is an instance of Circle
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`
- A dict of string/value properties that will be passed
to the Circle constructor
Supported dict properties:
... |
The 'circle' property is an instance of Circle
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`
- A dict of string/value properties that will be passed
to the Circle constructor
Supported dict properties:
... | def circle(self):
"""
The 'circle' property is an instance of Circle
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Circle`
- A dict of string/value properties that will be passed
to the Circle constructor
... | [
"def",
"circle",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"circle\"",
"]"
] | [
57,
4
] | [
76,
29
] | python | en | ['en', 'error', 'th'] | False |
Layer.color | (self) |
Sets the primary layer color. If `type` is "circle", color
corresponds to the circle color (mapbox.layer.paint.circle-
color) If `type` is "line", color corresponds to the line color
(mapbox.layer.paint.line-color) If `type` is "fill", color
corresponds to the fill color (mapbox... |
Sets the primary layer color. If `type` is "circle", color
corresponds to the circle color (mapbox.layer.paint.circle-
color) If `type` is "line", color corresponds to the line color
(mapbox.layer.paint.line-color) If `type` is "fill", color
corresponds to the fill color (mapbox... | def color(self):
"""
Sets the primary layer color. If `type` is "circle", color
corresponds to the circle color (mapbox.layer.paint.circle-
color) If `type` is "line", color corresponds to the line color
(mapbox.layer.paint.line-color) If `type` is "fill", color
correspon... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
85,
4
] | [
141,
28
] | python | en | ['en', 'error', 'th'] | False |
Layer.coordinates | (self) |
Sets the coordinates array contains [longitude, latitude] pairs
for the image corners listed in clockwise order: top left, top
right, bottom right, bottom left. Only has an effect for
"image" `sourcetype`.
The 'coordinates' property accepts values of any type
Retur... |
Sets the coordinates array contains [longitude, latitude] pairs
for the image corners listed in clockwise order: top left, top
right, bottom right, bottom left. Only has an effect for
"image" `sourcetype`.
The 'coordinates' property accepts values of any type | def coordinates(self):
"""
Sets the coordinates array contains [longitude, latitude] pairs
for the image corners listed in clockwise order: top left, top
right, bottom right, bottom left. Only has an effect for
"image" `sourcetype`.
The 'coordinates' property accepts... | [
"def",
"coordinates",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coordinates\"",
"]"
] | [
150,
4
] | [
163,
34
] | python | en | ['en', 'error', 'th'] | False |
Layer.fill | (self) |
The 'fill' property is an instance of Fill
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`
- A dict of string/value properties that will be passed
to the Fill constructor
Supported dict properties:
... |
The 'fill' property is an instance of Fill
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`
- A dict of string/value properties that will be passed
to the Fill constructor
Supported dict properties:
... | def fill(self):
"""
The 'fill' property is an instance of Fill
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Fill`
- A dict of string/value properties that will be passed
to the Fill constructor
Supported... | [
"def",
"fill",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"fill\"",
"]"
] | [
172,
4
] | [
191,
27
] | python | en | ['en', 'error', 'th'] | False |
Layer.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
200,
4
] | [
226,
27
] | python | en | ['en', 'error', 'th'] | False |
Layer.maxzoom | (self) |
Sets the maximum zoom level (mapbox.layer.maxzoom). At zoom
levels equal to or greater than the maxzoom, the layer will be
hidden.
The 'maxzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24]
Returns
-------
... |
Sets the maximum zoom level (mapbox.layer.maxzoom). At zoom
levels equal to or greater than the maxzoom, the layer will be
hidden.
The 'maxzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24] | def maxzoom(self):
"""
Sets the maximum zoom level (mapbox.layer.maxzoom). At zoom
levels equal to or greater than the maxzoom, the layer will be
hidden.
The 'maxzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24]
... | [
"def",
"maxzoom",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxzoom\"",
"]"
] | [
235,
4
] | [
248,
30
] | python | en | ['en', 'error', 'th'] | False |
Layer.minzoom | (self) |
Sets the minimum zoom level (mapbox.layer.minzoom). At zoom
levels less than the minzoom, the layer will be hidden.
The 'minzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24]
Returns
-------
int|float
|
Sets the minimum zoom level (mapbox.layer.minzoom). At zoom
levels less than the minzoom, the layer will be hidden.
The 'minzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24] | def minzoom(self):
"""
Sets the minimum zoom level (mapbox.layer.minzoom). At zoom
levels less than the minzoom, the layer will be hidden.
The 'minzoom' property is a number and may be specified as:
- An int or float in the interval [0, 24]
Returns
-------... | [
"def",
"minzoom",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"minzoom\"",
"]"
] | [
257,
4
] | [
269,
30
] | python | en | ['en', 'error', 'th'] | False |
Layer.name | (self) |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... |
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` alongside your modifications ... | def name(self):
"""
When used in a template, named items are created in the output
figure in addition to any items the figure already has in this
array. You can modify these items in the output figure by
making your own item with `templateitemname` matching this
`name` al... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
278,
4
] | [
296,
27
] | python | en | ['en', 'error', 'th'] | False |
Layer.opacity | (self) |
Sets the opacity of the layer. If `type` is "circle", opacity
corresponds to the circle opacity (mapbox.layer.paint.circle-
opacity) If `type` is "line", opacity corresponds to the line
opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",
opacity corresponds to the fil... |
Sets the opacity of the layer. If `type` is "circle", opacity
corresponds to the circle opacity (mapbox.layer.paint.circle-
opacity) If `type` is "line", opacity corresponds to the line
opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",
opacity corresponds to the fil... | def opacity(self):
"""
Sets the opacity of the layer. If `type` is "circle", opacity
corresponds to the circle opacity (mapbox.layer.paint.circle-
opacity) If `type` is "line", opacity corresponds to the line
opacity (mapbox.layer.paint.line-opacity) If `type` is "fill",
... | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
305,
4
] | [
323,
30
] | python | en | ['en', 'error', 'th'] | False |
Layer.source | (self) |
Sets the source data for this layer (mapbox.layer.source). When
`sourcetype` is set to "geojson", `source` can be a URL to a
GeoJSON or a GeoJSON object. When `sourcetype` is set to
"vector" or "raster", `source` can be a URL or an array of tile
URLs. When `sourcetype` is set to... |
Sets the source data for this layer (mapbox.layer.source). When
`sourcetype` is set to "geojson", `source` can be a URL to a
GeoJSON or a GeoJSON object. When `sourcetype` is set to
"vector" or "raster", `source` can be a URL or an array of tile
URLs. When `sourcetype` is set to... | def source(self):
"""
Sets the source data for this layer (mapbox.layer.source). When
`sourcetype` is set to "geojson", `source` can be a URL to a
GeoJSON or a GeoJSON object. When `sourcetype` is set to
"vector" or "raster", `source` can be a URL or an array of tile
URLs... | [
"def",
"source",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"source\"",
"]"
] | [
332,
4
] | [
347,
29
] | python | en | ['en', 'error', 'th'] | False |
Layer.sourceattribution | (self) |
Sets the attribution for this source.
The 'sourceattribution' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the attribution for this source.
The 'sourceattribution' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def sourceattribution(self):
"""
Sets the attribution for this source.
The 'sourceattribution' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
"""
return ... | [
"def",
"sourceattribution",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sourceattribution\"",
"]"
] | [
356,
4
] | [
368,
40
] | python | en | ['en', 'error', 'th'] | False |
Layer.sourcelayer | (self) |
Specifies the layer to use from a vector tile source
(mapbox.layer.source-layer). Required for "vector" source type
that supports multiple layers.
The 'sourcelayer' property is a string and must be specified as:
- A string
- A number that will be converted to a ... |
Specifies the layer to use from a vector tile source
(mapbox.layer.source-layer). Required for "vector" source type
that supports multiple layers.
The 'sourcelayer' property is a string and must be specified as:
- A string
- A number that will be converted to a ... | def sourcelayer(self):
"""
Specifies the layer to use from a vector tile source
(mapbox.layer.source-layer). Required for "vector" source type
that supports multiple layers.
The 'sourcelayer' property is a string and must be specified as:
- A string
- A n... | [
"def",
"sourcelayer",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sourcelayer\"",
"]"
] | [
377,
4
] | [
391,
34
] | python | en | ['en', 'error', 'th'] | False |
Layer.sourcetype | (self) |
Sets the source type for this layer, that is the type of the
layer data.
The 'sourcetype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['geojson', 'vector', 'raster', 'image']
Returns
-------
... |
Sets the source type for this layer, that is the type of the
layer data.
The 'sourcetype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['geojson', 'vector', 'raster', 'image'] | def sourcetype(self):
"""
Sets the source type for this layer, that is the type of the
layer data.
The 'sourcetype' property is an enumeration that may be specified as:
- One of the following enumeration values:
['geojson', 'vector', 'raster', 'image']
... | [
"def",
"sourcetype",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"sourcetype\"",
"]"
] | [
400,
4
] | [
413,
33
] | python | en | ['en', 'error', 'th'] | False |
Layer.symbol | (self) |
The 'symbol' property is an instance of Symbol
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`
- A dict of string/value properties that will be passed
to the Symbol constructor
Supported dict properties:
... |
The 'symbol' property is an instance of Symbol
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`
- A dict of string/value properties that will be passed
to the Symbol constructor
Supported dict properties:
... | def symbol(self):
"""
The 'symbol' property is an instance of Symbol
that may be specified as:
- An instance of :class:`plotly.graph_objs.layout.mapbox.layer.Symbol`
- A dict of string/value properties that will be passed
to the Symbol constructor
... | [
"def",
"symbol",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"symbol\"",
"]"
] | [
422,
4
] | [
465,
29
] | python | en | ['en', 'error', 'th'] | False |
Layer.templateitemname | (self) |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... |
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
alongside your modifications (includ... | def templateitemname(self):
"""
Used to refer to a named item in this array in the template.
Named items from the template will be created even without a
matching item in the input figure, but you can modify one by
making an item with `templateitemname` matching its `name`,
... | [
"def",
"templateitemname",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"templateitemname\"",
"]"
] | [
474,
4
] | [
493,
39
] | python | en | ['en', 'error', 'th'] | False |
Layer.type | (self) |
Sets the layer type, that is the how the layer data set in
`source` will be rendered With `sourcetype` set to "geojson",
the following values are allowed: "circle", "line", "fill" and
"symbol". but note that "line" and "fill" are not compatible
with Point GeoJSON geometries. Wit... |
Sets the layer type, that is the how the layer data set in
`source` will be rendered With `sourcetype` set to "geojson",
the following values are allowed: "circle", "line", "fill" and
"symbol". but note that "line" and "fill" are not compatible
with Point GeoJSON geometries. Wit... | def type(self):
"""
Sets the layer type, that is the how the layer data set in
`source` will be rendered With `sourcetype` set to "geojson",
the following values are allowed: "circle", "line", "fill" and
"symbol". but note that "line" and "fill" are not compatible
with Po... | [
"def",
"type",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"type\"",
"]"
] | [
502,
4
] | [
521,
27
] | python | en | ['en', 'error', 'th'] | False |
Layer.visible | (self) |
Determines whether this layer is displayed
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether this layer is displayed
The 'visible' property must be specified as a bool
(either True, or False) | def visible(self):
"""
Determines whether this layer is displayed
The 'visible' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["visible"] | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
530,
4
] | [
541,
30
] | python | en | ['en', 'error', 'th'] | False |
Layer.__init__ | (
self,
arg=None,
below=None,
circle=None,
color=None,
coordinates=None,
fill=None,
line=None,
maxzoom=None,
minzoom=None,
name=None,
opacity=None,
source=None,
sourceattribution=None,
sourcelayer=Non... |
Construct a new Layer object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.mapbox.Layer`
below
Determines if the layer will be inserted bef... |
Construct a new Layer object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.mapbox.Layer`
below
Determines if the layer will be inserted bef... | def __init__(
self,
arg=None,
below=None,
circle=None,
color=None,
coordinates=None,
fill=None,
line=None,
maxzoom=None,
minzoom=None,
name=None,
opacity=None,
source=None,
sourceattribution=None,
sou... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"below",
"=",
"None",
",",
"circle",
"=",
"None",
",",
"color",
"=",
"None",
",",
"coordinates",
"=",
"None",
",",
"fill",
"=",
"None",
",",
"line",
"=",
"None",
",",
"maxzoom",
"=",
"... | [
652,
4
] | [
895,
34
] | python | en | ['en', 'error', 'th'] | False |
Tickfont.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
63,
28
] | python | en | ['en', 'error', 'th'] | False |
Tickfont.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
72,
4
] | [
94,
29
] | python | en | ['en', 'error', 'th'] | False |
Tickfont.size | (self) |
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Tickfont.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Tickfont object
Sets the tick font.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.scene.yaxis.Tickfont`
color
family
... |
Construct a new Tickfont object
Sets the tick font. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Tickfont object
Sets the tick font.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Tickfont",
",",
"self",
")",
".",
"__init__",
"(",
"\"tick... | [
143,
4
] | [
226,
34
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_list | (request: web.BaseRequest) |
Request handler for searching presentation exchange records.
Args:
request: aiohttp request object
Returns:
The presentation exchange list response
|
Request handler for searching presentation exchange records. | async def presentation_exchange_list(request: web.BaseRequest):
"""
Request handler for searching presentation exchange records.
Args:
request: aiohttp request object
Returns:
The presentation exchange list response
"""
context = request.app["request_context"]
tag_filter =... | [
"async",
"def",
"presentation_exchange_list",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"tag_filter",
"=",
"{",
"}",
"if",
"\"thread_id\"",
"in",
"request",
".",
"query",
... | [
61,
0
] | [
85,
85
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_retrieve | (request: web.BaseRequest) |
Request handler for fetching a single presentation exchange record.
Args:
request: aiohttp request object
Returns:
The presentation exchange record response
|
Request handler for fetching a single presentation exchange record. | async def presentation_exchange_retrieve(request: web.BaseRequest):
"""
Request handler for fetching a single presentation exchange record.
Args:
request: aiohttp request object
Returns:
The presentation exchange record response
"""
context = request.app["request_context"]
... | [
"async",
"def",
"presentation_exchange_retrieve",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"presentation_exchange_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
"]",
... | [
93,
0
] | [
112,
48
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_credentials_list | (request: web.BaseRequest) |
Request handler for searching applicable credential records.
Args:
request: aiohttp request object
Returns:
The credential list response
|
Request handler for searching applicable credential records. | async def presentation_exchange_credentials_list(request: web.BaseRequest):
"""
Request handler for searching applicable credential records.
Args:
request: aiohttp request object
Returns:
The credential list response
"""
context = request.app["request_context"]
presentati... | [
"async",
"def",
"presentation_exchange_credentials_list",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"presentation_exchange_id",
"=",
"request",
".",
"match_info",
"[",
"\"id\"",
... | [
140,
0
] | [
194,
41
] | python | en | ['en', 'error', 'th'] | False |
_create_request_helper | (context, spec) | Create a presentation request. | Create a presentation request. | async def _create_request_helper(context, spec):
"""Create a presentation request."""
connection_id = spec.get("connection_id")
name = spec.get("name")
version = spec.get("version")
requested_attributes = spec.get("requested_attributes")
requested_predicates = spec.get("requested_predicates")
... | [
"async",
"def",
"_create_request_helper",
"(",
"context",
",",
"spec",
")",
":",
"connection_id",
"=",
"spec",
".",
"get",
"(",
"\"connection_id\"",
")",
"name",
"=",
"spec",
".",
"get",
"(",
"\"name\"",
")",
"version",
"=",
"spec",
".",
"get",
"(",
"\"v... | [
197,
0
] | [
213,
69
] | python | en | ['en', 'co', 'en'] | True |
presentation_exchange_create_request | (request: web.BaseRequest) |
Request handler for creating a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
|
Request handler for creating a presentation request. | async def presentation_exchange_create_request(request: web.BaseRequest):
"""
Request handler for creating a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
"""
context = request.app["request_context"]
body = await ... | [
"async",
"def",
"presentation_exchange_create_request",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"body",
"=",
"await",
"request",
".",
"json",
"(",
")",
"(",
"presentation... | [
221,
0
] | [
242,
70
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_send_request | (request: web.BaseRequest) |
Request handler for creating and sending a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
|
Request handler for creating and sending a presentation request. | async def presentation_exchange_send_request(request: web.BaseRequest):
"""
Request handler for creating and sending a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
"""
context = request.app["request_context"]
outb... | [
"async",
"def",
"presentation_exchange_send_request",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_message_router\""... | [
250,
0
] | [
277,
70
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_send_credential_presentation | (request: web.BaseRequest) |
Request handler for sending a credential presentation.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
|
Request handler for sending a credential presentation. | async def presentation_exchange_send_credential_presentation(request: web.BaseRequest):
"""
Request handler for sending a credential presentation.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
"""
context = request.app["request_context"]
... | [
"async",
"def",
"presentation_exchange_send_credential_presentation",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"outbound_handler",
"=",
"request",
".",
"app",
"[",
"\"outbound_m... | [
286,
0
] | [
324,
70
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_verify_credential_presentation | (
request: web.BaseRequest
) |
Request handler for verifying a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
|
Request handler for verifying a presentation request. | async def presentation_exchange_verify_credential_presentation(
request: web.BaseRequest
):
"""
Request handler for verifying a presentation request.
Args:
request: aiohttp request object
Returns:
The presentation exchange details.
"""
context = request.app["request_conte... | [
"async",
"def",
"presentation_exchange_verify_credential_presentation",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"presentation_exchange_id",
"=",
"request",
".",
"match_info",
"["... | [
332,
0
] | [
364,
70
] | python | en | ['en', 'error', 'th'] | False |
presentation_exchange_remove | (request: web.BaseRequest) |
Request handler for removing a presentation exchange record.
Args:
request: aiohttp request object
|
Request handler for removing a presentation exchange record. | async def presentation_exchange_remove(request: web.BaseRequest):
"""
Request handler for removing a presentation exchange record.
Args:
request: aiohttp request object
"""
context = request.app["request_context"]
try:
presentation_exchange_id = request.match_info["id"]
... | [
"async",
"def",
"presentation_exchange_remove",
"(",
"request",
":",
"web",
".",
"BaseRequest",
")",
":",
"context",
"=",
"request",
".",
"app",
"[",
"\"request_context\"",
"]",
"try",
":",
"presentation_exchange_id",
"=",
"request",
".",
"match_info",
"[",
"\"i... | [
371,
0
] | [
387,
32
] | python | en | ['en', 'error', 'th'] | False |
register | (app: web.Application) | Register routes. | Register routes. | async def register(app: web.Application):
"""Register routes."""
app.add_routes(
[
web.get("/presentation_exchange", presentation_exchange_list),
web.get("/presentation_exchange/{id}", presentation_exchange_retrieve),
web.get(
"/presentation_exchange/... | [
"async",
"def",
"register",
"(",
"app",
":",
"web",
".",
"Application",
")",
":",
"app",
".",
"add_routes",
"(",
"[",
"web",
".",
"get",
"(",
"\"/presentation_exchange\"",
",",
"presentation_exchange_list",
")",
",",
"web",
".",
"get",
"(",
"\"/presentation_... | [
390,
0
] | [
425,
5
] | python | en | ['en', 'fr', 'en'] | False |
mfcc | (signal,samplerate=16000,winlen=0.025,winstep=0.01,numcep=13,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,ceplifter=22,appendEnergy=True,
winfunc=lambda x:numpy.ones((x,))) | Compute MFCC features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: the samplerate of the signal we are working with.
:param winlen: the length of the analysis window in seconds. Default is 0.025s (25 milliseconds)
:param... | Compute MFCC features from an audio signal. | def mfcc(signal,samplerate=16000,winlen=0.025,winstep=0.01,numcep=13,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,ceplifter=22,appendEnergy=True,
winfunc=lambda x:numpy.ones((x,))):
"""Compute MFCC features from an audio signal.
:param signal: the audio signal from which to compute... | [
"def",
"mfcc",
"(",
"signal",
",",
"samplerate",
"=",
"16000",
",",
"winlen",
"=",
"0.025",
",",
"winstep",
"=",
"0.01",
",",
"numcep",
"=",
"13",
",",
"nfilt",
"=",
"26",
",",
"nfft",
"=",
"512",
",",
"lowfreq",
"=",
"0",
",",
"highfreq",
"=",
"... | [
7,
0
] | [
32,
15
] | python | en | ['en', 'en', 'en'] | True |
fbank | (signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,
winfunc=lambda x:numpy.ones((x,))) | Compute Mel-filterbank energy features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: the samplerate of the signal we are working with.
:param winlen: the length of the analysis window in seconds. Default is 0.025s (25 millise... | Compute Mel-filterbank energy features from an audio signal. | def fbank(signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,
winfunc=lambda x:numpy.ones((x,))):
"""Compute Mel-filterbank energy features from an audio signal.
:param signal: the audio signal from which to compute features. Should be ... | [
"def",
"fbank",
"(",
"signal",
",",
"samplerate",
"=",
"16000",
",",
"winlen",
"=",
"0.025",
",",
"winstep",
"=",
"0.01",
",",
"nfilt",
"=",
"26",
",",
"nfft",
"=",
"512",
",",
"lowfreq",
"=",
"0",
",",
"highfreq",
"=",
"None",
",",
"preemph",
"=",... | [
34,
0
] | [
63,
22
] | python | en | ['en', 'en', 'en'] | True |
logfbank | (signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97) | Compute log Mel-filterbank energy features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: the samplerate of the signal we are working with.
:param winlen: the length of the analysis window in seconds. Default is 0.025s (25 mil... | Compute log Mel-filterbank energy features from an audio signal. | def logfbank(signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97):
"""Compute log Mel-filterbank energy features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: th... | [
"def",
"logfbank",
"(",
"signal",
",",
"samplerate",
"=",
"16000",
",",
"winlen",
"=",
"0.025",
",",
"winstep",
"=",
"0.01",
",",
"nfilt",
"=",
"26",
",",
"nfft",
"=",
"512",
",",
"lowfreq",
"=",
"0",
",",
"highfreq",
"=",
"None",
",",
"preemph",
"... | [
65,
0
] | [
81,
26
] | python | en | ['en', 'en', 'en'] | True |
ssc | (signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,
winfunc=lambda x:numpy.ones((x,))) | Compute Spectral Subband Centroid features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an N*1 array
:param samplerate: the samplerate of the signal we are working with.
:param winlen: the length of the analysis window in seconds. Default is 0.025s (25 mil... | Compute Spectral Subband Centroid features from an audio signal. | def ssc(signal,samplerate=16000,winlen=0.025,winstep=0.01,
nfilt=26,nfft=512,lowfreq=0,highfreq=None,preemph=0.97,
winfunc=lambda x:numpy.ones((x,))):
"""Compute Spectral Subband Centroid features from an audio signal.
:param signal: the audio signal from which to compute features. Should be an... | [
"def",
"ssc",
"(",
"signal",
",",
"samplerate",
"=",
"16000",
",",
"winlen",
"=",
"0.025",
",",
"winstep",
"=",
"0.01",
",",
"nfilt",
"=",
"26",
",",
"nfft",
"=",
"512",
",",
"lowfreq",
"=",
"0",
",",
"highfreq",
"=",
"None",
",",
"preemph",
"=",
... | [
83,
0
] | [
110,
41
] | python | en | ['en', 'en', 'en'] | True |
hz2mel | (hz) | Convert a value in Hertz to Mels
:param hz: a value in Hz. This can also be a numpy array, conversion proceeds element-wise.
:returns: a value in Mels. If an array was passed in, an identical sized array is returned.
| Convert a value in Hertz to Mels | def hz2mel(hz):
"""Convert a value in Hertz to Mels
:param hz: a value in Hz. This can also be a numpy array, conversion proceeds element-wise.
:returns: a value in Mels. If an array was passed in, an identical sized array is returned.
"""
return 2595 * numpy.log10(1+hz/700.) | [
"def",
"hz2mel",
"(",
"hz",
")",
":",
"return",
"2595",
"*",
"numpy",
".",
"log10",
"(",
"1",
"+",
"hz",
"/",
"700.",
")"
] | [
112,
0
] | [
118,
40
] | python | en | ['en', 'en', 'en'] | True |
mel2hz | (mel) | Convert a value in Mels to Hertz
:param mel: a value in Mels. This can also be a numpy array, conversion proceeds element-wise.
:returns: a value in Hertz. If an array was passed in, an identical sized array is returned.
| Convert a value in Mels to Hertz | def mel2hz(mel):
"""Convert a value in Mels to Hertz
:param mel: a value in Mels. This can also be a numpy array, conversion proceeds element-wise.
:returns: a value in Hertz. If an array was passed in, an identical sized array is returned.
"""
return 700*(10**(mel/2595.0)-1) | [
"def",
"mel2hz",
"(",
"mel",
")",
":",
"return",
"700",
"*",
"(",
"10",
"**",
"(",
"mel",
"/",
"2595.0",
")",
"-",
"1",
")"
] | [
120,
0
] | [
126,
35
] | python | en | ['en', 'en', 'en'] | True |
get_filterbanks | (nfilt=20,nfft=512,samplerate=16000,lowfreq=0,highfreq=None) | Compute a Mel-filterbank. The filters are stored in the rows, the columns correspond
to fft bins. The filters are returned as an array of size nfilt * (nfft/2 + 1)
:param nfilt: the number of filters in the filterbank, default 20.
:param nfft: the FFT size. Default is 512.
:param samplerate: the sample... | Compute a Mel-filterbank. The filters are stored in the rows, the columns correspond
to fft bins. The filters are returned as an array of size nfilt * (nfft/2 + 1) | def get_filterbanks(nfilt=20,nfft=512,samplerate=16000,lowfreq=0,highfreq=None):
"""Compute a Mel-filterbank. The filters are stored in the rows, the columns correspond
to fft bins. The filters are returned as an array of size nfilt * (nfft/2 + 1)
:param nfilt: the number of filters in the filterbank, defa... | [
"def",
"get_filterbanks",
"(",
"nfilt",
"=",
"20",
",",
"nfft",
"=",
"512",
",",
"samplerate",
"=",
"16000",
",",
"lowfreq",
"=",
"0",
",",
"highfreq",
"=",
"None",
")",
":",
"highfreq",
"=",
"highfreq",
"or",
"samplerate",
"/",
"2",
"assert",
"highfre... | [
128,
0
] | [
156,
16
] | python | en | ['en', 'en', 'en'] | True |
lifter | (cepstra, L=22) | Apply a cepstral lifter the the matrix of cepstra. This has the effect of increasing the
magnitude of the high frequency DCT coeffs.
:param cepstra: the matrix of mel-cepstra, will be numframes * numcep in size.
:param L: the liftering coefficient to use. Default is 22. L <= 0 disables lifter.
| Apply a cepstral lifter the the matrix of cepstra. This has the effect of increasing the
magnitude of the high frequency DCT coeffs. | def lifter(cepstra, L=22):
"""Apply a cepstral lifter the the matrix of cepstra. This has the effect of increasing the
magnitude of the high frequency DCT coeffs.
:param cepstra: the matrix of mel-cepstra, will be numframes * numcep in size.
:param L: the liftering coefficient to use. Default is 22. L ... | [
"def",
"lifter",
"(",
"cepstra",
",",
"L",
"=",
"22",
")",
":",
"if",
"L",
">",
"0",
":",
"nframes",
",",
"ncoeff",
"=",
"numpy",
".",
"shape",
"(",
"cepstra",
")",
"n",
"=",
"numpy",
".",
"arange",
"(",
"ncoeff",
")",
"lift",
"=",
"1",
"+",
... | [
158,
0
] | [
172,
22
] | python | en | ['en', 'en', 'en'] | True |
delta | (feat, N) | Compute delta features from a feature vector sequence.
:param feat: A numpy array of size (NUMFRAMES by number of features) containing features. Each row holds 1 feature vector.
:param N: For each frame, calculate delta features based on preceding and following N frames
:returns: A numpy array of size (NUM... | Compute delta features from a feature vector sequence. | def delta(feat, N):
"""Compute delta features from a feature vector sequence.
:param feat: A numpy array of size (NUMFRAMES by number of features) containing features. Each row holds 1 feature vector.
:param N: For each frame, calculate delta features based on preceding and following N frames
:returns:... | [
"def",
"delta",
"(",
"feat",
",",
"N",
")",
":",
"if",
"N",
"<",
"1",
":",
"raise",
"ValueError",
"(",
"'N must be an integer >= 1'",
")",
"NUMFRAMES",
"=",
"len",
"(",
"feat",
")",
"denominator",
"=",
"2",
"*",
"sum",
"(",
"[",
"i",
"**",
"2",
"fo... | [
174,
0
] | [
189,
21
] | python | en | ['it', 'en', 'en'] | True |
_py_to_js | (v, widget_manager) |
Python -> Javascript ipywidget serializer
This function must repalce all objects that the ipywidget library
can't serialize natively (e.g. numpy arrays) with serializable
representations
Parameters
----------
v
Object to be serialized
widget_manager
ipywidget widget_ma... |
Python -> Javascript ipywidget serializer | def _py_to_js(v, widget_manager):
"""
Python -> Javascript ipywidget serializer
This function must repalce all objects that the ipywidget library
can't serialize natively (e.g. numpy arrays) with serializable
representations
Parameters
----------
v
Object to be serialized
w... | [
"def",
"_py_to_js",
"(",
"v",
",",
"widget_manager",
")",
":",
"# Handle dict recursively",
"# -----------------------",
"if",
"isinstance",
"(",
"v",
",",
"dict",
")",
":",
"return",
"{",
"k",
":",
"_py_to_js",
"(",
"v",
",",
"widget_manager",
")",
"for",
"... | [
6,
0
] | [
64,
16
] | python | en | ['en', 'error', 'th'] | False |
_js_to_py | (v, widget_manager) |
Javascript -> Python ipywidget deserializer
Parameters
----------
v
Object to be deserialized
widget_manager
ipywidget widget_manager (unused)
Returns
-------
any
Deserialized object for use by the Python side of the library
|
Javascript -> Python ipywidget deserializer | def _js_to_py(v, widget_manager):
"""
Javascript -> Python ipywidget deserializer
Parameters
----------
v
Object to be deserialized
widget_manager
ipywidget widget_manager (unused)
Returns
-------
any
Deserialized object for use by the Python side of the lib... | [
"def",
"_js_to_py",
"(",
"v",
",",
"widget_manager",
")",
":",
"# Handle dict",
"# -----------",
"if",
"isinstance",
"(",
"v",
",",
"dict",
")",
":",
"return",
"{",
"k",
":",
"_js_to_py",
"(",
"v",
",",
"widget_manager",
")",
"for",
"k",
",",
"v",
"in"... | [
67,
0
] | [
101,
16
] | python | en | ['en', 'error', 'th'] | False |
Font.color | (self) |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... |
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A named CSS color:
... | def color(self):
"""
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
- An rgb/rgba string (e.g. 'rgb(255,0,0)')
- An hsl/hsla string (e.g. 'hsl(0,100%,50%)')
- An hsv/hsva string (e.g. 'hsv(0,100%,100%)')
- A name... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
64,
28
] | python | en | ['en', 'error', 'th'] | False |
Font.colorsrc | (self) |
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def colorsrc(self):
"""
Sets the source reference on Chart Studio Cloud for color .
The 'colorsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["colorsrc"] | [
"def",
"colorsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorsrc\"",
"]"
] | [
73,
4
] | [
84,
31
] | python | en | ['en', 'error', 'th'] | False |
Font.family | (self) |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... |
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
preference in which to apply fonts ... | def family(self):
"""
HTML font family - the typeface that will be applied by the web
browser. The web browser will only be able to apply a font if
it is available on the system which it operates. Provide
multiple font families, separated by commas, to indicate the
prefer... | [
"def",
"family",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"family\"",
"]"
] | [
93,
4
] | [
116,
29
] | python | en | ['en', 'error', 'th'] | False |
Font.familysrc | (self) |
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
|
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def familysrc(self):
"""
Sets the source reference on Chart Studio Cloud for family .
The 'familysrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["familysrc"] | [
"def",
"familysrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"familysrc\"",
"]"
] | [
125,
4
] | [
136,
32
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.