You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

watch-import

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

watch-import

Watch target file/folder for changes in python files and import/reimport

0.0.2
pipPyPI
Maintainers
1

watch_import

Watch_import uses watchfiles to observe a file or folder. When a file is saved it will re/import that file into the watch_import context.

Using as a file/folder watcher

> watch_import PATH/TO_PYTHON_FILES

Using as an import

from watch_import import watch_me

print('hello')
watch_me()

Example use-case OCP CAD Viewer

import cadquery as cq
from ocp_vscode import show
from watch_import import watch_me

body = cq.Workplane("XY").box(5, 10, 15)
show(body)

watch_me()

Run this file once and it will start watching and "re-run" once saved.

Keywords

import

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts