-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from grongierisc/master
Add python experience on datapipe flows
- Loading branch information
Showing
28 changed files
with
827 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
*.log | ||
data/input/*.hl7 | ||
data/input/*.hl7 | ||
data/output/ | ||
# Python stuff: | ||
*.pyc | ||
*.pyo | ||
# virtualenv | ||
.venv | ||
# dist | ||
dist | ||
# build | ||
build | ||
# eggs | ||
*.egg | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Licensed under the MIT License | ||
# https://github.com/grongierisc/iris_datapipe/blob/main/LICENSE | ||
|
||
import os | ||
|
||
from setuptools import setup | ||
|
||
def package_files(directory): | ||
paths = [] | ||
for (path, directories, filenames) in os.walk(directory): | ||
for filename in filenames: | ||
paths.append(os.path.join('.', path, filename)) | ||
return paths | ||
|
||
extra_files = package_files('src/python/') | ||
|
||
def main(): | ||
# Read the readme for use as the long description | ||
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), | ||
'README.md'), encoding='utf-8') as readme_file: | ||
long_description = readme_file.read() | ||
|
||
# Do the setup | ||
setup( | ||
name='iris_datapipe', | ||
description='iris_datapipe', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
version='0.0.2', | ||
author='grongier', | ||
author_email='guillaume.rongier@intersystems.com', | ||
keywords='iris_datapipe', | ||
url='https://github.com/grongierisc/iris-datapipe', | ||
license='MIT', | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Utilities' | ||
], | ||
package_dir={'': 'src/python'}, | ||
packages=['DataPipe'], | ||
|
||
python_requires='>=3.6', | ||
install_requires=[ | ||
"iris-pex-embedded-python>=2.0.0" | ||
] | ||
) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Class DataPipe.Helper Extends %RegisteredObject | ||
{ | ||
|
||
ClassMethod SetPythonPath(pClasspaths) | ||
{ | ||
set sys = ##class(%SYS.Python).Import("sys") | ||
do sys.path.append(pClasspaths) | ||
} | ||
|
||
ClassMethod GetPythonInstance( | ||
pModule, | ||
pRemoteClassname) As %SYS.Python | ||
{ | ||
set importlib = ##class(%SYS.Python).Import("importlib") | ||
set builtins = ##class(%SYS.Python).Import("builtins") | ||
set module = importlib."import_module"(pModule) | ||
set class = builtins.getattr(module, pRemoteClassname) | ||
return class."__new__"(class) | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.