<jupyter_start><jupyter_text>This notebook is used to test that I can successfully get the status of a service, even if I ask for the service to use a key to encrypt traffic<jupyter_code>import Acquire.Service
import Acquire.Crypto
import Acquire.Client
service_url = "http://172.16.58.3:8080/t/identity"
response = Acquire.Service.call_function(service_url, args={"cat":"mieow", "dog":"woof"})
print(response)
key = Acquire.Crypto.PrivateKey()
response2 = Acquire.Service.call_function(service_url, response_key=key)
assert( response2["service_info"] == response["service_info"] )
service = Acquire.Service.Service.from_data(response["service_info"])
print(service)
response3 = Acquire.Service.call_function(service_url, args_key=service.public_key())
print(response3)
assert( response3["service_info"] == response["service_info"] )
response4 = Acquire.Service.call_function(service_url, args_key=service.public_key(), response_key=key)
assert( response4["service_info"] == response["service_info"] )
user = Acquire.Client.User("chryswoods")
user_service = user.identity_service()
assert( user_service.uuid() == service.uuid() )<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13201035375323555, 'fraction_numerical': 0.01639344262295082, 'mean_word_length': 8.586776859504132, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '98307', 'license': 'Apache-2.0', 'n_tokens_mistral': 373, 'n_tokens_neox': 361, 'n_words': 75, 'path': 'user/notebooks/test_get_status.ipynb', 'repo_name': 'michellab/BioSimSpaceCloud', 'size': '1160'}