MCPcopy Create free account
hub / github.com/Clarifai/clarifai-python / run

Function run

scripts/key_for_tests.py:98–116  ·  view source on GitHub ↗
(arguments)

Source from the content-addressed store, hash-verified

96
97
98def run(arguments):
99 if arguments.email:
100 global EMAIL
101 EMAIL = arguments.email # override the default testing email
102 if arguments.password:
103 global PASSWORD
104 PASSWORD = arguments.password # override the default testing password
105 # these options are mutually exclusive
106 if arguments.create_pat:
107 create_pat()
108 elif arguments.get_userid:
109 _, user_id = login()
110 # This print needs to be present so we can read the value in CI.
111 print(user_id)
112 else:
113 print(
114 f"No relevant arguments specified. Run {sys.argv[0]} --help to see available options"
115 )
116 sys.exit(1)
117
118
119if __name__ == "__main__":

Callers 1

key_for_tests.pyFile · 0.70

Calls 2

create_patFunction · 0.85
loginFunction · 0.70

Tested by

no test coverage detected