Package: uproot-browser
uproot-browseruproot-browser is aplotextbased command line library in which the command line interface is provided byClick. It is powered byHistand it's TUI is put together byTextual. Its aim is to enable a user to browse and look inside a ROOT file, completely via the terminal. It takes its inspiration from theROOT object browser.InstallationYou can install this library fromPyPIwithpip:python3-mpipinstalluproot-browserYou can also usepipxto run the library without installing it:pipxrunuproot-browserFeaturesuproot-browser currently provides the following features (get help with-hor--help, view the current version with--version):browsecan be used to display a TUI (text user interface).plotcan be used to display a plot.treecan be used to display a tree.ExamplesThis example uses data from thescikit-hep-testdatapackage. It is placed in the same directory as the uproot-browser repository.browsecommand:uproot-browserbrowse../scikit-hep-testdata/src/skhep_testdata/data/uproot-Event.rootplotcommand:uproot-browserplot../scikit-hep-testdata/src/skhep_testdata/data/uproot-Event.root:hstathstat--Entries:1000┌───────────────────────────────────────────────────────────────┐18.0┤▐▌││▐▌▗▖▄│15.6┤▐▌▗▖▐▌█││███▌██▐▌▐█│13.1┤████▟▌▗▖▗▖█▌▗▖▐▌▄█▌▄▟▌█▗▄▐▙▗▖▐▌▐█│10.6┤█████▌▐▌▐▙▖█▌▐▌▐▙█▄█▙██▌█▐█▟█▐▌▗▄▟▌▐█││█████▌█▌▐█▌████▌█▌▐█▐█▐▌▐▌███▐██▐█▐████▐███▐▌▐███▌▐█│8.2┤█████▌▐█▌▐█▌█████▌██▐███▐█▐▌▐████▐███▌▐██████▐███▐██▐████▐█││████████▙██▌█████████▟█▖████▖▟██████▟██████▖████████████▟██████│5.8┤███████████▙███████████▙████▌██████████████▌███████████████████││████████████████████████████▌██████████████████████████████████│3.3┤███████████████████████████████████████████████████████████████│└┬───────────────┬──────────────┬───────────────┬──────────────┬┘0.000.250.500.751.00[x]xaxisIf you're on macOS and using iTerm2, click here:You can get an iterm plot, the required dependencies can be installed via:python3-mpipinstalluproot-browser[iterm]Or can be run viapipxwithout installing:pipxrunuproot-browser[iterm]Adding the argument--itermgives us the plot:uproot-browserplot../scikit-hep-testdata/src/skhep_testdata/data/uproot-Event.root:hstat--itermtreecommand:uproot-browsertree../scikit-hep-testdata/src/skhep_testdata/data/uproot-Event.root
📁uproot-Event.root
┣━━❓<unnamed>TProcessID
┣━━🌴T(1000)┃┗━━🌿eventEvent
┃┣━━🌿TObject(groupoffUniqueID:uint32_t,fBits:uint32_t)┃┃┣━━🍁fBitsuint32_t
┃┃┗━━🍁fUniqueIDuint32_t
┃┣━━🍁fClosestDistanceunknown[]┃┣━━🍁fEventNamechar*
┃┣━━🌿fEvtHdrEventHeader
┃┃┣━━🍁fEvtHdr.fDateint32_t
┃┃┣━━🍁fEvtHdr.fEvtNumint32_t
┃┃┗━━🍁fEvtHdr.fRunint32_t
┃┣━━🍁fFlaguint32_t
┃┣━━🍁fHTH1F
┃┣━━🍁fHighPtTRefArray*
┃┣━━🍁fIsValidbool
┃┣━━🍁fLastTrackTRef
┃┣━━🍁fMatrix[4][4]float[4][4]┃┣━━🍁fMeasures[10]int32_t[10]┃┣━━🍁fMuonsTRefArray*
┃┣━━🍁fNsegint32_t
┃┣━━🍁fNtrackint32_t
┃┣━━🍁fNvertexuint32_t
┃┣━━🍁fTemperaturefloat
┃┣━━🌿fTracksTClonesArray*
┃┃┣━━🍃fTracks.fBitsuint32_t[]┃┃┣━━🍃fTracks.fBxFloat16_t[]┃┃┣━━🍃fTracks.fByFloat16_t[]┃┃┣━━🍃fTracks.fChargeDouble32_t[]┃┃┣━━🍃fTracks.fMass2Float16_t[]┃┃┣━━🍃fTracks.fMeanChargefloat[]┃┃┣━━🍃fTracks.fNpointint32_t[]┃┃┣━━🍃fTracks.fNspuint32_t[]┃┃┣━━🍁fTracks.fPointValueunknown[][]┃┃┣━━🍃fTracks.fPxfloat[]┃┃┣━━🍃fTracks.fPyfloat[]┃┃┣━━🍃fTracks.fPzfloat[]┃┃┣━━🍃fTracks.fRandomfloat[]┃┃┣━━🍃fTracks.fTArray[3]float[][3]┃┃┣━━🍁fTracks.fTriggerBits.fAllBitsuint8_t[][]┃┃┣━━🍃fTracks.fTriggerBits.fBitsuint32_t[]┃┃┣━━🍃fTracks.fTriggerBits.fNbitsuint32_t[]┃┃┣━━🍃fTracks.fTriggerBits.fNbytesuint32_t[]┃┃┣━━🍃fTracks.fTriggerBits.fUniqueIDuint32_t[]┃┃┣━━🍃fTracks.fUniqueIDuint32_t[]┃┃┣━━🍃fTracks.fValidint16_t[]┃┃┣━━🍃fTracks.fVertex[3]Double32_t[][3]┃┃┣━━🍃fTracks.fXfirstFloat16_t[]┃┃┣━━🍃fTracks.fXlastFloat16_t[]┃┃┣━━🍃fTracks.fYfirstFloat16_t[]┃┃┣━━🍃fTracks.fYlastFloat16_t[]┃┃┣━━🍃fTracks.fZfirstFloat16_t[]┃┃┗━━🍃fTracks.fZlastFloat16_t[]┃┣━━🌿fTriggerBitsTBits
┃┃┣━━🌿fTriggerBits.TObject(groupoffTriggerBits.fUniqueID:uint32_t,fTriggerBits.fBits:uint32_t)┃┃┃┣━━🍁fTriggerBits.fBitsuint32_t
┃┃┃┗━━🍁fTriggerBits.fUniqueIDuint32_t
┃┃┣━━🍃fTriggerBits.fAllBitsuint8_t[]┃┃┣━━🍁fTriggerBits.fNbitsuint32_t
┃┃┗━━🍁fTriggerBits.fNbytesuint32_t
┃┣━━🍁fType[20]int8_t[20]┃┗━━🍁fWebHistogramTRef
┣━━📊hstatTH1F(100)┗━━📊htimeTH1F(10)DevelopmentSeeCONTRIBUTING.mdfor details on how to set up a development environment.