-
Create new git branch
git switch -c <branch-name>
-
Start a virtual environment
pipenv shell
-
Install updated python packages
pipenv install --dev
-
Run tests
pytest tests
-
Lock package dependencies
pipenv lock
-
Installing package necessary for application
pipenv install <package-name>
-
Installing package needed only for development
pipenv install <package-name> --dev
-
Run tests using pytest
pytest tests
pyinstaller --onefile --name sms --clean --distpath . --log-level ERROR system_monitoring_system/__main__.py
sudo cp sms /usr/local/bin
sms <ARGS>
import core
g = core.Get()
for process in g.process():
print(process)
The above code will print all process dictionaries.
import core
g = core.Get()
processes = g.process()
num = 0
while num < 50:
try:
process = next(processes)
except StopIteration:
break
print(process)
num += 1