crate 1.0.0.dev0__tar.gz → 1.0.0.dev1__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.
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/PKG-INFO +29 -31
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/README.rst +24 -11
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/dataframe.rst.txt +2 -2
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/getting-started.rst.txt +38 -3
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/index.rst.txt +27 -10
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/setup.cfg +0 -3
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/__init__.py +2 -2
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/exceptions.py +5 -0
- crate-1.0.0.dev1/src/crate/client/test_exceptions.py +14 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate.egg-info/PKG-INFO +29 -31
- crate-1.0.0.dev1/src/crate.egg-info/SOURCES.txt +70 -0
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Babel-2.11.0.dist-info/entry_points.txt +0 -20
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Babel-2.11.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Jinja2-3.0.3.dist-info/entry_points.txt +0 -3
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Jinja2-3.0.3.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/MarkupSafe-2.1.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Pygments-2.13.0.dist-info/entry_points.txt +0 -2
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/Pygments-2.13.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/alabaster-0.7.12.dist-info/LICENSE.txt +0 -34
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/alabaster-0.7.12.dist-info/entry_points.txt +0 -3
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/alabaster-0.7.12.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/certifi-2022.12.7.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/charset_normalizer-2.1.1.dist-info/entry_points.txt +0 -2
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/charset_normalizer-2.1.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/colorama-0.4.6.dist-info/licenses/LICENSE.txt +0 -27
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/crate/theme/rtd/crate/static/bundle/main.js.LICENSE.txt +0 -70
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/README.txt +0 -17
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamsa.txt +0 -162
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamsb.txt +0 -126
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamsc.txt +0 -29
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamsn.txt +0 -96
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamso.txt +0 -62
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isoamsr.txt +0 -191
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isobox.txt +0 -46
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isocyr1.txt +0 -73
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isocyr2.txt +0 -32
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isodia.txt +0 -20
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isogrk1.txt +0 -55
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isogrk2.txt +0 -26
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isogrk3.txt +0 -52
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isogrk4-wide.txt +0 -49
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isogrk4.txt +0 -8
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isolat1.txt +0 -68
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isolat2.txt +0 -128
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomfrk-wide.txt +0 -58
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomfrk.txt +0 -11
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomopf-wide.txt +0 -32
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomopf.txt +0 -13
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomscr-wide.txt +0 -58
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isomscr.txt +0 -17
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isonum.txt +0 -82
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isopub.txt +0 -90
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/isotech.txt +0 -168
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/mmlalias.txt +0 -554
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/mmlextra-wide.txt +0 -113
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/mmlextra.txt +0 -87
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/s5defs.txt +0 -68
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/xhtml1-lat1.txt +0 -102
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/xhtml1-special.txt +0 -37
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/parsers/rst/include/xhtml1-symbol.txt +0 -130
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/writers/html4css1/template.txt +0 -8
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/writers/html5_polyglot/template.txt +0 -8
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/writers/pep_html/template.txt +0 -29
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils/writers/s5_html/themes/README.txt +0 -6
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils-0.16.dist-info/COPYING.txt +0 -137
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/docutils-0.16.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/imagesize-1.4.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/importlib_metadata-5.2.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/livereload-2.6.3.dist-info/entry_points.txt +0 -2
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/livereload-2.6.3.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pip/_vendor/vendor.txt +0 -23
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pip-22.3.1.dist-info/LICENSE.txt +0 -20
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pip-22.3.1.dist-info/entry_points.txt +0 -4
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pip-22.3.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pipdeptree-2.3.3.dist-info/entry_points.txt +0 -2
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pytz-2022.7.dist-info/LICENSE.txt +0 -19
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/pytz-2022.7.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/requests-2.28.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/setuptools-58.1.0.dist-info/entry_points.txt +0 -56
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/setuptools-58.1.0.dist-info/top_level.txt +0 -3
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/six-1.16.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/snowballstemmer-2.2.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinx-5.3.0.dist-info/entry_points.txt +0 -9
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinx_autobuild-2021.3.14.dist-info/entry_points.txt +0 -3
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinx_copybutton-0.5.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinx_sitemap-2.4.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_applehelp-1.0.2.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_applehelp-1.0.2.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_devhelp-1.0.2.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_devhelp-1.0.2.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_htmlhelp-2.0.0.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_htmlhelp-2.0.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_jsmath-1.0.1.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_jsmath-1.0.1.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info/SOURCES.txt +0 -14
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info/installed-files.txt +0 -10
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info/requires.txt +0 -6
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_qthelp-1.0.3.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_qthelp-1.0.3.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_serializinghtml-1.1.5.dist-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_serializinghtml-1.1.5.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxext_opengraph-0.7.4.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/tornado/test/static_foo.txt +0 -2
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/tornado-6.2.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/urllib3-1.26.13.dist-info/LICENSE.txt +0 -21
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/urllib3-1.26.13.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/zipp-3.11.0.dist-info/top_level.txt +0 -1
- crate-1.0.0.dev0/docs/.crate-docs/docs/_extra/robots.txt +0 -2
- crate-1.0.0.dev0/src/crate.egg-info/SOURCES.txt +0 -171
- crate-1.0.0.dev0/src/crate.egg-info/dependency_links.txt +0 -1
- crate-1.0.0.dev0/src/crate.egg-info/namespace_packages.txt +0 -1
- crate-1.0.0.dev0/src/crate.egg-info/top_level.txt +0 -1
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/CONTRIBUTING.rst +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/DEVELOP.rst +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/LICENSE +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/MANIFEST.in +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/NOTICE +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/appendices/data-types.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/appendices/index.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/backlog.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/blobs.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/blob.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/client.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/connection.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/cursor.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/http.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/https.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/index.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/advanced-querying.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/crud.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/inspection-reflection.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/by-example/sqlalchemy/working-with-types.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/connect.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/data-types.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/getting-started.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/index-all.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/other-options.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/query.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_sources/sqlalchemy.rst.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/_static/bundle/main.js.LICENSE.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/output.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/.build/robots.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/common-build/requirements.txt +0 -0
- {crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/tornado/test/static → crate-1.0.0.dev1/docs/.crate-docs/docs/_extra}/robots.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/docs/requirements.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/.crate-docs/helpers/preview/etc/requirements.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/_extra/robots.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/docs/requirements.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/pyproject.toml +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/setup.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/__init__.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/_pep440.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/blob.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/connection.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/converter.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/cursor.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/http.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/pki/readme.rst +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/test_connection.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/test_cursor.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/test_http.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/client/test_util.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/__init__.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/layer.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/settings.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/test_datetime_old.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/test_layer.py +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate/testing/util.py +0 -0
- {crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/sphinxcontrib_plantuml-0.24.1-py3.9.egg-info → crate-1.0.0.dev1/src/crate.egg-info}/dependency_links.txt +0 -0
- {crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/crate_docs_theme-0.26.3.dist-info → crate-1.0.0.dev1/src/crate.egg-info}/namespace_packages.txt +0 -0
- {crate-1.0.0.dev0 → crate-1.0.0.dev1}/src/crate.egg-info/requires.txt +0 -0
- {crate-1.0.0.dev0/docs/.crate-docs/.venv/lib/python3.9/site-packages/crate_docs_theme-0.26.3.dist-info → crate-1.0.0.dev1/src/crate.egg-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: crate
|
3
|
-
Version: 1.0.0.
|
3
|
+
Version: 1.0.0.dev1
|
4
4
|
Summary: CrateDB Python Client
|
5
5
|
Home-page: https://github.com/crate/crate-python
|
6
6
|
Author: Crate.io
|
@@ -26,27 +26,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
26
26
|
Classifier: Topic :: Database
|
27
27
|
Requires-Python: >=3.6
|
28
28
|
Description-Content-Type: text/x-rst
|
29
|
-
License-File: LICENSE
|
30
|
-
License-File: NOTICE
|
31
|
-
Requires-Dist: urllib3<2.3
|
32
|
-
Requires-Dist: verlib2==0.2.0
|
33
29
|
Provides-Extra: test
|
34
|
-
Requires-Dist: tox<5,>=3; extra == "test"
|
35
|
-
Requires-Dist: zope.testing<6,>=4; extra == "test"
|
36
|
-
Requires-Dist: zope.testrunner<7,>=5; extra == "test"
|
37
|
-
Requires-Dist: zc.customdoctests<2,>=1.0.1; extra == "test"
|
38
|
-
Requires-Dist: backports.zoneinfo<1; python_version < "3.9" and extra == "test"
|
39
|
-
Requires-Dist: certifi; extra == "test"
|
40
|
-
Requires-Dist: createcoverage<2,>=1; extra == "test"
|
41
|
-
Requires-Dist: dask[dataframe]; extra == "test"
|
42
|
-
Requires-Dist: stopit<2,>=1.1.2; extra == "test"
|
43
|
-
Requires-Dist: flake8<8,>=4; extra == "test"
|
44
|
-
Requires-Dist: pandas<2.3; extra == "test"
|
45
|
-
Requires-Dist: pueblo>=0.0.7; extra == "test"
|
46
|
-
Requires-Dist: pytz; extra == "test"
|
47
30
|
Provides-Extra: doc
|
48
|
-
|
49
|
-
|
31
|
+
License-File: LICENSE
|
32
|
+
License-File: NOTICE
|
50
33
|
|
51
34
|
=====================
|
52
35
|
CrateDB Python Client
|
@@ -61,7 +44,7 @@ CrateDB Python Client
|
|
61
44
|
:alt: Coverage
|
62
45
|
|
63
46
|
.. image:: https://readthedocs.org/projects/crate-python/badge/
|
64
|
-
:target: https://
|
47
|
+
:target: https://cratedb.com/docs/python/
|
65
48
|
:alt: Build status (documentation)
|
66
49
|
|
67
50
|
.. image:: https://img.shields.io/pypi/v/crate.svg
|
@@ -72,8 +55,8 @@ CrateDB Python Client
|
|
72
55
|
:target: https://pypi.org/project/crate/
|
73
56
|
:alt: Python Version
|
74
57
|
|
75
|
-
.. image:: https://
|
76
|
-
:target: https://
|
58
|
+
.. image:: https://static.pepy.tech/badge/crate/month
|
59
|
+
:target: https://pepy.tech/project/crate
|
77
60
|
:alt: PyPI Downloads
|
78
61
|
|
79
62
|
.. image:: https://img.shields.io/pypi/wheel/crate.svg
|
@@ -95,7 +78,7 @@ A Python client library for `CrateDB`_, implementing the Python `DB API 2.0`_
|
|
95
78
|
specification.
|
96
79
|
|
97
80
|
The CrateDB dialect for `SQLAlchemy`_ is provided by the `sqlalchemy-cratedb`_
|
98
|
-
package.
|
81
|
+
package, see also `sqlalchemy-cratedb documentation`_.
|
99
82
|
|
100
83
|
|
101
84
|
Installation
|
@@ -108,7 +91,18 @@ To install the most recent driver version, run::
|
|
108
91
|
$ pip install --upgrade crate
|
109
92
|
|
110
93
|
|
111
|
-
|
94
|
+
Migration Notes
|
95
|
+
===============
|
96
|
+
|
97
|
+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
|
98
|
+
will find that the newer releases ``crate>=1.0.0`` no longer include the
|
99
|
+
SQLAlchemy dialect for CrateDB.
|
100
|
+
|
101
|
+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
|
102
|
+
successfully migrate to the `sqlalchemy-cratedb`_ package.
|
103
|
+
|
104
|
+
|
105
|
+
Documentation and Help
|
112
106
|
======================
|
113
107
|
|
114
108
|
- `CrateDB Python Client documentation`_
|
@@ -118,8 +112,8 @@ Documentation and help
|
|
118
112
|
- Other `support channels`_
|
119
113
|
|
120
114
|
|
121
|
-
|
122
|
-
|
115
|
+
Contributions
|
116
|
+
=============
|
123
117
|
|
124
118
|
The CrateDB Python client library is an open source project, and is `managed on
|
125
119
|
GitHub`_. We appreciate contributions of any kind.
|
@@ -127,15 +121,19 @@ GitHub`_. We appreciate contributions of any kind.
|
|
127
121
|
|
128
122
|
.. _Contributing: CONTRIBUTING.rst
|
129
123
|
.. _crate: https://pypi.org/project/crate/
|
130
|
-
.. _Crate.io: https://
|
124
|
+
.. _Crate.io: https://cratedb.com/
|
131
125
|
.. _CrateDB: https://github.com/crate/crate
|
132
|
-
.. _CrateDB Python Client documentation: https://
|
126
|
+
.. _CrateDB Python Client documentation: https://cratedb.com/docs/python/
|
133
127
|
.. _CrateDB reference documentation: https://crate.io/docs/reference/
|
134
128
|
.. _DB API 2.0: https://peps.python.org/pep-0249/
|
135
129
|
.. _Developer documentation: DEVELOP.rst
|
136
130
|
.. _managed on GitHub: https://github.com/crate/crate-python
|
131
|
+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
137
132
|
.. _PyPI: https://pypi.org/
|
138
133
|
.. _SQLAlchemy: https://www.sqlalchemy.org/
|
139
|
-
.. _sqlalchemy-cratedb: https://github.com/crate
|
134
|
+
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb
|
135
|
+
.. _sqlalchemy-cratedb documentation: https://cratedb.com/docs/sqlalchemy-cratedb/
|
140
136
|
.. _StackOverflow: https://stackoverflow.com/tags/cratedb
|
141
|
-
.. _support channels: https://
|
137
|
+
.. _support channels: https://cratedb.com/support/
|
138
|
+
|
139
|
+
|
@@ -11,7 +11,7 @@ CrateDB Python Client
|
|
11
11
|
:alt: Coverage
|
12
12
|
|
13
13
|
.. image:: https://readthedocs.org/projects/crate-python/badge/
|
14
|
-
:target: https://
|
14
|
+
:target: https://cratedb.com/docs/python/
|
15
15
|
:alt: Build status (documentation)
|
16
16
|
|
17
17
|
.. image:: https://img.shields.io/pypi/v/crate.svg
|
@@ -22,8 +22,8 @@ CrateDB Python Client
|
|
22
22
|
:target: https://pypi.org/project/crate/
|
23
23
|
:alt: Python Version
|
24
24
|
|
25
|
-
.. image:: https://
|
26
|
-
:target: https://
|
25
|
+
.. image:: https://static.pepy.tech/badge/crate/month
|
26
|
+
:target: https://pepy.tech/project/crate
|
27
27
|
:alt: PyPI Downloads
|
28
28
|
|
29
29
|
.. image:: https://img.shields.io/pypi/wheel/crate.svg
|
@@ -45,7 +45,7 @@ A Python client library for `CrateDB`_, implementing the Python `DB API 2.0`_
|
|
45
45
|
specification.
|
46
46
|
|
47
47
|
The CrateDB dialect for `SQLAlchemy`_ is provided by the `sqlalchemy-cratedb`_
|
48
|
-
package.
|
48
|
+
package, see also `sqlalchemy-cratedb documentation`_.
|
49
49
|
|
50
50
|
|
51
51
|
Installation
|
@@ -58,7 +58,18 @@ To install the most recent driver version, run::
|
|
58
58
|
$ pip install --upgrade crate
|
59
59
|
|
60
60
|
|
61
|
-
|
61
|
+
Migration Notes
|
62
|
+
===============
|
63
|
+
|
64
|
+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
|
65
|
+
will find that the newer releases ``crate>=1.0.0`` no longer include the
|
66
|
+
SQLAlchemy dialect for CrateDB.
|
67
|
+
|
68
|
+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
|
69
|
+
successfully migrate to the `sqlalchemy-cratedb`_ package.
|
70
|
+
|
71
|
+
|
72
|
+
Documentation and Help
|
62
73
|
======================
|
63
74
|
|
64
75
|
- `CrateDB Python Client documentation`_
|
@@ -68,8 +79,8 @@ Documentation and help
|
|
68
79
|
- Other `support channels`_
|
69
80
|
|
70
81
|
|
71
|
-
|
72
|
-
|
82
|
+
Contributions
|
83
|
+
=============
|
73
84
|
|
74
85
|
The CrateDB Python client library is an open source project, and is `managed on
|
75
86
|
GitHub`_. We appreciate contributions of any kind.
|
@@ -77,15 +88,17 @@ GitHub`_. We appreciate contributions of any kind.
|
|
77
88
|
|
78
89
|
.. _Contributing: CONTRIBUTING.rst
|
79
90
|
.. _crate: https://pypi.org/project/crate/
|
80
|
-
.. _Crate.io: https://
|
91
|
+
.. _Crate.io: https://cratedb.com/
|
81
92
|
.. _CrateDB: https://github.com/crate/crate
|
82
|
-
.. _CrateDB Python Client documentation: https://
|
93
|
+
.. _CrateDB Python Client documentation: https://cratedb.com/docs/python/
|
83
94
|
.. _CrateDB reference documentation: https://crate.io/docs/reference/
|
84
95
|
.. _DB API 2.0: https://peps.python.org/pep-0249/
|
85
96
|
.. _Developer documentation: DEVELOP.rst
|
86
97
|
.. _managed on GitHub: https://github.com/crate/crate-python
|
98
|
+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
87
99
|
.. _PyPI: https://pypi.org/
|
88
100
|
.. _SQLAlchemy: https://www.sqlalchemy.org/
|
89
|
-
.. _sqlalchemy-cratedb: https://github.com/crate
|
101
|
+
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb
|
102
|
+
.. _sqlalchemy-cratedb documentation: https://cratedb.com/docs/sqlalchemy-cratedb/
|
90
103
|
.. _StackOverflow: https://stackoverflow.com/tags/cratedb
|
91
|
-
.. _support channels: https://
|
104
|
+
.. _support channels: https://cratedb.com/support/
|
@@ -76,8 +76,8 @@ The package provides a ``bulk_insert`` function to use the
|
|
76
76
|
workload across multiple batches, using a defined chunk size.
|
77
77
|
|
78
78
|
>>> import sqlalchemy as sa
|
79
|
-
>>> from pandas._testing import makeTimeDataFrame
|
80
79
|
>>> from crate.client.sqlalchemy.support import insert_bulk
|
80
|
+
>>> from pueblo.testing.pandas import makeTimeDataFrame
|
81
81
|
...
|
82
82
|
>>> # Define number of records, and chunk size.
|
83
83
|
>>> INSERT_RECORDS = 42
|
@@ -159,8 +159,8 @@ in a batched/chunked manner, using a defined chunk size, effectively using the
|
|
159
159
|
pandas implementation introduced in the previous section.
|
160
160
|
|
161
161
|
>>> import dask.dataframe as dd
|
162
|
-
>>> from pandas._testing import makeTimeDataFrame
|
163
162
|
>>> from crate.client.sqlalchemy.support import insert_bulk
|
163
|
+
>>> from pueblo.testing.pandas import makeTimeDataFrame
|
164
164
|
...
|
165
165
|
>>> # Define the number of records, the number of computing partitions,
|
166
166
|
>>> # and the chunk size of each database insert operation.
|
@@ -46,8 +46,8 @@ Create an SQLAlchemy :doc:`Session <sa:orm/session_basics>`:
|
|
46
46
|
>>> Base = declarative_base()
|
47
47
|
|
48
48
|
|
49
|
-
|
50
|
-
|
49
|
+
Connect
|
50
|
+
=======
|
51
51
|
|
52
52
|
In SQLAlchemy, a connection is established using the ``create_engine`` function.
|
53
53
|
This function takes a connection string, actually an `URL`_, that varies from
|
@@ -65,7 +65,9 @@ to a different server the following syntax can be used:
|
|
65
65
|
>>> sa.create_engine('crate://otherserver:4200')
|
66
66
|
Engine(crate://otherserver:4200)
|
67
67
|
|
68
|
-
|
68
|
+
Multiple Hosts
|
69
|
+
--------------
|
70
|
+
Because CrateDB is a clustered database running on multiple servers, it is
|
69
71
|
recommended to connect to all of them. This enables the DB-API layer to
|
70
72
|
use round-robin to distribute the load and skip a server if it becomes
|
71
73
|
unavailable. In order to make the driver aware of multiple servers, use
|
@@ -76,6 +78,8 @@ the ``connect_args`` parameter like so:
|
|
76
78
|
... })
|
77
79
|
Engine(crate://)
|
78
80
|
|
81
|
+
TLS Options
|
82
|
+
-----------
|
79
83
|
As defined in :ref:`https_connection`, the client validates SSL server
|
80
84
|
certificates by default. To configure this further, use e.g. the ``ca_cert``
|
81
85
|
attribute within the ``connect_args``, like:
|
@@ -96,6 +100,37 @@ In order to disable SSL verification, use ``verify_ssl_cert = False``, like:
|
|
96
100
|
... 'verify_ssl_cert': False,
|
97
101
|
... })
|
98
102
|
|
103
|
+
Timeout Options
|
104
|
+
---------------
|
105
|
+
In order to configure TCP timeout options, use the ``timeout`` parameter within
|
106
|
+
``connect_args``,
|
107
|
+
|
108
|
+
>>> timeout_engine = sa.create_engine('crate://localhost/', connect_args={'timeout': 42.42})
|
109
|
+
>>> timeout_engine.raw_connection().driver_connection.client._pool_kw["timeout"]
|
110
|
+
42.42
|
111
|
+
|
112
|
+
or use the ``timeout`` URL parameter within the database connection URL.
|
113
|
+
|
114
|
+
>>> timeout_engine = sa.create_engine('crate://localhost/?timeout=42.42')
|
115
|
+
>>> timeout_engine.raw_connection().driver_connection.client._pool_kw["timeout"]
|
116
|
+
42.42
|
117
|
+
|
118
|
+
Pool Size
|
119
|
+
---------
|
120
|
+
|
121
|
+
In order to configure the database connection pool size, use the ``pool_size``
|
122
|
+
parameter within ``connect_args``,
|
123
|
+
|
124
|
+
>>> timeout_engine = sa.create_engine('crate://localhost/', connect_args={'pool_size': 20})
|
125
|
+
>>> timeout_engine.raw_connection().driver_connection.client._pool_kw["maxsize"]
|
126
|
+
20
|
127
|
+
|
128
|
+
or use the ``pool_size`` URL parameter within the database connection URL.
|
129
|
+
|
130
|
+
>>> timeout_engine = sa.create_engine('crate://localhost/?pool_size=20')
|
131
|
+
>>> timeout_engine.raw_connection().driver_connection.client._pool_kw["maxsize"]
|
132
|
+
20
|
133
|
+
|
99
134
|
|
100
135
|
Basic DDL operations
|
101
136
|
====================
|
@@ -27,9 +27,6 @@ it has also been tested successfully with `PyPy`_.
|
|
27
27
|
Please make sure to also visit the section about :ref:`other-options`, using
|
28
28
|
the :ref:`crate-reference:interface-postgresql` interface of `CrateDB`_.
|
29
29
|
|
30
|
-
The :ref:`CrateDB dialect <using-sqlalchemy>` for `SQLAlchemy`_ is provided
|
31
|
-
by the ``sqlalchemy-cratedb`` package.
|
32
|
-
|
33
30
|
|
34
31
|
*************
|
35
32
|
Documentation
|
@@ -98,21 +95,37 @@ please consult the :ref:`data-types` documentation page.
|
|
98
95
|
|
99
96
|
data-types
|
100
97
|
|
98
|
+
|
99
|
+
Migration Notes
|
100
|
+
===============
|
101
|
+
|
102
|
+
The :ref:`CrateDB dialect <using-sqlalchemy>` for `SQLAlchemy`_ is provided
|
103
|
+
by the `sqlalchemy-cratedb`_ package.
|
104
|
+
|
105
|
+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
|
106
|
+
will find that the newer releases ``crate>=1.0.0`` no longer include the
|
107
|
+
SQLAlchemy dialect for CrateDB.
|
108
|
+
|
109
|
+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
|
110
|
+
conclude the migration to the `sqlalchemy-cratedb`_ package.
|
111
|
+
|
112
|
+
|
101
113
|
Examples
|
102
114
|
========
|
103
115
|
|
104
116
|
- The :ref:`by-example` section enumerates concise examples demonstrating the
|
105
117
|
different API interfaces of the CrateDB Python client library. Those are
|
106
118
|
DB API, HTTP, and BLOB interfaces.
|
119
|
+
|
107
120
|
- Executable code examples are maintained within the `cratedb-examples repository`_.
|
121
|
+
`sqlalchemy-cratedb`_, `python-dataframe-examples`_, and `python-sqlalchemy-examples`_
|
122
|
+
provide relevant code snippets about how to connect to CrateDB using
|
123
|
+
`SQLAlchemy`_, `pandas`_, or `Dask`_, and how to load and export data.
|
124
|
+
|
108
125
|
- The `sample application`_ and the corresponding `sample application
|
109
126
|
documentation`_ demonstrate the use of the driver on behalf of an example
|
110
|
-
"guestbook" application.
|
111
|
-
|
112
|
-
connect to CrateDB using `SQLAlchemy`_, `pandas`_, and `Dask`_.
|
113
|
-
- `Use CrateDB with pandas`_ has corresponding code snippets about how to
|
114
|
-
connect to CrateDB using `pandas`_, and how to load and export data.
|
115
|
-
- The `Apache Superset`_ and `FIWARE QuantumLeap data historian`_ projects.
|
127
|
+
"guestbook" application, using Flask.
|
128
|
+
|
116
129
|
|
117
130
|
.. toctree::
|
118
131
|
:maxdepth: 2
|
@@ -162,16 +175,20 @@ The project is licensed under the terms of the Apache 2.0 license, like
|
|
162
175
|
.. _Create an issue: https://github.com/crate/crate-python/issues
|
163
176
|
.. _Dask: https://en.wikipedia.org/wiki/Dask_(software)
|
164
177
|
.. _development sandbox: https://github.com/crate/crate-python/blob/master/DEVELOP.rst
|
165
|
-
.. _cratedb-examples repository: https://github.com/crate/cratedb-examples
|
178
|
+
.. _cratedb-examples repository: https://github.com/crate/cratedb-examples
|
166
179
|
.. _FIWARE QuantumLeap data historian: https://github.com/orchestracities/ngsi-timeseries-api
|
167
180
|
.. _GeoJSON: https://geojson.org/
|
168
181
|
.. _GeoJSON geometry objects: https://tools.ietf.org/html/rfc7946#section-3.1
|
169
182
|
.. _LICENSE: https://github.com/crate/crate-python/blob/master/LICENSE
|
170
183
|
.. _managed on GitHub: https://github.com/crate/crate-python
|
184
|
+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
171
185
|
.. _pandas: https://en.wikipedia.org/wiki/Pandas_(software)
|
172
186
|
.. _PEP 249: https://peps.python.org/pep-0249/
|
173
187
|
.. _PyPy: https://www.pypy.org/
|
188
|
+
.. _python-dataframe-examples: https://github.com/crate/cratedb-examples/tree/main/by-dataframe
|
189
|
+
.. _python-sqlalchemy-examples: https://github.com/crate/cratedb-examples/tree/main/by-language/python-sqlalchemy
|
174
190
|
.. _sample application: https://github.com/crate/crate-sample-apps/tree/main/python-flask
|
175
191
|
.. _sample application documentation: https://github.com/crate/crate-sample-apps/blob/main/python-flask/documentation.md
|
176
192
|
.. _SQLAlchemy: https://en.wikipedia.org/wiki/Sqlalchemy
|
193
|
+
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb
|
177
194
|
.. _Use CrateDB with pandas: https://github.com/crate/crate-qa/pull/246
|
@@ -30,6 +30,11 @@ class Error(Exception):
|
|
30
30
|
super(Error, self).__init__(msg)
|
31
31
|
self.error_trace = error_trace
|
32
32
|
|
33
|
+
def __str__(self):
|
34
|
+
if self.error_trace is None:
|
35
|
+
return super().__str__()
|
36
|
+
return "\n".join([super().__str__(), str(self.error_trace)])
|
37
|
+
|
33
38
|
|
34
39
|
class Warning(Exception):
|
35
40
|
pass
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import unittest
|
2
|
+
|
3
|
+
from crate.client import Error
|
4
|
+
|
5
|
+
|
6
|
+
class ErrorTestCase(unittest.TestCase):
|
7
|
+
|
8
|
+
def test_error_with_msg(self):
|
9
|
+
err = Error("foo")
|
10
|
+
self.assertEqual(str(err), "foo")
|
11
|
+
|
12
|
+
def test_error_with_error_trace(self):
|
13
|
+
err = Error("foo", error_trace="### TRACE ###")
|
14
|
+
self.assertEqual(str(err), "foo\n### TRACE ###")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: crate
|
3
|
-
Version: 1.0.0.
|
3
|
+
Version: 1.0.0.dev1
|
4
4
|
Summary: CrateDB Python Client
|
5
5
|
Home-page: https://github.com/crate/crate-python
|
6
6
|
Author: Crate.io
|
@@ -26,27 +26,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
26
26
|
Classifier: Topic :: Database
|
27
27
|
Requires-Python: >=3.6
|
28
28
|
Description-Content-Type: text/x-rst
|
29
|
-
License-File: LICENSE
|
30
|
-
License-File: NOTICE
|
31
|
-
Requires-Dist: urllib3<2.3
|
32
|
-
Requires-Dist: verlib2==0.2.0
|
33
29
|
Provides-Extra: test
|
34
|
-
Requires-Dist: tox<5,>=3; extra == "test"
|
35
|
-
Requires-Dist: zope.testing<6,>=4; extra == "test"
|
36
|
-
Requires-Dist: zope.testrunner<7,>=5; extra == "test"
|
37
|
-
Requires-Dist: zc.customdoctests<2,>=1.0.1; extra == "test"
|
38
|
-
Requires-Dist: backports.zoneinfo<1; python_version < "3.9" and extra == "test"
|
39
|
-
Requires-Dist: certifi; extra == "test"
|
40
|
-
Requires-Dist: createcoverage<2,>=1; extra == "test"
|
41
|
-
Requires-Dist: dask[dataframe]; extra == "test"
|
42
|
-
Requires-Dist: stopit<2,>=1.1.2; extra == "test"
|
43
|
-
Requires-Dist: flake8<8,>=4; extra == "test"
|
44
|
-
Requires-Dist: pandas<2.3; extra == "test"
|
45
|
-
Requires-Dist: pueblo>=0.0.7; extra == "test"
|
46
|
-
Requires-Dist: pytz; extra == "test"
|
47
30
|
Provides-Extra: doc
|
48
|
-
|
49
|
-
|
31
|
+
License-File: LICENSE
|
32
|
+
License-File: NOTICE
|
50
33
|
|
51
34
|
=====================
|
52
35
|
CrateDB Python Client
|
@@ -61,7 +44,7 @@ CrateDB Python Client
|
|
61
44
|
:alt: Coverage
|
62
45
|
|
63
46
|
.. image:: https://readthedocs.org/projects/crate-python/badge/
|
64
|
-
:target: https://
|
47
|
+
:target: https://cratedb.com/docs/python/
|
65
48
|
:alt: Build status (documentation)
|
66
49
|
|
67
50
|
.. image:: https://img.shields.io/pypi/v/crate.svg
|
@@ -72,8 +55,8 @@ CrateDB Python Client
|
|
72
55
|
:target: https://pypi.org/project/crate/
|
73
56
|
:alt: Python Version
|
74
57
|
|
75
|
-
.. image:: https://
|
76
|
-
:target: https://
|
58
|
+
.. image:: https://static.pepy.tech/badge/crate/month
|
59
|
+
:target: https://pepy.tech/project/crate
|
77
60
|
:alt: PyPI Downloads
|
78
61
|
|
79
62
|
.. image:: https://img.shields.io/pypi/wheel/crate.svg
|
@@ -95,7 +78,7 @@ A Python client library for `CrateDB`_, implementing the Python `DB API 2.0`_
|
|
95
78
|
specification.
|
96
79
|
|
97
80
|
The CrateDB dialect for `SQLAlchemy`_ is provided by the `sqlalchemy-cratedb`_
|
98
|
-
package.
|
81
|
+
package, see also `sqlalchemy-cratedb documentation`_.
|
99
82
|
|
100
83
|
|
101
84
|
Installation
|
@@ -108,7 +91,18 @@ To install the most recent driver version, run::
|
|
108
91
|
$ pip install --upgrade crate
|
109
92
|
|
110
93
|
|
111
|
-
|
94
|
+
Migration Notes
|
95
|
+
===============
|
96
|
+
|
97
|
+
If you are migrating from previous versions of ``crate[sqlalchemy]<1.0.0``, you
|
98
|
+
will find that the newer releases ``crate>=1.0.0`` no longer include the
|
99
|
+
SQLAlchemy dialect for CrateDB.
|
100
|
+
|
101
|
+
See `migrate to sqlalchemy-cratedb`_ for relevant guidelines about how to
|
102
|
+
successfully migrate to the `sqlalchemy-cratedb`_ package.
|
103
|
+
|
104
|
+
|
105
|
+
Documentation and Help
|
112
106
|
======================
|
113
107
|
|
114
108
|
- `CrateDB Python Client documentation`_
|
@@ -118,8 +112,8 @@ Documentation and help
|
|
118
112
|
- Other `support channels`_
|
119
113
|
|
120
114
|
|
121
|
-
|
122
|
-
|
115
|
+
Contributions
|
116
|
+
=============
|
123
117
|
|
124
118
|
The CrateDB Python client library is an open source project, and is `managed on
|
125
119
|
GitHub`_. We appreciate contributions of any kind.
|
@@ -127,15 +121,19 @@ GitHub`_. We appreciate contributions of any kind.
|
|
127
121
|
|
128
122
|
.. _Contributing: CONTRIBUTING.rst
|
129
123
|
.. _crate: https://pypi.org/project/crate/
|
130
|
-
.. _Crate.io: https://
|
124
|
+
.. _Crate.io: https://cratedb.com/
|
131
125
|
.. _CrateDB: https://github.com/crate/crate
|
132
|
-
.. _CrateDB Python Client documentation: https://
|
126
|
+
.. _CrateDB Python Client documentation: https://cratedb.com/docs/python/
|
133
127
|
.. _CrateDB reference documentation: https://crate.io/docs/reference/
|
134
128
|
.. _DB API 2.0: https://peps.python.org/pep-0249/
|
135
129
|
.. _Developer documentation: DEVELOP.rst
|
136
130
|
.. _managed on GitHub: https://github.com/crate/crate-python
|
131
|
+
.. _migrate to sqlalchemy-cratedb: https://cratedb.com/docs/sqlalchemy-cratedb/migrate-from-crate-client.html
|
137
132
|
.. _PyPI: https://pypi.org/
|
138
133
|
.. _SQLAlchemy: https://www.sqlalchemy.org/
|
139
|
-
.. _sqlalchemy-cratedb: https://github.com/crate
|
134
|
+
.. _sqlalchemy-cratedb: https://github.com/crate/sqlalchemy-cratedb
|
135
|
+
.. _sqlalchemy-cratedb documentation: https://cratedb.com/docs/sqlalchemy-cratedb/
|
140
136
|
.. _StackOverflow: https://stackoverflow.com/tags/cratedb
|
141
|
-
.. _support channels: https://
|
137
|
+
.. _support channels: https://cratedb.com/support/
|
138
|
+
|
139
|
+
|
@@ -0,0 +1,70 @@
|
|
1
|
+
CONTRIBUTING.rst
|
2
|
+
DEVELOP.rst
|
3
|
+
LICENSE
|
4
|
+
MANIFEST.in
|
5
|
+
NOTICE
|
6
|
+
README.rst
|
7
|
+
pyproject.toml
|
8
|
+
setup.cfg
|
9
|
+
setup.py
|
10
|
+
docs/requirements.txt
|
11
|
+
docs/.crate-docs/.build/output.txt
|
12
|
+
docs/.crate-docs/.build/robots.txt
|
13
|
+
docs/.crate-docs/.build/_sources/backlog.rst.txt
|
14
|
+
docs/.crate-docs/.build/_sources/blobs.rst.txt
|
15
|
+
docs/.crate-docs/.build/_sources/connect.rst.txt
|
16
|
+
docs/.crate-docs/.build/_sources/data-types.rst.txt
|
17
|
+
docs/.crate-docs/.build/_sources/getting-started.rst.txt
|
18
|
+
docs/.crate-docs/.build/_sources/index-all.rst.txt
|
19
|
+
docs/.crate-docs/.build/_sources/index.rst.txt
|
20
|
+
docs/.crate-docs/.build/_sources/other-options.rst.txt
|
21
|
+
docs/.crate-docs/.build/_sources/query.rst.txt
|
22
|
+
docs/.crate-docs/.build/_sources/sqlalchemy.rst.txt
|
23
|
+
docs/.crate-docs/.build/_sources/appendices/data-types.rst.txt
|
24
|
+
docs/.crate-docs/.build/_sources/appendices/index.rst.txt
|
25
|
+
docs/.crate-docs/.build/_sources/by-example/blob.rst.txt
|
26
|
+
docs/.crate-docs/.build/_sources/by-example/client.rst.txt
|
27
|
+
docs/.crate-docs/.build/_sources/by-example/connection.rst.txt
|
28
|
+
docs/.crate-docs/.build/_sources/by-example/cursor.rst.txt
|
29
|
+
docs/.crate-docs/.build/_sources/by-example/http.rst.txt
|
30
|
+
docs/.crate-docs/.build/_sources/by-example/https.rst.txt
|
31
|
+
docs/.crate-docs/.build/_sources/by-example/index.rst.txt
|
32
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/advanced-querying.rst.txt
|
33
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/crud.rst.txt
|
34
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/dataframe.rst.txt
|
35
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/getting-started.rst.txt
|
36
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/inspection-reflection.rst.txt
|
37
|
+
docs/.crate-docs/.build/_sources/by-example/sqlalchemy/working-with-types.rst.txt
|
38
|
+
docs/.crate-docs/.build/_static/bundle/main.js.LICENSE.txt
|
39
|
+
docs/.crate-docs/common-build/requirements.txt
|
40
|
+
docs/.crate-docs/docs/requirements.txt
|
41
|
+
docs/.crate-docs/docs/_extra/robots.txt
|
42
|
+
docs/.crate-docs/helpers/preview/etc/requirements.txt
|
43
|
+
docs/_extra/robots.txt
|
44
|
+
src/crate/__init__.py
|
45
|
+
src/crate.egg-info/PKG-INFO
|
46
|
+
src/crate.egg-info/SOURCES.txt
|
47
|
+
src/crate.egg-info/dependency_links.txt
|
48
|
+
src/crate.egg-info/namespace_packages.txt
|
49
|
+
src/crate.egg-info/requires.txt
|
50
|
+
src/crate.egg-info/top_level.txt
|
51
|
+
src/crate/client/__init__.py
|
52
|
+
src/crate/client/_pep440.py
|
53
|
+
src/crate/client/blob.py
|
54
|
+
src/crate/client/connection.py
|
55
|
+
src/crate/client/converter.py
|
56
|
+
src/crate/client/cursor.py
|
57
|
+
src/crate/client/exceptions.py
|
58
|
+
src/crate/client/http.py
|
59
|
+
src/crate/client/test_connection.py
|
60
|
+
src/crate/client/test_cursor.py
|
61
|
+
src/crate/client/test_exceptions.py
|
62
|
+
src/crate/client/test_http.py
|
63
|
+
src/crate/client/test_util.py
|
64
|
+
src/crate/client/pki/readme.rst
|
65
|
+
src/crate/testing/__init__.py
|
66
|
+
src/crate/testing/layer.py
|
67
|
+
src/crate/testing/settings.py
|
68
|
+
src/crate/testing/test_datetime_old.py
|
69
|
+
src/crate/testing/test_layer.py
|
70
|
+
src/crate/testing/util.py
|
@@ -1,20 +0,0 @@
|
|
1
|
-
[babel.checkers]
|
2
|
-
num_plurals = babel.messages.checkers:num_plurals
|
3
|
-
python_format = babel.messages.checkers:python_format
|
4
|
-
|
5
|
-
[babel.extractors]
|
6
|
-
ignore = babel.messages.extract:extract_nothing
|
7
|
-
javascript = babel.messages.extract:extract_javascript
|
8
|
-
python = babel.messages.extract:extract_python
|
9
|
-
|
10
|
-
[console_scripts]
|
11
|
-
pybabel = babel.messages.frontend:main
|
12
|
-
|
13
|
-
[distutils.commands]
|
14
|
-
compile_catalog = babel.messages.frontend:compile_catalog
|
15
|
-
extract_messages = babel.messages.frontend:extract_messages
|
16
|
-
init_catalog = babel.messages.frontend:init_catalog
|
17
|
-
update_catalog = babel.messages.frontend:update_catalog
|
18
|
-
|
19
|
-
[distutils.setup_keywords]
|
20
|
-
message_extractors = babel.messages.frontend:check_message_extractors
|
@@ -1 +0,0 @@
|
|
1
|
-
babel
|
@@ -1 +0,0 @@
|
|
1
|
-
jinja2
|
@@ -1 +0,0 @@
|
|
1
|
-
markupsafe
|
@@ -1 +0,0 @@
|
|
1
|
-
pygments
|