-
Notifications
You must be signed in to change notification settings - Fork 13
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 #179 from cgat-developers/AC-aws
included S3 decorators
- Loading branch information
Showing
15 changed files
with
544 additions
and
480 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 |
---|---|---|
|
@@ -59,3 +59,5 @@ _test_commandline.yaml | |
# sample workflow | ||
means.txt | ||
sample* | ||
|
||
.idea |
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,28 @@ | ||
# cgatcore/__init__.py | ||
|
||
|
||
class CgatCore: | ||
"""Main class to encapsulate CGAT core functionality with lazy loading.""" | ||
|
||
def __init__(self): | ||
self._pipeline = None | ||
self._remote = None | ||
|
||
@property | ||
def pipeline(self): | ||
"""Lazy load the pipeline module.""" | ||
if self._pipeline is None: | ||
from cgatcore import pipeline | ||
self._pipeline = pipeline | ||
return self._pipeline | ||
|
||
def get_remote(self): | ||
"""Dynamically load and return the remote module when explicitly called.""" | ||
if self._remote is None: | ||
from cgatcore import remote | ||
self._remote = remote | ||
return self._remote | ||
|
||
|
||
# Create a global instance of the CgatCore class | ||
cgatcore = CgatCore() |
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.