zincware / ZnTrack

Create, visualize, run & benchmark DVC pipelines in Python & Jupyter notebooks.
https://zntrack.readthedocs.io
Apache License 2.0
44 stars 4 forks source link

Add a local config to store sensitive data #797

Open MrJulEnergy opened 2 months ago

MrJulEnergy commented 2 months ago

Example Node using the new fields option.

class MyNode(zntrack.Node):
    password = zntrack.local_config()
    def run(self):
        pass
MrJulEnergy commented 2 months ago

I couldnt figure out how to hide the local config file in a hidden folder like .zntrack/config.local. Using Path(".zntrack/config.local").mkdir(parents=True, exist_ok=True) sadly didn't work. Also is there a way to put this file onto the git/dvcignore file automatically?

MrJulEnergy commented 2 months ago

Next Task: