Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Automation's `org.json` package, see documentation here:

This package includes supporting Jython classes and interfaces. For more
information, see documentation here:
<https://www.javadoc.io/doc/org.python/jython-standalone/2.7.3/index.html>.
<https://www.javadoc.io/doc/org.python/jython-standalone/2.7.4/index.html>.

#### org.slf4j

Expand Down
88 changes: 88 additions & 0 deletions src/com/inductiveautomation/ignition/gateway/script/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
from __future__ import print_function

__all__ = ["PyResource"]

from typing import Any, List, Mapping, Optional, Union

from java.util import Date

from org.python.core import PyObject, PyTuple


class PyResource(PyObject):
def __init__(self, resource=None):
# type: (Any) -> None
super(PyResource, self).__init__()
print(resource)

def getCollection(self):
# type: () -> Union[str, unicode]
pass

def getDefiningCollection(self):
# type: () -> Union[str, unicode]
pass

def getName(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getResourceType(self):
# type: () -> PyTuple
pass

def getDocumentation(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getFiles(self):
# type: () -> Mapping[Union[str, unicode], Any]
pass

def getFile(self, key):
# type: (Union[str, unicode]) -> Any
pass

def getConfig(self):
# type: () -> Any
pass

def getBackupConfig(self):
# type: () -> Any
pass

def getFileNames(self):
# type: () -> List[Union[str, unicode]]
pass

def getAttributes(self):
# type: () -> PyObject
pass

def getAttribute(self, key):
# type: (Union[str, unicode]) -> PyObject
pass

def getId(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getLastModificationActor(self):
# type: () -> Optional[Union[str, unicode]]
pass

def getLastModificationTime(self):
# type: () -> Optional[Date]
pass

def getResource(self):
# type: () -> Any
pass

def isEnabled(self):
# type: () -> bool
pass

def isSingleton(self):
# type: () -> bool
pass
Loading