-
Notifications
You must be signed in to change notification settings - Fork 27
Add cli pathing application #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or 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
Creates a commands module to store the command logic in one location. Moves much settings configuration into the config submodule in commands Attempts to create a clear logically distinction between cli logic and hub logic
Moves the operations_mode decorator into the new module. Adds another decorator for checking the python system path and adding any paths specified in our designated .pth file. This applies for any file that might need access to the hub-parsers
Contributor
Author
pending.api/plugins/chebi
โฏ biothings-cli dataplugin dump
/home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
/home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import TripleDES
[14:40:09] ERROR Invalid plugin 'chebi' because: Error loading manifest: No module named 'hub'
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'hub'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages/biothings/hub/dataplugin/loaders/loader.py", line 71, in invalidate_plugin
raise LoaderException(error)
biothings.hub.dataplugin.loaders.loader.LoaderException: Error loading manifest: No module named 'hub'
โฏ biothings-cli path view
Python System Path(s)
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Index โ Paths โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ /home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/bin โ
โ 1 โ /usr/lib/python312.zip โ
โ 2 โ /usr/lib/python3.12 โ
โ 3 โ /usr/lib/python3.12/lib-dynload โ
โ 4 โ /home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
External Parser Path(s)
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโ
โ Index โ Paths โ On System Path? โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ /home/schaffjr/workspace/plugin-development/pending.api/hub โ False โ
โ 1 โ /home/schaffjr/workspace/plugin-development/pending.api/mychem/src/hub โ False โ
โ 2 โ /home/schaffjr/workspace/plugin-development/pending.api/mygene/src/hub โ False โ
โ 3 โ /home/schaffjr/workspace/plugin-development/pending.api/myvariant/src/hub โ False โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ
โฏ biothings-cli path add
Python System Path(s)
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Index โ Paths โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ /home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/bin โ
โ 1 โ /usr/lib/python312.zip โ
โ 2 โ /usr/lib/python3.12 โ
โ 3 โ /usr/lib/python3.12/lib-dynload โ
โ 4 โ /home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages โ
โ 5 โ /home/schaffjr/workspace/plugin-development/pending.api โ
โ 6 โ /home/schaffjr/workspace/plugin-development/pending.api/mychem/src โ
โ 7 โ /home/schaffjr/workspace/plugin-development/pending.api/mygene/src โ
โ 8 โ /home/schaffjr/workspace/plugin-development/pending.api/myvariant/src โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
External Parser Path(s)
โโโโโโโโโณโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโโโโโโ
โ Index โ Paths โ On System Path? โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ 0 โ /home/schaffjr/workspace/plugin-development/pending.api/hub โ True โ
โ 1 โ /home/schaffjr/workspace/plugin-development/pending.api/mychem/src/hub โ True โ
โ 2 โ /home/schaffjr/workspace/plugin-development/pending.api/mygene/src/hub โ True โ
โ 3 โ /home/schaffjr/workspace/plugin-development/pending.api/myvariant/src/hub โ True โ
โโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโ
โฏ ls -ahl .biothings_hub/path/
total 12K
drwxrwxr-x 2 schaffjr schaffjr 4.0K Nov 13 14:40 .
drwxrwxr-x 4 schaffjr schaffjr 4.0K Nov 13 14:40 ..
-rw-rw-r-- 1 schaffjr schaffjr 260 Nov 13 14:40 biothings_cli.pth
โฏ cat .biothings_hub/path/biothings_cli.pth
/home/schaffjr/workspace/plugin-development/pending.api
/home/schaffjr/workspace/plugin-development/pending.api/mychem/src
/home/schaffjr/workspace/plugin-development/pending.api/mygene/src
/home/schaffjr/workspace/plugin-development/pending.api/myvariant/src
โฏ biothings-cli dataplugin dump
/home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
/home/schaffjr/workspace/plugin-development/.direnv/python-3.12.3/lib/python3.12/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: TripleDES has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.TripleDES and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import TripleDES
โญโ Dump โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ Source: chebi โ
โ Data Folder: /home/schaffjr/workspace/plugin-development/pending.api/plugins/chebi/.biothings_hub/archive/chebi/2025-11-13: โ
โ Data Folder Contents: โ
โ - chebi.obo โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an application to the biothings-cli for manipulating the system path.