The command line interface and client library for DNAstack services and GA4GH-compatible service, implemented in Python
- This is a fork from the old repository.
- Copyright 2024 DNAstack Corp.
- All usages are permitted under Apache 2 License.
To run the client in development mode from the current sources:
- Direct Python execution:
python -m dnastack --help
python -m dnastack auth login
python -m dnastack collections list
- Using the omics entry point:
python -m dnastack.omics_cli --help
- IntelliJ/PyCharm run configuration:
- Run the "Omics CLI" configuration in IntelliJ/PyCharm.
- This configuration runs the CLI using
python -m dnastack
to avoid module shadowing issues
Q: Why do I get a ModuleNotFoundError: No module named 'http.client'
error when I run the omics_cli.__main__
function
through IntelliJ/PyCharm?
A: The default run configuration in IntelliJ/PyCharm tries to run the CLI script as a standalone file.
This causes Python to add dnastack/
to sys.path
. Since there is an http/
directory inside dnastack/
, it shadows
Python's built-in http
module. As a result, imports like import http.client
will fail with a ModuleNotFoundError
.
To avoid this, use the python -m dnastack
command or the provided "Omics CLI" run configuration in IntelliJ/PyCharm.