Skip to main content

('Where python script is running',)

Project description

Pywhereisrunning

Build Status

To see where the python script is running when the script is running.

Basically, it uses SIGUSR1 to send the signal to the python script, the script get the signal and use the frame to display where the script is running.

Installation

pip install pywhereisrunning

Usage

Just

import pywhereisrunning

to make the function available.

when you're run the script, use

  • pywhereisrunning $(filename)

to show where the script is running.

After the command, will show

  File "src/preprocess.py", line 50, in <module>
    click_df,train_user,test_user=merge_files()
  File "src/preprocess.py", line 36, in merge_files
    click_df=click_df.fillna(-1)
  File "/home/sky/.conda/envs/py3.6/lib/python3.6/site-packages/pandas/core/frame.py", line 4153, in fillna
    downcast=downcast,
  File "/home/sky/.conda/envs/py3.6/lib/python3.6/site-packages/pandas/core/generic.py", line 6237, in fillna
    value=value, limit=limit, inplace=inplace, downcast=downcast

TODOS

[x] pywhereisrunning + $(filename)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pywhereisrunning, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pywhereisrunning-0.0.2-py36-none-any.whl (4.0 kB) File type Wheel Python version py36 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page