View Raw <?php
// CLI/api/2.0/install_python.php - Provides static info about the latest Python version
// Simply update this file when a new Python version is released
header('Content-Type: application/json');
// Static information about the latest Python version
// Update these values when a new Python version is released
$latest_info = [
'version' => '3.13.5',
'windows_64bit_url' => 'https://www.python.org/ftp/python/3.13.5/python-3.13.5-amd64.exe',
'windows_32bit_url' => 'https://www.python.org/ftp/python/3.13.5/python-3.13.5.exe',
'macos_url' => 'https://www.python.org/ftp/python/3.13.5/python-3.13.5-macos11.pkg',
];
// Add success status
$result = array_merge(
['success' => true],
$latest_info
);
// Output the result as JSON
echo json_encode($result, JSON_PRETTY_PRINT);
?>