1- Zip the GH file with password.
2- Hops component read the zipped file with password input.
And the only person who has the password can use the GH file.
Is that possible?
Is this possible?
Is the purpose to only allow certain people to use a definition?
The idea is zip and lock the base definition
Than use hops component with unzip option which need a password
Hops supports URLs to definitions. If you pass the following URL into the path for a hops component, it will work
I’m sure there are other online systems for this, but you could give people read access to a repository of definitions while you have both read and write access.
This is much more secure than an easily cracked (or handed around) zip password
Thanks , this look very useful but sometimes there is no connection which need local use offline and i am sure that the people who use the pc can’t crack the password (For example in case i need to use a workstation in another office or in the university ) even they save the running script they can’t use the locked one, with another feature -maybe- to hide the location.
There is a public string property on the Hops component called
RemoteDefinitionLocation which is what gets set when
Path is set on the Hops components. I’m not sure if nodeincode provides access to component instances. @piac is this possible?
Path/URL input in Hops component will be useful
I’m not adding this as inputs as a hops component can only work with a single path/url. If two paths were sent to a single Hops component via an input path, the component wouldn’t know how to build its inputs and outputs.
Creating a Hops component and setting the RemoteDefinitionLocation in code is possible. We just need to figure out a nice piece of code to write.
Replacing it by input isn’t possible?
I hope at least we can add the “input url/path text” via python
It’s a functional library, but it could be possible to provide the instance. It’s not provided now. However, it would break the concept of no-state that is intrinsic of pure functions. There’s the risk that one call, from another definition, will mess the results of another definition.
I started working on that last weekend, along with other ideas, and will continue when I have time.
Thanks Giulio. I don’t think we need to change nodeincode for this case. I’m pretty sure we could write a python script that does all of this. I could probably export a static helper function or two to do all of this from Hops.
This is now available as an option with Hops 0.6.0
@Dani_Abalde may also be interested in this feature