Installing our SDK
Prerequisites
Step 1: Install the Codeset SDK
pip install codesetStep 2: Create a Session
from codeset import Codeset
import os
client = Codeset(api_key=os.getenv("CODESET_API_KEY"))
session = client.sessions.create(
dataset="codeset-gym-python",
sample_id="matiasb__python-unidiff-19"
)Step 3: Interact with the Session
Step 4: Apply Changes
Step 5: Verify the Outcome
Step 6: Close the Session
Last updated