Skip to content

Commit 9271b88

Browse files
fulpmnuvioushowso-automation
authored
19985: Internal API simplification and refactor, MAJOR (#252)
- Removed dependency on the howso openapi client - Added client schemas package to replace the openapi types - Simplified client logic into base class AbstractHowsoClient - Refactored HowsoConfiguration objects - Added new error class HowsoValidationError - Consolidated naming scheme for session methods - Removed some unused utilities - Removed intermediary class between the direct client and the engine - Misc typing and linting updates --------- Co-authored-by: David Cheeseman <[email protected]> Co-authored-by: howso-automation <[email protected]>
1 parent 1e2de36 commit 9271b88

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+8616
-11420
lines changed

.flake8

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[flake8]
2+
application_import_names = howso, amalgam
23
ignore = D100, D104, D203, D401, F405, W503, W504, D107
3-
exclude = .git, __pycache__, tests,
4+
exclude = .git, __pycache__, tests, .venv, venv, build, scratch
45
max-complexity = 15
56
max-line-length = 119
67
import-order-style = google
8+
per-file-ignores =
9+
*/__init__.py: F401, F403

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ howso/docs/source/auto_examples
1515
howso/howso-engine
1616
howso/resources
1717
local/
18+
scratch/
1819

1920
# Do not ignore the thumbnails used by sphinx-gallery
2021
!howso/docs/source/auto_examples/images/thumb/*.png
@@ -151,3 +152,6 @@ setup.cfg
151152
/requirements-dev.txt
152153
/requirements.txt
153154
/dev-requirements.txt
155+
156+
# Local Howso configuration file
157+
howso.yml

LICENSE-3RD-PARTY.txt

+253
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,35 @@ documentation is licensed as follows:
212212

213213

214214

215+
charset-normalizer
216+
3.3.2
217+
MIT License
218+
Ahmed TAHRI
219+
https://github.com/Ousret/charset_normalizer
220+
The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
221+
/home/runner/.pyenv/versions/3.12.1/lib/python3.12/site-packages/charset_normalizer-3.3.2.dist-info/LICENSE
222+
MIT License
223+
224+
Copyright (c) 2019 TAHRI Ahmed R.
225+
226+
Permission is hereby granted, free of charge, to any person obtaining a copy
227+
of this software and associated documentation files (the "Software"), to deal
228+
in the Software without restriction, including without limitation the rights
229+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
230+
copies of the Software, and to permit persons to whom the Software is
231+
furnished to do so, subject to the following conditions:
232+
233+
The above copyright notice and this permission notice shall be included in all
234+
copies or substantial portions of the Software.
235+
236+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
237+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
238+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
239+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
240+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
241+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
242+
SOFTWARE.
243+
215244
click
216245
8.1.7
217246
BSD License
@@ -500,6 +529,46 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
500529
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
501530

502531

532+
idna
533+
3.7
534+
BSD License
535+
Kim Davies <[email protected]>
536+
https://github.com/kjd/idna
537+
Internationalized Domain Names in Applications (IDNA)
538+
/home/runner/.pyenv/versions/3.12.1/lib/python3.12/site-packages/idna-3.7.dist-info/LICENSE.md
539+
BSD 3-Clause License
540+
541+
Copyright (c) 2013-2024, Kim Davies and contributors.
542+
All rights reserved.
543+
544+
Redistribution and use in source and binary forms, with or without
545+
modification, are permitted provided that the following conditions are
546+
met:
547+
548+
1. Redistributions of source code must retain the above copyright
549+
notice, this list of conditions and the following disclaimer.
550+
551+
2. Redistributions in binary form must reproduce the above copyright
552+
notice, this list of conditions and the following disclaimer in the
553+
documentation and/or other materials provided with the distribution.
554+
555+
3. Neither the name of the copyright holder nor the names of its
556+
contributors may be used to endorse or promote products derived from
557+
this software without specific prior written permission.
558+
559+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
560+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
561+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
562+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
563+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
564+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
565+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
566+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
567+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
568+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
569+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
570+
571+
503572
markdown-it-py
504573
3.0.0
505574
MIT License
@@ -1813,6 +1882,190 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18131882
DEALINGS IN THE SOFTWARE.
18141883

18151884

1885+
requests
1886+
2.32.3
1887+
Apache Software License
1888+
Kenneth Reitz
1889+
https://requests.readthedocs.io
1890+
Python HTTP for Humans.
1891+
/home/runner/.pyenv/versions/3.12.1/lib/python3.12/site-packages/requests-2.32.3.dist-info/LICENSE
1892+
1893+
Apache License
1894+
Version 2.0, January 2004
1895+
http://www.apache.org/licenses/
1896+
1897+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1898+
1899+
1. Definitions.
1900+
1901+
"License" shall mean the terms and conditions for use, reproduction,
1902+
and distribution as defined by Sections 1 through 9 of this document.
1903+
1904+
"Licensor" shall mean the copyright owner or entity authorized by
1905+
the copyright owner that is granting the License.
1906+
1907+
"Legal Entity" shall mean the union of the acting entity and all
1908+
other entities that control, are controlled by, or are under common
1909+
control with that entity. For the purposes of this definition,
1910+
"control" means (i) the power, direct or indirect, to cause the
1911+
direction or management of such entity, whether by contract or
1912+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
1913+
outstanding shares, or (iii) beneficial ownership of such entity.
1914+
1915+
"You" (or "Your") shall mean an individual or Legal Entity
1916+
exercising permissions granted by this License.
1917+
1918+
"Source" form shall mean the preferred form for making modifications,
1919+
including but not limited to software source code, documentation
1920+
source, and configuration files.
1921+
1922+
"Object" form shall mean any form resulting from mechanical
1923+
transformation or translation of a Source form, including but
1924+
not limited to compiled object code, generated documentation,
1925+
and conversions to other media types.
1926+
1927+
"Work" shall mean the work of authorship, whether in Source or
1928+
Object form, made available under the License, as indicated by a
1929+
copyright notice that is included in or attached to the work
1930+
(an example is provided in the Appendix below).
1931+
1932+
"Derivative Works" shall mean any work, whether in Source or Object
1933+
form, that is based on (or derived from) the Work and for which the
1934+
editorial revisions, annotations, elaborations, or other modifications
1935+
represent, as a whole, an original work of authorship. For the purposes
1936+
of this License, Derivative Works shall not include works that remain
1937+
separable from, or merely link (or bind by name) to the interfaces of,
1938+
the Work and Derivative Works thereof.
1939+
1940+
"Contribution" shall mean any work of authorship, including
1941+
the original version of the Work and any modifications or additions
1942+
to that Work or Derivative Works thereof, that is intentionally
1943+
submitted to Licensor for inclusion in the Work by the copyright owner
1944+
or by an individual or Legal Entity authorized to submit on behalf of
1945+
the copyright owner. For the purposes of this definition, "submitted"
1946+
means any form of electronic, verbal, or written communication sent
1947+
to the Licensor or its representatives, including but not limited to
1948+
communication on electronic mailing lists, source code control systems,
1949+
and issue tracking systems that are managed by, or on behalf of, the
1950+
Licensor for the purpose of discussing and improving the Work, but
1951+
excluding communication that is conspicuously marked or otherwise
1952+
designated in writing by the copyright owner as "Not a Contribution."
1953+
1954+
"Contributor" shall mean Licensor and any individual or Legal Entity
1955+
on behalf of whom a Contribution has been received by Licensor and
1956+
subsequently incorporated within the Work.
1957+
1958+
2. Grant of Copyright License. Subject to the terms and conditions of
1959+
this License, each Contributor hereby grants to You a perpetual,
1960+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1961+
copyright license to reproduce, prepare Derivative Works of,
1962+
publicly display, publicly perform, sublicense, and distribute the
1963+
Work and such Derivative Works in Source or Object form.
1964+
1965+
3. Grant of Patent License. Subject to the terms and conditions of
1966+
this License, each Contributor hereby grants to You a perpetual,
1967+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1968+
(except as stated in this section) patent license to make, have made,
1969+
use, offer to sell, sell, import, and otherwise transfer the Work,
1970+
where such license applies only to those patent claims licensable
1971+
by such Contributor that are necessarily infringed by their
1972+
Contribution(s) alone or by combination of their Contribution(s)
1973+
with the Work to which such Contribution(s) was submitted. If You
1974+
institute patent litigation against any entity (including a
1975+
cross-claim or counterclaim in a lawsuit) alleging that the Work
1976+
or a Contribution incorporated within the Work constitutes direct
1977+
or contributory patent infringement, then any patent licenses
1978+
granted to You under this License for that Work shall terminate
1979+
as of the date such litigation is filed.
1980+
1981+
4. Redistribution. You may reproduce and distribute copies of the
1982+
Work or Derivative Works thereof in any medium, with or without
1983+
modifications, and in Source or Object form, provided that You
1984+
meet the following conditions:
1985+
1986+
(a) You must give any other recipients of the Work or
1987+
Derivative Works a copy of this License; and
1988+
1989+
(b) You must cause any modified files to carry prominent notices
1990+
stating that You changed the files; and
1991+
1992+
(c) You must retain, in the Source form of any Derivative Works
1993+
that You distribute, all copyright, patent, trademark, and
1994+
attribution notices from the Source form of the Work,
1995+
excluding those notices that do not pertain to any part of
1996+
the Derivative Works; and
1997+
1998+
(d) If the Work includes a "NOTICE" text file as part of its
1999+
distribution, then any Derivative Works that You distribute must
2000+
include a readable copy of the attribution notices contained
2001+
within such NOTICE file, excluding those notices that do not
2002+
pertain to any part of the Derivative Works, in at least one
2003+
of the following places: within a NOTICE text file distributed
2004+
as part of the Derivative Works; within the Source form or
2005+
documentation, if provided along with the Derivative Works; or,
2006+
within a display generated by the Derivative Works, if and
2007+
wherever such third-party notices normally appear. The contents
2008+
of the NOTICE file are for informational purposes only and
2009+
do not modify the License. You may add Your own attribution
2010+
notices within Derivative Works that You distribute, alongside
2011+
or as an addendum to the NOTICE text from the Work, provided
2012+
that such additional attribution notices cannot be construed
2013+
as modifying the License.
2014+
2015+
You may add Your own copyright statement to Your modifications and
2016+
may provide additional or different license terms and conditions
2017+
for use, reproduction, or distribution of Your modifications, or
2018+
for any such Derivative Works as a whole, provided Your use,
2019+
reproduction, and distribution of the Work otherwise complies with
2020+
the conditions stated in this License.
2021+
2022+
5. Submission of Contributions. Unless You explicitly state otherwise,
2023+
any Contribution intentionally submitted for inclusion in the Work
2024+
by You to the Licensor shall be under the terms and conditions of
2025+
this License, without any additional terms or conditions.
2026+
Notwithstanding the above, nothing herein shall supersede or modify
2027+
the terms of any separate license agreement you may have executed
2028+
with Licensor regarding such Contributions.
2029+
2030+
6. Trademarks. This License does not grant permission to use the trade
2031+
names, trademarks, service marks, or product names of the Licensor,
2032+
except as required for reasonable and customary use in describing the
2033+
origin of the Work and reproducing the content of the NOTICE file.
2034+
2035+
7. Disclaimer of Warranty. Unless required by applicable law or
2036+
agreed to in writing, Licensor provides the Work (and each
2037+
Contributor provides its Contributions) on an "AS IS" BASIS,
2038+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2039+
implied, including, without limitation, any warranties or conditions
2040+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2041+
PARTICULAR PURPOSE. You are solely responsible for determining the
2042+
appropriateness of using or redistributing the Work and assume any
2043+
risks associated with Your exercise of permissions under this License.
2044+
2045+
8. Limitation of Liability. In no event and under no legal theory,
2046+
whether in tort (including negligence), contract, or otherwise,
2047+
unless required by applicable law (such as deliberate and grossly
2048+
negligent acts) or agreed to in writing, shall any Contributor be
2049+
liable to You for damages, including any direct, indirect, special,
2050+
incidental, or consequential damages of any character arising as a
2051+
result of this License or out of the use or inability to use the
2052+
Work (including but not limited to damages for loss of goodwill,
2053+
work stoppage, computer failure or malfunction, or any and all
2054+
other commercial damages or losses), even if such Contributor
2055+
has been advised of the possibility of such damages.
2056+
2057+
9. Accepting Warranty or Additional Liability. While redistributing
2058+
the Work or Derivative Works thereof, You may choose to offer,
2059+
and charge a fee for, acceptance of support, warranty, indemnity,
2060+
or other liability obligations and/or rights consistent with this
2061+
License. However, in accepting such obligations, You may act only
2062+
on Your own behalf and on Your sole responsibility, not on behalf
2063+
of any other Contributor, and only if You agree to indemnify,
2064+
defend, and hold each Contributor harmless for any liability
2065+
incurred by, or claims asserted against, such Contributor by reason
2066+
of your accepting any such warranty or additional liability.
2067+
2068+
18162069
rich
18172070
13.7.1
18182071
MIT License

howso/client/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
get_howso_client,
2626
HowsoClient,
2727
)
28-
from .pandas.client import ( # noqa: F401
29-
HowsoPandasClient,
30-
)
28+
from .pandas.client import HowsoPandasClient # noqa: F401
3129

3230
__all__ = [
3331
"AbstractHowsoClient",

0 commit comments

Comments
 (0)