Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
mongo-python-driver/doc/conf.py at main · mongodb/mongo-python-driver · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
mongodb
/
mongo-python-driver
Public
Notifications
You must be signed in to change notification settings
Fork
1.2k
Star
4.4k
Code
Pull requests
16
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
mongo-python-driver
/
doc
/
conf.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
222 lines (166 loc) · 6.69 KB
main
Breadcrumbs
mongo-python-driver
/
doc
/
conf.py
Copy path
Top
File metadata and controls
Code
Blame
222 lines (166 loc) · 6.69 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
#
# PyMongo documentation build configuration file
#
# This file is execfile()d with the current directory set to its containing dir.
from
__future__
import
annotations
import
os
import
sys
from
pathlib
import
Path
sys
.
path
[
0
:
0
]
=
[
Path
(
".."
).
resolve
()]
import
pymongo
# noqa: E402
# -- General configuration -----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions
=
[
"sphinx.ext.autodoc"
,
"sphinx.ext.doctest"
,
"sphinx.ext.coverage"
,
"sphinx.ext.todo"
,
"sphinx.ext.intersphinx"
,
]
# Add optional extensions
try
:
import
sphinxcontrib
.
shellcheck
# noqa: F401
extensions
+=
[
"sphinxcontrib.shellcheck"
]
except
ImportError
:
pass
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
"_templates"
]
# The suffix of source filenames.
source_suffix
=
".rst"
# The master toctree document.
master_doc
=
"index"
# General information about the project.
project
=
"PyMongo"
copyright
=
"MongoDB, Inc. 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc"
html_show_sphinx
=
False
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version
=
pymongo
.
version
# The full version, including alpha/beta/rc tags.
release
=
pymongo
.
version
# List of documents that shouldn't be included in the build.
unused_docs
=
[]
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
exclude_trees
=
[
"_build"
]
# The reST default role (used for this markup: `text`) to use for all documents.
# default_role = None
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
# show_authors = False
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names
=
True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style
=
"sphinx"
# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
# Options for link checking
# The anchors on the rendered markdown page are created after the fact,
# so those link results in a 404.
# wiki.centos.org has been flaky.
# sourceforge.net is giving a 403 error, but is still accessible from the browser.
# Links to release notes in jira give 401 error: unauthorized. PYTHON-5585
linkcheck_ignore
=
[
r"https://wiki.centos.org/[\w/]*"
,
r"https://sourceforge.net/"
,
r"https://jira\.mongodb\.org/secure/ReleaseNote\.jspa.*"
,
]
# Allow for flaky links.
linkcheck_retries
=
3
# Serialize requests to dochub.mongodb.org to avoid rate-limiting (PYTHON-5847).
linkcheck_workers
=
1
# Give slow redirects more time before retrying.
linkcheck_timeout
=
60
# Ignore anchors in links
linkcheck_anchors
=
False
# Pass GitHub token to avoid rate-limiting on GitHub links.
if
github_token
:=
os
.
environ
.
get
(
"GITHUB_TOKEN"
):
linkcheck_request_headers
=
{
"https://github.com/"
: {
"Authorization"
:
f"token
{
github_token
}
"
},
"https://api.github.com/"
: {
"Authorization"
:
f"token
{
github_token
}
"
},
}
# -- Options for extensions ----------------------------------------------------
autoclass_content
=
"init"
autodoc_typehints
=
"description"
doctest_path
=
[
Path
(
".."
).
resolve
()]
doctest_test_doctest_blocks
=
""
doctest_global_setup
=
"""
from pymongo.mongo_client import MongoClient
client = MongoClient()
client.drop_database("doctest_test")
db = client.doctest_test
server_major_version = int(client.server_info()['version'].split()[-1][0])
"""
# -- Options for HTML output ---------------------------------------------------
try
:
import
furo
# noqa: F401
html_theme
=
"furo"
except
ImportError
:
# Theme gratefully vendored from CPython source.
html_theme
=
"pydoctheme"
html_theme_path
=
[
"."
]
html_theme_options
=
{
"collapsiblesidebar"
:
True
,
"googletag"
:
False
}
# Additional static files.
html_static_path
=
[
"static"
]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
# html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
# html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
# html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
# html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
# Custom sidebar templates, maps document names to template names.
# html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
# html_additional_pages = {}
# If true, links to the reST sources are added to the pages.
# html_show_sourcelink = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
# html_use_opensearch = ''
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
# html_file_suffix = ''
# Output file base name for HTML help builder.
htmlhelp_basename
=
"PyMongo"
+
release
.
replace
(
"."
,
"_"
)
# -- Options for LaTeX output --------------------------------------------------
# The paper size ('letter' or 'a4').
# latex_paper_size = 'letter'
# The font size ('10pt', '11pt' or '12pt').
# latex_font_size = '10pt'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents
=
[
(
"index"
,
"PyMongo.tex"
,
"PyMongo Documentation"
,
"Michael Dirolf"
,
"manual"
),
]
# The name of an image file (relative to this directory) to place at the top
# of the title page.
# latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
# latex_use_parts = False
# Additional stuff for the LaTeX preamble.
# latex_preamble = ''
# Documents to append as an appendix to all manuals.
# latex_appendices = []
# If false, no module index is generated.
# latex_use_modindex = True
intersphinx_mapping
=
{
"gevent"
: (
"https://www.gevent.org/"
,
None
),
"py"
: (
"https://docs.python.org/3/"
,
None
),
}
You can’t perform that action at this time.