-
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.
update docs by revising organization and content
- Loading branch information
Jerry
committed
Nov 7, 2021
1 parent
ba71735
commit 50e6c2f
Showing
17 changed files
with
85 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
""" | ||
Generate a customized BioThings API given a supported database. | ||
biothings.web.connections: Elasticsearch, MongoDB and SQL database access. | ||
biothings.web.services & query: Data services built on top of connections. | ||
biothings.web.applications: HTTP web application over data services above. | ||
biothings.web.launcher: Launch web applications in different environments. | ||
biothings.web.applications: HTTP web application over data services below. | ||
biothings.web.services & query: Data services built on top of connections. | ||
biothings.web.connections: Elasticsearch, MongoDB and SQL database access. | ||
""" |
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,8 +0,0 @@ | ||
# from biothings.web import query | ||
|
||
# from an architecture perspective, | ||
# query module belongs to this module as one of the data services, | ||
# built on top of the biothings.web.connections layer, | ||
# however, due to the complexity of the query module, | ||
# it is put in the same level of this module | ||
# to simplify the folder structure. | ||
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
"""A Programmatic Query API supporting Biothings Query Syntax. | ||
From an architecture perspective, :py:mod:`biothings.web.query` is one of | ||
the data services, built on top of the :py:mod:`biothings.web.connections` | ||
layer, however, due to the complexity of the module, it is escalated one | ||
level in organization to simplify the overall folder structure. The features | ||
are available in `biothings.web.services.query` namespace via import. | ||
""" | ||
|
||
from biothings.web.query import * |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
""" | ||
The "templates" folder stores HTML templates for native biothings | ||
web handlers and is structured as a dummy module to facilitate location | ||
resolution. Typically, ``biothings.web.templates.__path__[0]`` returns | ||
a string representing the location of this folder on the file system. | ||
This folder is intended to be used internally by the SDK developer. | ||
""" |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
biothings.web.applications | ||
=============================== | ||
|
||
.. automodule:: biothings.web.applications | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
biothings.web.connections | ||
=============================== | ||
|
||
.. automodule:: biothings.web.connections | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Additionally, you can reuse connecions initialized with the same | ||
parameters by getting it from the connection pools every time. | ||
Here's the connection pool interface signature: | ||
|
||
.. autoclass:: biothings.web.connections._ClientPool | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
The module has already initialized connection pools for each supported | ||
databases. Directly access these pools without creating by yourselves. | ||
|
||
.. autodata:: es | ||
.. autodata:: sql | ||
.. autodata:: mongo |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
biothings.web.launcher | ||
=============================== | ||
|
||
.. automodule:: biothings.web.launcher | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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
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