-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adding missing doc strings for biothings.cli apidocs
- Loading branch information
Showing
6 changed files
with
127 additions
and
56 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
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 |
---|---|---|
@@ -1,26 +1,47 @@ | ||
######################################## | ||
# DATA PLUGIN CONFIGURATION VARIABLES # | ||
######################################## | ||
# This is a minimal config.py file that will be used when developing a new data plugin without run a Biothing Hub instance. | ||
# Typicaly, you don't need to include a config.py module to run the BioThings CLI tool to | ||
# test your data plugin locally. A default config module is setup at the launch of the CLI. | ||
# However, you can always include an additional config.py module to override the default | ||
# config settings, e.g. alternative DATA_ARCHIVE_ROOT, HUB_DB_BACKEND for different db path. | ||
# The available config settings can be found at biothings.hub.default_config module (note that | ||
# not all settings are relevant to the CLI) | ||
|
||
# This file should be place at the same directory with developed data plugin: | ||
|
||
# When using dataplugin-hub sub commands | ||
# $ ls -al | ||
# config.py | ||
# data_archive_root | ||
# hub_db_folder | ||
# your_data_plugin | ||
|
||
import os | ||
# .biothings_hub | ||
# .data_src_database | ||
# archive | ||
# biothings_hubdb | ||
# your_data_plugin_folder | ||
# manifest.json | ||
# parser.py | ||
|
||
from biothings.utils.loggers import setup_default_log | ||
from biothings.web.settings.default import * | ||
# When using dataplugin sub commands inside a data plugin folder | ||
# $ ls -al | ||
# config.py | ||
# .biothings_hub | ||
# .data_src_database | ||
# archive | ||
# biothings_hubdb | ||
# manifest.json | ||
# parser.py | ||
|
||
DATA_SRC_DATABASE = 'data_src_database' | ||
DATA_SRC_DUMP_COLLECTION = 'data_src_dump_collection' | ||
DATA_SRC_DATABASE = '.data_src_database' | ||
DATA_HUB_DB_DATABASE = 'data_hub_db_database' | ||
HUB_DB_BACKEND = { | ||
"module": "biothings.utils.sqlite3", | ||
"sqlite_db_folder": "./hub_db_folder" | ||
"sqlite_db_folder": ".biothings_hub"" | ||
} | ||
DATA_ARCHIVE_ROOT = "./data_archive_root" | ||
LOG_FOLDER = os.path.join(DATA_ARCHIVE_ROOT, "logs") | ||
logger = setup_default_log("hub", LOG_FOLDER) | ||
DATA_ARCHIVE_ROOT = ".biothings_hub/archive" | ||
|
||
# Add new entry in DOCKER_CONFIG if you want to use a different docker host for your | ||
# docker-based data plugin, other than the default docker host running on your localhost. | ||
# DOCKER_CONFIG = { | ||
# "docker1": {"tls_cert_path": None, "tls_key_path": None, "client_url": ""}, | ||
# "localhost": {"client_url": "unix://var/run/docker.sock"}, | ||
# } |
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
Oops, something went wrong.