The oxygen compressor puts oxygen into a oxygen tank. You're going to need it if you want to survive in space.
The Oxygen Compressor, once connected to an Oxygen Pipe with sufficient oxygen flowing through it, will refill depleted oxygen tanks that are placed inside.
There is a bug that will not fill up a tank because of a "Not Enough Power" message, to fix this: Make sure you are connecting oxygen over an "Oxygen Pipe", not directly! Another Bug is that the Electric compressor sometimes duplicates items. If You Play on a Server, the compressor might be banned.