healthy-api 0.10.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. healthy_api-0.10.0/AUTHORS.rst +13 -0
  2. healthy_api-0.10.0/CONTRIBUTING.rst +114 -0
  3. healthy_api-0.10.0/HISTORY.rst +8 -0
  4. healthy_api-0.10.0/LICENSE +11 -0
  5. healthy_api-0.10.0/MANIFEST.in +13 -0
  6. healthy_api-0.10.0/PKG-INFO +183 -0
  7. healthy_api-0.10.0/README.rst +143 -0
  8. healthy_api-0.10.0/docs/Makefile +177 -0
  9. healthy_api-0.10.0/docs/_build/html/_static/file.png +0 -0
  10. healthy_api-0.10.0/docs/_build/html/_static/minus.png +0 -0
  11. healthy_api-0.10.0/docs/_build/html/_static/plus.png +0 -0
  12. healthy_api-0.10.0/docs/authors.rst +1 -0
  13. healthy_api-0.10.0/docs/conf.py +278 -0
  14. healthy_api-0.10.0/docs/contributing.rst +1 -0
  15. healthy_api-0.10.0/docs/healthy_api.adapters.rst +37 -0
  16. healthy_api-0.10.0/docs/healthy_api.rst +37 -0
  17. healthy_api-0.10.0/docs/history.rst +1 -0
  18. healthy_api-0.10.0/docs/index.rst +22 -0
  19. healthy_api-0.10.0/docs/installation.rst +57 -0
  20. healthy_api-0.10.0/docs/make.bat +242 -0
  21. healthy_api-0.10.0/docs/modules.rst +7 -0
  22. healthy_api-0.10.0/docs/readme.rst +1 -0
  23. healthy_api-0.10.0/docs/usage.rst +53 -0
  24. healthy_api-0.10.0/pyproject.toml +80 -0
  25. healthy_api-0.10.0/setup.cfg +7 -0
  26. healthy_api-0.10.0/setup.py +3 -0
  27. healthy_api-0.10.0/src/healthy_api/__init__.py +27 -0
  28. healthy_api-0.10.0/src/healthy_api/adapters/__init__.py +0 -0
  29. healthy_api-0.10.0/src/healthy_api/adapters/base_adapter.py +103 -0
  30. healthy_api-0.10.0/src/healthy_api/adapters/fastapi.py +41 -0
  31. healthy_api-0.10.0/src/healthy_api/adapters/flask.py +39 -0
  32. healthy_api-0.10.0/src/healthy_api/git.py +41 -0
  33. healthy_api-0.10.0/src/healthy_api/py.typed +0 -0
  34. healthy_api-0.10.0/src/healthy_api/version.py +9 -0
  35. healthy_api-0.10.0/src/healthy_api.egg-info/PKG-INFO +183 -0
  36. healthy_api-0.10.0/src/healthy_api.egg-info/SOURCES.txt +42 -0
  37. healthy_api-0.10.0/src/healthy_api.egg-info/dependency_links.txt +1 -0
  38. healthy_api-0.10.0/src/healthy_api.egg-info/requires.txt +10 -0
  39. healthy_api-0.10.0/src/healthy_api.egg-info/top_level.txt +2 -0
  40. healthy_api-0.10.0/tests/test_fastapi.py +119 -0
  41. healthy_api-0.10.0/tests/test_flask.py +116 -0
  42. healthy_api-0.10.0/tests/test_git.py +18 -0
  43. healthy_api-0.10.0/tests/version/test_version.py +31 -0
@@ -0,0 +1,13 @@
1
+ =======
2
+ Credits
3
+ =======
4
+
5
+ Development Lead
6
+ ----------------
7
+
8
+ * Herman Singh <kartstig@gmail.com>
9
+
10
+ Contributors
11
+ ------------
12
+
13
+ None yet. Why not be the first?
@@ -0,0 +1,114 @@
1
+ .. highlight:: shell
2
+
3
+ ============
4
+ Contributing
5
+ ============
6
+
7
+ Contributions are welcome, and they are greatly appreciated! Every
8
+ little bit helps, and credit will always be given.
9
+
10
+ You can contribute in many ways:
11
+
12
+ Types of Contributions
13
+ ----------------------
14
+
15
+ Report Bugs
16
+ ~~~~~~~~~~~
17
+
18
+ Report bugs at https://github.com/KartStig/healthy_api/issues.
19
+
20
+ If you are reporting a bug, please include:
21
+
22
+ * Your operating system name and version.
23
+ * Any details about your local setup that might be helpful in troubleshooting.
24
+ * Detailed steps to reproduce the bug.
25
+
26
+ Fix Bugs
27
+ ~~~~~~~~
28
+
29
+ Look through the GitHub issues for bugs. Anything tagged with "bug"
30
+ and "help wanted" is open to whoever wants to implement it.
31
+
32
+ Implement Features
33
+ ~~~~~~~~~~~~~~~~~~
34
+
35
+ Look through the GitHub issues for features. Anything tagged with "enhancement"
36
+ and "help wanted" is open to whoever wants to implement it.
37
+
38
+ Write Documentation
39
+ ~~~~~~~~~~~~~~~~~~~
40
+
41
+ Healthy-API could always use more documentation, whether as part of the
42
+ official Healthy-API docs, in docstrings, or even on the web in blog posts,
43
+ articles, and such.
44
+
45
+ Submit Feedback
46
+ ~~~~~~~~~~~~~~~
47
+
48
+ The best way to send feedback is to file an issue at https://github.com/KartStig/healthy_api/issues.
49
+
50
+ If you are proposing a feature:
51
+
52
+ * Explain in detail how it would work.
53
+ * Keep the scope as narrow as possible, to make it easier to implement.
54
+ * Remember that this is a volunteer-driven project, and that contributions
55
+ are welcome :)
56
+
57
+ Get Started!
58
+ ------------
59
+
60
+ Ready to contribute? Here's how to set up `healthy_api` for local development.
61
+
62
+ 1. Fork the `healthy_api` repo on GitHub.
63
+ 2. Clone your fork locally::
64
+
65
+ $ git clone git@github.com:your_name_here/healthy_api.git
66
+
67
+ 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
68
+
69
+ $ mkvirtualenv healthy_api
70
+ $ cd healthy_api/
71
+ $ python setup.py develop
72
+
73
+ 4. Create a branch for local development::
74
+
75
+ $ git checkout -b name-of-your-bugfix-or-feature
76
+
77
+ Now you can make your changes locally.
78
+
79
+ 5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
80
+
81
+ $ flake8 healthy_api tests
82
+ $ python setup.py test or py.test
83
+ $ tox
84
+
85
+ To get flake8 and tox, just pip install them into your virtualenv.
86
+
87
+ 6. Commit your changes and push your branch to GitHub::
88
+
89
+ $ git add .
90
+ $ git commit -m "Your detailed description of your changes."
91
+ $ git push origin name-of-your-bugfix-or-feature
92
+
93
+ 7. Submit a pull request through the GitHub website.
94
+
95
+ Pull Request Guidelines
96
+ -----------------------
97
+
98
+ Before you submit a pull request, check that it meets these guidelines:
99
+
100
+ 1. The pull request should include tests.
101
+ 2. If the pull request adds functionality, the docs should be updated. Put
102
+ your new functionality into a function with a docstring, and add the
103
+ feature to the list in README.rst.
104
+ 3. The pull request should work for Python 2.6, 2.7, 3.3, 3.4 and 3.5, and for PyPy. Check
105
+ https://travis-ci.org/KartStig/healthy_api/pull_requests
106
+ and make sure that the tests pass for all supported Python versions.
107
+
108
+ Tips
109
+ ----
110
+
111
+ To run a subset of tests::
112
+
113
+ $ py.test tests.test_healthy_api
114
+
@@ -0,0 +1,8 @@
1
+ =======
2
+ History
3
+ =======
4
+
5
+ 0.9.0 (2023-10-01)
6
+ ------------------
7
+
8
+ * First release on PyPI.
@@ -0,0 +1,11 @@
1
+
2
+ MIT License
3
+
4
+ Copyright (c) 2017, Herman Paul Singh
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
+
8
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
+
@@ -0,0 +1,13 @@
1
+
2
+ include AUTHORS.rst
3
+
4
+ include CONTRIBUTING.rst
5
+ include HISTORY.rst
6
+ include LICENSE
7
+ include README.rst
8
+
9
+ recursive-include tests *
10
+ recursive-exclude * __pycache__
11
+ recursive-exclude * *.py[co]
12
+
13
+ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.1
2
+ Name: healthy_api
3
+ Version: 0.10.0
4
+ Summary: Healthy-API adds a healthcheck endpoint for all web frameworks.
5
+ Author-email: Herman Singh <kartstig@gmail.com>
6
+ Maintainer-email: Herman Singh <kartstig@gmail.com>
7
+ License: MIT License
8
+ Project-URL: Donate, https://github.com/sponsors/Kartstig/dashboard
9
+ Project-URL: Documentation, https://readthedocs.org/projects/healthy_api
10
+ Project-URL: Source Code, https://github.com/Kartstig/healthy_api
11
+ Project-URL: Issue Tracker, https://github.com/Kartstig/healthy_api/issues
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Environment :: Web Environment
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: MacOS :: MacOS X
18
+ Classifier: Operating System :: Microsoft :: Windows
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3.5
21
+ Classifier: Programming Language :: Python :: 3.6
22
+ Classifier: Programming Language :: Python :: 3.7
23
+ Classifier: Programming Language :: Python :: 3.8
24
+ Classifier: Programming Language :: Python :: 3.9
25
+ Classifier: Programming Language :: Python :: 3.10
26
+ Classifier: Programming Language :: Python :: 3.11
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Classifier: Typing :: Typed
29
+ Requires-Python: >3.7
30
+ Description-Content-Type: text/x-rst
31
+ License-File: LICENSE
32
+ License-File: AUTHORS.rst
33
+ Provides-Extra: flask
34
+ Requires-Dist: Flask>=0.12; extra == "flask"
35
+ Provides-Extra: fastapi
36
+ Requires-Dist: fastapi; extra == "fastapi"
37
+ Provides-Extra: all
38
+ Requires-Dist: Flask>=0.12; extra == "all"
39
+ Requires-Dist: fastapi; extra == "all"
40
+
41
+ ===============================
42
+ Healthy-API
43
+ ===============================
44
+
45
+ Healthchecks for Any Framework (FastAPI/Flask)
46
+
47
+ .. _FastAPI: https://github.com/tiangolo/fastapi/
48
+
49
+ .. _Flask: https://github.com/pallets/flask/
50
+
51
+ .. image:: https://img.shields.io/pypi/v/Healthy-API.svg
52
+ :target: https://pypi.python.org/pypi/Healthy-API
53
+ :alt: PyPI
54
+
55
+ .. image:: https://github.com/Kartstig/healthy_api/actions/workflows/pytest.yml/badge.svg?branch=master
56
+ :target: https://github.com/Kartstig/healthy_api/actions/workflows/pytest.yml
57
+ :alt: GitHub Actions
58
+
59
+ .. image:: https://readthedocs.org/projects/healthy-api/badge/?version=latest
60
+ :target: https://healthy-api.readthedocs.io/en/latest/?badge=latest
61
+ :alt: Documentation Status
62
+
63
+ .. image:: https://codecov.io/gh/Kartstig/healthy_api/graph/badge.svg?token=mTG6WudJwK
64
+ :target: https://codecov.io/gh/Kartstig/healthy_api
65
+ :alt: Codecov
66
+
67
+ .. image:: https://img.shields.io/pypi/dm/Healthy-API
68
+ :alt: PyPI - Downloads
69
+
70
+ Healthy-API is designed to work with both Flask and FastAPI. Healthy-API is really simple
71
+ to set up. Healthy-API will provide an enpoint at `/_health` where you will get a JSON response
72
+ of the system's uptime, current git revision, version, and function you want.
73
+
74
+ You can also add in extra checks by passing in a list of checks to the
75
+ constructor.
76
+
77
+ Installing
78
+ ----------
79
+
80
+ Install and update using `pip`\:
81
+
82
+ .. code-block:: text
83
+
84
+ pip install -U "healthy-api[flask]"
85
+
86
+ or
87
+
88
+ .. code-block:: text
89
+
90
+ pip install -U "healthy-api[fastapi]"
91
+
92
+ FastAPI Configuration
93
+ ---------------------
94
+
95
+ .. code-block:: python
96
+
97
+ from fastapi import FastAPI
98
+ from healthy_api.adapters.fastapi import FlaskAdapter as HealthyApi
99
+
100
+ app = FastAPI(__name__)
101
+
102
+ def db_check():
103
+ """Database"""
104
+ try:
105
+ with get_session_ctx() as session:
106
+ (res,) = session.execute(text("SELECT 1")).fetchone()
107
+ return bool(res == 1)
108
+ except Exception as e:
109
+ logger.error(f"Unable to connect to database: {e}")
110
+ return False
111
+
112
+ HealthyApi(app, extra_checks=[db_check])
113
+
114
+
115
+ Flask Configuration
116
+ -------------------
117
+
118
+ .. code-block:: python
119
+
120
+ from Flask import Flask
121
+ from healthy_api.adapters.flask import Flask as HealthyApi
122
+
123
+ app = Flask(__name__)
124
+
125
+ HealthyApi(app)
126
+
127
+ Or if you can use the `init_app` function:
128
+
129
+ .. code-block:: python
130
+
131
+ from Flask import Flask
132
+ from healthy_api.adapters.flask import Flask as HealthyApi
133
+
134
+ app = Flask(__name__)
135
+
136
+ healthy_api = HealthyApi()
137
+ healthy_api.init_app(app)
138
+
139
+ * Free software: MIT license
140
+ * Documentation: https://healthy_api.readthedocs.io.
141
+
142
+
143
+ Features
144
+ --------
145
+
146
+ * Current Git Commit
147
+ * Current Version
148
+ * Accepts custom functions
149
+
150
+
151
+ Configuration
152
+ -------------
153
+
154
+ +---------------------+---------------------------------+------+------------+
155
+ | Config Key | Description | Type | Default |
156
+ +=====================+=================================+======+============+
157
+ | HAPI_ENABLE | Enable/Disable Healthy-API | bool | True |
158
+ +---------------------+---------------------------------+------+------------+
159
+ | HAPI_ENABLE_GIT | Enable/Disable Git Stats | bool | True |
160
+ +---------------------+---------------------------------+------+------------+
161
+ | HAPI_ENABLE_VERSION | Enable/Disable Version Stats | bool | True |
162
+ +---------------------+---------------------------------+------+------------+
163
+ | HAPI_ENDPOINT | Custom Route | str | /_health |
164
+ +---------------------+---------------------------------+------+------------+
165
+
166
+
167
+ Sponsorship
168
+ -----------
169
+
170
+ Put your logo here! `Become a sponsor`_ and support this project!
171
+
172
+ .. _Become a sponsor: https://github.com/sponsors/Kartstig
173
+
174
+
175
+
176
+ Credits
177
+ -------
178
+
179
+ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
180
+
181
+ .. _Cookiecutter: https://github.com/audreyr/cookiecutter
182
+ .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
183
+
@@ -0,0 +1,143 @@
1
+ ===============================
2
+ Healthy-API
3
+ ===============================
4
+
5
+ Healthchecks for Any Framework (FastAPI/Flask)
6
+
7
+ .. _FastAPI: https://github.com/tiangolo/fastapi/
8
+
9
+ .. _Flask: https://github.com/pallets/flask/
10
+
11
+ .. image:: https://img.shields.io/pypi/v/Healthy-API.svg
12
+ :target: https://pypi.python.org/pypi/Healthy-API
13
+ :alt: PyPI
14
+
15
+ .. image:: https://github.com/Kartstig/healthy_api/actions/workflows/pytest.yml/badge.svg?branch=master
16
+ :target: https://github.com/Kartstig/healthy_api/actions/workflows/pytest.yml
17
+ :alt: GitHub Actions
18
+
19
+ .. image:: https://readthedocs.org/projects/healthy-api/badge/?version=latest
20
+ :target: https://healthy-api.readthedocs.io/en/latest/?badge=latest
21
+ :alt: Documentation Status
22
+
23
+ .. image:: https://codecov.io/gh/Kartstig/healthy_api/graph/badge.svg?token=mTG6WudJwK
24
+ :target: https://codecov.io/gh/Kartstig/healthy_api
25
+ :alt: Codecov
26
+
27
+ .. image:: https://img.shields.io/pypi/dm/Healthy-API
28
+ :alt: PyPI - Downloads
29
+
30
+ Healthy-API is designed to work with both Flask and FastAPI. Healthy-API is really simple
31
+ to set up. Healthy-API will provide an enpoint at `/_health` where you will get a JSON response
32
+ of the system's uptime, current git revision, version, and function you want.
33
+
34
+ You can also add in extra checks by passing in a list of checks to the
35
+ constructor.
36
+
37
+ Installing
38
+ ----------
39
+
40
+ Install and update using `pip`\:
41
+
42
+ .. code-block:: text
43
+
44
+ pip install -U "healthy-api[flask]"
45
+
46
+ or
47
+
48
+ .. code-block:: text
49
+
50
+ pip install -U "healthy-api[fastapi]"
51
+
52
+ FastAPI Configuration
53
+ ---------------------
54
+
55
+ .. code-block:: python
56
+
57
+ from fastapi import FastAPI
58
+ from healthy_api.adapters.fastapi import FlaskAdapter as HealthyApi
59
+
60
+ app = FastAPI(__name__)
61
+
62
+ def db_check():
63
+ """Database"""
64
+ try:
65
+ with get_session_ctx() as session:
66
+ (res,) = session.execute(text("SELECT 1")).fetchone()
67
+ return bool(res == 1)
68
+ except Exception as e:
69
+ logger.error(f"Unable to connect to database: {e}")
70
+ return False
71
+
72
+ HealthyApi(app, extra_checks=[db_check])
73
+
74
+
75
+ Flask Configuration
76
+ -------------------
77
+
78
+ .. code-block:: python
79
+
80
+ from Flask import Flask
81
+ from healthy_api.adapters.flask import Flask as HealthyApi
82
+
83
+ app = Flask(__name__)
84
+
85
+ HealthyApi(app)
86
+
87
+ Or if you can use the `init_app` function:
88
+
89
+ .. code-block:: python
90
+
91
+ from Flask import Flask
92
+ from healthy_api.adapters.flask import Flask as HealthyApi
93
+
94
+ app = Flask(__name__)
95
+
96
+ healthy_api = HealthyApi()
97
+ healthy_api.init_app(app)
98
+
99
+ * Free software: MIT license
100
+ * Documentation: https://healthy_api.readthedocs.io.
101
+
102
+
103
+ Features
104
+ --------
105
+
106
+ * Current Git Commit
107
+ * Current Version
108
+ * Accepts custom functions
109
+
110
+
111
+ Configuration
112
+ -------------
113
+
114
+ +---------------------+---------------------------------+------+------------+
115
+ | Config Key | Description | Type | Default |
116
+ +=====================+=================================+======+============+
117
+ | HAPI_ENABLE | Enable/Disable Healthy-API | bool | True |
118
+ +---------------------+---------------------------------+------+------------+
119
+ | HAPI_ENABLE_GIT | Enable/Disable Git Stats | bool | True |
120
+ +---------------------+---------------------------------+------+------------+
121
+ | HAPI_ENABLE_VERSION | Enable/Disable Version Stats | bool | True |
122
+ +---------------------+---------------------------------+------+------------+
123
+ | HAPI_ENDPOINT | Custom Route | str | /_health |
124
+ +---------------------+---------------------------------+------+------------+
125
+
126
+
127
+ Sponsorship
128
+ -----------
129
+
130
+ Put your logo here! `Become a sponsor`_ and support this project!
131
+
132
+ .. _Become a sponsor: https://github.com/sponsors/Kartstig
133
+
134
+
135
+
136
+ Credits
137
+ -------
138
+
139
+ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
140
+
141
+ .. _Cookiecutter: https://github.com/audreyr/cookiecutter
142
+ .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
143
+
@@ -0,0 +1,177 @@
1
+ # Makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = sphinx-build
7
+ PAPER =
8
+ BUILDDIR = _build
9
+
10
+ # User-friendly check for sphinx-build
11
+ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12
+ $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13
+ endif
14
+
15
+ # Internal variables.
16
+ PAPEROPT_a4 = -D latex_paper_size=a4
17
+ PAPEROPT_letter = -D latex_paper_size=letter
18
+ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
19
+ # the i18n builder cannot share the environment and doctrees with the others
20
+ I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
21
+
22
+ .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
23
+
24
+ help:
25
+ @echo "Please use \`make <target>' where <target> is one of"
26
+ @echo " html to make standalone HTML files"
27
+ @echo " dirhtml to make HTML files named index.html in directories"
28
+ @echo " singlehtml to make a single large HTML file"
29
+ @echo " pickle to make pickle files"
30
+ @echo " json to make JSON files"
31
+ @echo " htmlhelp to make HTML files and a HTML help project"
32
+ @echo " qthelp to make HTML files and a qthelp project"
33
+ @echo " devhelp to make HTML files and a Devhelp project"
34
+ @echo " epub to make an epub"
35
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
36
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
37
+ @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
38
+ @echo " text to make text files"
39
+ @echo " man to make manual pages"
40
+ @echo " texinfo to make Texinfo files"
41
+ @echo " info to make Texinfo files and run them through makeinfo"
42
+ @echo " gettext to make PO message catalogs"
43
+ @echo " changes to make an overview of all changed/added/deprecated items"
44
+ @echo " xml to make Docutils-native XML files"
45
+ @echo " pseudoxml to make pseudoxml-XML files for display purposes"
46
+ @echo " linkcheck to check all external links for integrity"
47
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
48
+
49
+ clean:
50
+ rm -rf $(BUILDDIR)/*
51
+
52
+ html:
53
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
54
+ @echo
55
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
56
+
57
+ dirhtml:
58
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
59
+ @echo
60
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
61
+
62
+ singlehtml:
63
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
64
+ @echo
65
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
66
+
67
+ pickle:
68
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
69
+ @echo
70
+ @echo "Build finished; now you can process the pickle files."
71
+
72
+ json:
73
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
74
+ @echo
75
+ @echo "Build finished; now you can process the JSON files."
76
+
77
+ htmlhelp:
78
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
79
+ @echo
80
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
81
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
82
+
83
+ qthelp:
84
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
85
+ @echo
86
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
87
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
88
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/healthy_api.qhcp"
89
+ @echo "To view the help file:"
90
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/healthy_api.qhc"
91
+
92
+ devhelp:
93
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
94
+ @echo
95
+ @echo "Build finished."
96
+ @echo "To view the help file:"
97
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/healthy_api"
98
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/healthy_api"
99
+ @echo "# devhelp"
100
+
101
+ epub:
102
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
103
+ @echo
104
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
105
+
106
+ latex:
107
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
108
+ @echo
109
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
110
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
111
+ "(use \`make latexpdf' here to do that automatically)."
112
+
113
+ latexpdf:
114
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
115
+ @echo "Running LaTeX files through pdflatex..."
116
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf
117
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
118
+
119
+ latexpdfja:
120
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
121
+ @echo "Running LaTeX files through platex and dvipdfmx..."
122
+ $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
123
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
124
+
125
+ text:
126
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
127
+ @echo
128
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
129
+
130
+ man:
131
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
132
+ @echo
133
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
134
+
135
+ texinfo:
136
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
137
+ @echo
138
+ @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
139
+ @echo "Run \`make' in that directory to run these through makeinfo" \
140
+ "(use \`make info' here to do that automatically)."
141
+
142
+ info:
143
+ $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
144
+ @echo "Running Texinfo files through makeinfo..."
145
+ make -C $(BUILDDIR)/texinfo info
146
+ @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
147
+
148
+ gettext:
149
+ $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
150
+ @echo
151
+ @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
152
+
153
+ changes:
154
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
155
+ @echo
156
+ @echo "The overview file is in $(BUILDDIR)/changes."
157
+
158
+ linkcheck:
159
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
160
+ @echo
161
+ @echo "Link check complete; look for any errors in the above output " \
162
+ "or in $(BUILDDIR)/linkcheck/output.txt."
163
+
164
+ doctest:
165
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
166
+ @echo "Testing of doctests in the sources finished, look at the " \
167
+ "results in $(BUILDDIR)/doctest/output.txt."
168
+
169
+ xml:
170
+ $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
171
+ @echo
172
+ @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
173
+
174
+ pseudoxml:
175
+ $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
176
+ @echo
177
+ @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
@@ -0,0 +1 @@
1
+ .. include:: ../AUTHORS.rst