How to perform app check with Pyrebase using Python?

As covered in the App Check documentation, currently the only first-party supported App Check providers for Firebase are DeviceCheck (on iOS), App Attest (on iOS) SafetyNet (on Android) and reCAPTCHA v3 (for web apps).

If you want to support Python, you'd have to develop/find some way to generate a signature for your script/program and follow the documentation on how to create a Custom App Check Provider which could be hosted on a Callable Cloud Function.