Metadata-Version: 2.1
Name: pagurus
Version: 0.1.1
Summary: Wrapper for getting process information.
Home-page: https://github.com/tylern4/pagurus
Author: Nick Tyler
Author-email: tylern@lbl.gov
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# pagurus

Used for getting the information from a running job based on its pid using psutil.

### Running pagurus as a wrapper for a single user
```bash
# Start running wrapper in the background for username
pagurus -u username -o /path/to/output/username_data_$(date +%h_%d_%Y_%H.%M).csv &
# Get the previous running PID of pagurus
export PID=$!
# Sleep for a few seconds to let everything start running
sleep 10 


# Run your desired program as normal
./a.out

# Kill the pagurus process
kill $PID

# Sleep for a few seconds to let results finish writing
sleep 10
```


### Plotting results
```bash
hermit -i test_data-time.csv
```

