from osuRepy.frame import ReplayFrame from osuRepy.replay import Replay replay = Replay() replay.write( ReplayFrame(2, 3, 4, 4) ) replay.score_300s = 20 replay.timestamp = 635592412124124124 # Wed Feb 11 2015 09:03:52 GMT+0100 (Central European Standard Time) replay.save("test.osr")