Skip to content

The command line interface and client library for DNAstack services and GA4GH-compatible service, implemented in Python

License

Notifications You must be signed in to change notification settings

DNAstack/dnastack-client

Repository files navigation

dnastack-client

The command line interface and client library for DNAstack services and GA4GH-compatible service, implemented in Python

Tips

To run the client in development mode from the current sources:

  1. Direct Python execution:
   python -m dnastack --help
   python -m dnastack auth login
   python -m dnastack collections list
  1. Using the omics entry point:
   python -m dnastack.omics_cli --help
  1. 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

FAQ

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.

About

The command line interface and client library for DNAstack services and GA4GH-compatible service, implemented in Python

Topics

Resources

License

Stars

Watchers

Forks

Contributors 11

Languages