You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smart-top/smart/top/__init__.py

140 lines
5.0 KiB
Python

"""
This file contains class and functions that extract data from running processes like top and stores them into a data store of the calling codes choice
dependencies:
- top (on the os)
@TODO:
Test this thing on windows to see if it works
"""
import pandas as pd
import numpy as np
import subprocess
import os
import datetime
# from transport import factory
import sys
import hashlib
4 years ago
"""
n = os.uname()[1]
m = [item for item in m if len(item) != len (m[0])]
m = "\n".join(m[1:])
_cols = list(set(df.columns.tolist()) & set(args['cols']))