<jupyter_start><jupyter_text>Install the FireDrone API Client SDKWe have provided an easy to install SDK that you can use to control your drone within the simulation environment. Run the following command to pip install the SDK.<jupyter_code>!pip install --index-url https://test.pypi.org/simple/ fire-drone-sdk -U<jupyter_output><empty_output><jupyter_text>Import dependenciesOnce you have the SDK installed, you need to import the FireDrone Client and related modules.<jupyter_code>import firedrone.client as fdc
from firedrone.client.errors import FireDroneClientHttpError<jupyter_output><empty_output><jupyter_text>Register a new user for your teamYou will need to know your Devpost user name in order to successfully register for the FireDrone API using the Client SDK. Your user must be registered to the [competition](https://firedrone.devpost.com).If the Devpost user name you specify has already been used to register a team, your request will be denied.In case you suspect any abuse regarding your Devpost user name, please contact us immediately at <EMAIL> or [the competition Slack channel](https://firedroneai.slack.com/join/shared_invite/<KEY>).You will need to provide a team name, between 1 and 100 characters long. In case the team name is already registered, please choose a diferent team name.Make sure you replace both the team name and the Devpost account with the proper values in the cell below. The ```Registration``` class is the main entry point in the SDK for team registration.<jupyter_code>registration = fdc.Registration()

# Register a new user for your team
# -------------------------------------------------------------------------------------------

user_registration_info = {
    "name": "Team 02", # Make sure to specify a name that is not already in use
    "devpostAccount": "devpostAccount01"
}
new_user = registration.register_user(user_registration_info)
print(new_user)<jupyter_output><empty_output><jupyter_text>When successfull, the registration process will return the numeric identifier of your team's user as well as the API key you will use to authorize calls to the API.**Note**: All API calls (except ```register_user```) require a valid API key.**IMPORTANT!!! - Save your API key as this is the only time you will be able to get it.**  Activation of your userInitially, your user is disabled. Once we validate your Devpost account, we will enable your user. From that point on, you're good to go. **Note**: It may take several hours before the validation process is finished. We encourage you to proceed with the registration at your earliest convenience, to avoid time pressure later on.You can check if the user has been activated by trying to make a call to get a list of available scenes (see the cells below for instructions on how to do that).  Making calls to the FireDrone API The ```Workspace``` class is the main entry point for all interaction with the FireDrone API (except for the registration process described above).To initialize your workspace you need the API key that you received as a response to the user registration call.<jupyter_code># Create a new client workspace.
# -------------------------------------------------------------------------------------------

workspace = fdc.Workspace(new_user['key'])

# Get a list of available scenes.
# -------------------------------------------------------------------------------------------

try:
    scenes = workspace.get_scenes()
    print(scenes)
except FireDroneClientHttpError as e:
    print(e.status_code)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1339135317237507, 'fraction_numerical': 0.0022459292532285235, 'mean_word_length': 3.3879310344827585, 'pattern_counts': {'":': 2, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '541572', 'license': 'MIT', 'n_tokens_mistral': 868, 'n_tokens_neox': 840, 'n_words': 439, 'path': 'Registration.ipynb', 'repo_name': 'Derricks-Open-Source-Quest/DireDrone', 'size': '3683'}