isabl-cli 2.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. isabl_cli-2.0.0/LICENSE.md +23 -0
  2. isabl_cli-2.0.0/MANIFEST.in +9 -0
  3. isabl_cli-2.0.0/PKG-INFO +49 -0
  4. isabl_cli-2.0.0/README.md +38 -0
  5. isabl_cli-2.0.0/isabl_cli/VERSION +1 -0
  6. isabl_cli-2.0.0/isabl_cli/__init__.py +25 -0
  7. isabl_cli-2.0.0/isabl_cli/__main__.py +13 -0
  8. isabl_cli-2.0.0/isabl_cli/api.py +815 -0
  9. isabl_cli-2.0.0/isabl_cli/app.py +1926 -0
  10. isabl_cli-2.0.0/isabl_cli/batch_systems/__init__.py +7 -0
  11. isabl_cli-2.0.0/isabl_cli/batch_systems/local.py +44 -0
  12. isabl_cli-2.0.0/isabl_cli/batch_systems/lsf.py +175 -0
  13. isabl_cli-2.0.0/isabl_cli/batch_systems/sge.py +194 -0
  14. isabl_cli-2.0.0/isabl_cli/batch_systems/slurm.py +180 -0
  15. isabl_cli-2.0.0/isabl_cli/cli.py +91 -0
  16. isabl_cli-2.0.0/isabl_cli/commands.py +480 -0
  17. isabl_cli-2.0.0/isabl_cli/data/README.md +7 -0
  18. isabl_cli-2.0.0/isabl_cli/data.py +1240 -0
  19. isabl_cli-2.0.0/isabl_cli/exceptions.py +48 -0
  20. isabl_cli-2.0.0/isabl_cli/factories.py +99 -0
  21. isabl_cli-2.0.0/isabl_cli/options.py +407 -0
  22. isabl_cli-2.0.0/isabl_cli/settings.py +315 -0
  23. isabl_cli-2.0.0/isabl_cli/signals.py +23 -0
  24. isabl_cli-2.0.0/isabl_cli/test/__init__.py +1 -0
  25. isabl_cli-2.0.0/isabl_cli/test/utils.py +159 -0
  26. isabl_cli-2.0.0/isabl_cli/utils.py +346 -0
  27. isabl_cli-2.0.0/isabl_cli/validators.py +100 -0
  28. isabl_cli-2.0.0/isabl_cli.egg-info/PKG-INFO +49 -0
  29. isabl_cli-2.0.0/isabl_cli.egg-info/SOURCES.txt +48 -0
  30. isabl_cli-2.0.0/isabl_cli.egg-info/dependency_links.txt +1 -0
  31. isabl_cli-2.0.0/isabl_cli.egg-info/entry_points.txt +2 -0
  32. isabl_cli-2.0.0/isabl_cli.egg-info/requires.txt +24 -0
  33. isabl_cli-2.0.0/isabl_cli.egg-info/top_level.txt +2 -0
  34. isabl_cli-2.0.0/setup.cfg +4 -0
  35. isabl_cli-2.0.0/setup.json +51 -0
  36. isabl_cli-2.0.0/setup.py +32 -0
  37. isabl_cli-2.0.0/tests/__init__.py +0 -0
  38. isabl_cli-2.0.0/tests/conftest.py +26 -0
  39. isabl_cli-2.0.0/tests/test_api.py +124 -0
  40. isabl_cli-2.0.0/tests/test_app.py +1254 -0
  41. isabl_cli-2.0.0/tests/test_batch_systems.py +87 -0
  42. isabl_cli-2.0.0/tests/test_cli.py +34 -0
  43. isabl_cli-2.0.0/tests/test_commands.py +341 -0
  44. isabl_cli-2.0.0/tests/test_data.py +450 -0
  45. isabl_cli-2.0.0/tests/test_options.py +28 -0
  46. isabl_cli-2.0.0/tests/test_signals.py +59 -0
  47. isabl_cli-2.0.0/tests/test_testutils.py +24 -0
  48. isabl_cli-2.0.0/tests/test_utils.py +154 -0
  49. isabl_cli-2.0.0/tests/test_validators.py +128 -0
  50. isabl_cli-2.0.0/tests/test_version.py +8 -0
@@ -0,0 +1,23 @@
1
+ # Terms of Use - Academic Research
2
+
3
+ The isabl™ platform was developed and is maintained by the [Papaemmanuil Lab](https://www.mskcc.org/research-areas/labs/elli-papaemmanuil) at [Memorial Sloan Kettering Cancer Center (MSK)](https://mskcc.org). MSK may, from time to time, update these terms of use on the isabl™ platform source code and content (the “Software”).
4
+
5
+ MSK makes no warranties or representations, express or implied, with respect to any of the Software, including as to the present accuracy, completeness, timeliness, adequacy, or usefulness of any of the Software. The Software is not intended as a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your doctor or other qualified health provider with any questions you may have regarding your personal health or medical condition. By using the Software, you agree that MSK will not be liable for any losses or damages arising from your use of or reliance on the Software, or on other websites or information to which the Software may be linked. Inquiries about the Software, permitted uses of the Software, and other licenses to use the Software should be directed to [papaemme@mskcc.org](mailto:papaemme@mskcc.org).
6
+
7
+ Under this academic license, you may use the Software solely for your own personal and noncommercial use or research use in an academic or nonprofit setting, provided that all such uses must reference these Terms of Use and affix the following copyright notice to indicate MSK's rights in connection with your use of the Software:
8
+
9
+ © 2020 Memorial Sloan-Kettering Cancer Center. All rights reserved. Used with permission for research, educational, and noncommercial purposes only.
10
+
11
+ Unless you have signed a license agreement with MSK, you may not use any part of the Software for any other purpose, including:
12
+
13
+ 1. use or incorporation into a commercial product or towards the performance of a commercial service;
14
+ 2. research use in a commercial setting;
15
+ 3. use for patient services; or
16
+ 4. generation of reports in a hospital or other patient care setting.
17
+
18
+ The content and design of Software are protected by U.S. and international copyright laws. The Software or any portion thereof may not be reproduced, distributed, transferred, altered, used to create derivative works, or used in any manner, beyond your own personal and noncommercial use, without prior written consent from Memorial Sloan Kettering Cancer Center.
19
+
20
+ **“Memorial Sloan Kettering Cancer Center”** is a service mark of Memorial Sloan Kettering Cancer Center, 1275 York Avenue, New York, NY 10065. You agree not to use any trademarks or service marks of MSK other than within, and as they appear in, the Software or the copyright notice without MSK’s prior written consent. You further agree that you will not use the Software in any way that causes, or may cause, damage to the reputation, business, or goodwill of MSK.
21
+
22
+
23
+ _© 2022 Memorial Sloan Kettering Cancer Center_
@@ -0,0 +1,9 @@
1
+ global-exclude *.dylib
2
+ global-exclude *.py[cod]
3
+ global-exclude *.so
4
+ global-exclude __pycache__
5
+ include VERSION
6
+ recursive-include isabl_cli *
7
+
8
+ # This is required for source distributions
9
+ include setup.json
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: isabl-cli
3
+ Version: 2.0.0
4
+ Summary: isabl_cli command line client.
5
+ Home-page: https://github.com/papaemmelab/isabl_cli
6
+ Author: Juan S. Medina
7
+ License: BSD
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Natural Language :: English
12
+ Classifier: Operating System :: Unix
13
+ Classifier: Operating System :: POSIX
14
+ Classifier: Topic :: Utilities
15
+ License-File: LICENSE.md
16
+ Requires-Dist: analytics-python>=1.4.0
17
+ Requires-Dist: cached_property>=1.4.2
18
+ Requires-Dist: Click>=7.0.0
19
+ Requires-Dist: munch>=2.3.2
20
+ Requires-Dist: python-slugify>=1.1.2
21
+ Requires-Dist: pytz>=2018.4
22
+ Requires-Dist: PyYAML>=5.3
23
+ Requires-Dist: requests>=2.19.1
24
+ Requires-Dist: six>=1.11.0
25
+ Requires-Dist: packaging>=21.0
26
+ Provides-Extra: test
27
+ Requires-Dist: black>=18.9b0; extra == "test"
28
+ Requires-Dist: coverage>=4.4.2; extra == "test"
29
+ Requires-Dist: factory-boy>=2.11.1; extra == "test"
30
+ Requires-Dist: ipdb>=0.11; extra == "test"
31
+ Requires-Dist: pluggy>=0.7.1; extra == "test"
32
+ Requires-Dist: pydocstyle>=2.1.1; extra == "test"
33
+ Requires-Dist: pylint>=1.8.1; extra == "test"
34
+ Requires-Dist: pytest>=4.5; extra == "test"
35
+ Requires-Dist: pytest-cov>=2.5.1; extra == "test"
36
+ Requires-Dist: pytest-env>=0.6.2; extra == "test"
37
+ Requires-Dist: pytest-sugar>=0.9.1; extra == "test"
38
+ Requires-Dist: tox>=2.9.1; extra == "test"
39
+ Dynamic: author
40
+ Dynamic: classifier
41
+ Dynamic: description
42
+ Dynamic: home-page
43
+ Dynamic: license
44
+ Dynamic: license-file
45
+ Dynamic: provides-extra
46
+ Dynamic: requires-dist
47
+ Dynamic: summary
48
+
49
+ 📘 learn more on `GitHub <https://github.com/papaemmelab/isabl_cli>`_!
@@ -0,0 +1,38 @@
1
+ -- **_Terms of Use: Academic Research_** --
2
+
3
+ # Isabl CLI
4
+
5
+ [![travis badge][travis_badge]][travis_base]
6
+ [![codecov badge][codecov_badge]][codecov_base]
7
+ [![code formatting][black_badge]][black_base]
8
+
9
+ Command Line Client and SDK for the [`Isabl`] infrastructure.
10
+
11
+ ## Documentation
12
+
13
+ Learn about [`Isabl`] in the [documentation].
14
+
15
+ ## Contributing
16
+
17
+ Contributions are welcome and greatly appreciated, check our [contributing guidelines]!
18
+
19
+ ## Credits
20
+
21
+ Isabl was created at [Elli Papaemmanuil's lab].
22
+
23
+ [`isabl`]: https://isabl.io
24
+ [documentation]: https://docs.isabl.io
25
+ [contributing guidelines]: https://docs.isabl.io/contributing-guide
26
+ [elli papaemmanuil's lab]: https://www.mskcc.org/research-areas/labs/elli-papaemmanuil
27
+ [black_badge]: https://img.shields.io/badge/code%20style-black-000000.svg
28
+ [black_base]: https://github.com/ambv/black
29
+ [codecov_badge]: https://codecov.io/gh/papaemmelab/isabl_cli/branch/master/graph/badge.svg?token=ODJ8DU73PH
30
+ [codecov_base]: https://codecov.io/gh/papaemmelab/isabl_cli
31
+ [travis_badge]: https://app.travis-ci.com/papaemmelab/isabl_cli.svg?token=P6GGbmdLPwysz69FFv2X&branch=master
32
+ [travis_base]: https://travis-ci.com/papaemmelab/isabl_cli
33
+
34
+ <!--
35
+ [![pypi badge][pypi_badge]][pypi_base]
36
+ [pypi_badge]: https://img.shields.io/pypi/v/isabl_cli.svg
37
+ [pypi_base]: https://pypi.python.org/pypi/isabl_cli
38
+ -->
@@ -0,0 +1 @@
1
+ 2.0.0
@@ -0,0 +1,25 @@
1
+ """isabl_cli module."""
2
+
3
+ from os.path import abspath
4
+ from os.path import dirname
5
+ from os.path import join
6
+
7
+ from isabl_cli.api import Analysis
8
+ from isabl_cli.api import Assembly
9
+ from isabl_cli.api import Experiment
10
+ from isabl_cli.api import create_instance
11
+ from isabl_cli.api import get_analyses
12
+ from isabl_cli.api import get_experiments
13
+ from isabl_cli.api import get_instance
14
+ from isabl_cli.api import get_instances
15
+ from isabl_cli.api import get_instances_count
16
+ from isabl_cli.api import get_projects
17
+ from isabl_cli.api import get_tree
18
+ from isabl_cli.api import get_trees
19
+ from isabl_cli.api import patch_instance
20
+ from isabl_cli.app import AbstractApplication
21
+ from isabl_cli.exceptions import MissingDataError
22
+ from isabl_cli.exceptions import ValidationError
23
+
24
+ with open(join(abspath(dirname(__file__)), "VERSION"), "r") as version_file:
25
+ __version__ = version_file.read().strip()
@@ -0,0 +1,13 @@
1
+ """
2
+ Entrypoint module, in case you use `python -m isabl_cli`.
3
+
4
+ Why does this file exist, and why __main__? For more info, read:
5
+
6
+ - https://www.python.org/dev/peps/pep-0338/
7
+ - https://docs.python.org/3/using/cmdline.html#cmdoption-m
8
+ """
9
+
10
+ from isabl_cli.cli import main
11
+
12
+ if __name__ == "__main__":
13
+ main() # pylint: disable=no-value-for-parameter