// Copyright (c) 2017-2022 Cloudflare, Inc. // Licensed under the Apache 2.0 license found in the LICENSE file or at: // https://opensource.org/licenses/Apache-2.0 #pragma once #include #include #include #include #include #include #include #include namespace workerd::server { // Used to preload the Pyodide bundle during workerd startup kj::Promise> fetchPyodideBundle( const api::pyodide::PythonConfig& pyConfig, kj::String version, kj::Network& network, kj::Timer& timer); // Preloads all required Python packages for a worker kj::Promise fetchPyodidePackages(const api::pyodide::PythonConfig& pyConfig, const api::pyodide::PyodidePackageManager& pyodidePackageManager, kj::ArrayPtr pythonRequirements, workerd::PythonSnapshotRelease::Reader pythonSnapshotRelease, kj::Network& network, kj::Timer& timer); } // namespace workerd::server