Python development tools probably can decompile .pyo files and recreate a source code in a .py file. There probably is not other way how to do it.
Convert Python compiled code to Python script language source code.
We have found one software suitable in our database for this conversion.
Microsoft Windows software - convert pyo to py on Windows
A programming language that lets you work more quickly and integrate your systems more effectively. Python runs on Windows, Linux/Unix, Mac, and has been ported to the Java and .NET virtual machines.
Convert from pyo file
to py file
The table with program actions contains information about what each program is capable of doing with their files. This may be a good pointer for further searches for certain file conversions and help you find the converter you are looking for if our search result is insufficient for you. However, it is far from perfect and may sometimes show results which are not really usable because of the nature of the software handles the files. So a conversion that appears as possible, just because of matched actions, may in fact not be possible.