lsrestclient 3.3.2__tar.gz → 3.4.1__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 (51) hide show
  1. lsrestclient-3.4.1/.dockerignore +37 -0
  2. lsrestclient-3.4.1/.editorconfig +31 -0
  3. lsrestclient-3.4.1/.gitattributes +21 -0
  4. lsrestclient-3.4.1/.gitignore +165 -0
  5. lsrestclient-3.4.1/.idea/.gitignore +8 -0
  6. lsrestclient-3.4.1/.idea/dataSources.local.xml +29 -0
  7. lsrestclient-3.4.1/.idea/dataSources.xml +35 -0
  8. lsrestclient-3.4.1/.idea/inspectionProfiles/Project_Default.xml +51 -0
  9. lsrestclient-3.4.1/.idea/lsrestclient.iml +16 -0
  10. lsrestclient-3.4.1/.idea/misc.xml +12 -0
  11. lsrestclient-3.4.1/.idea/modules.xml +8 -0
  12. lsrestclient-3.4.1/.idea/ruff.xml +11 -0
  13. lsrestclient-3.4.1/.idea/vcs.xml +6 -0
  14. lsrestclient-3.4.1/.idea/workspace.xml +818 -0
  15. lsrestclient-3.4.1/.pre-commit-config.yaml +16 -0
  16. lsrestclient-3.4.1/AGENTS.md +140 -0
  17. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/PKG-INFO +13 -16
  18. lsrestclient-3.4.1/docker-compose.yml +11 -0
  19. lsrestclient-3.4.1/lsrestclient/__init__.py +5 -0
  20. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/auth.py +2 -2
  21. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/client.py +54 -38
  22. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/contexts/bearer_token.py +6 -4
  23. lsrestclient-3.4.1/lsrestclient/exceptions/ConnectionError.py +22 -0
  24. lsrestclient-3.4.1/lsrestclient/exceptions/DownStreamError.py +12 -0
  25. lsrestclient-3.4.1/lsrestclient/exceptions/__init__.py +0 -0
  26. lsrestclient-3.4.1/lsrestclient/exceptions/raise_errors.py +44 -0
  27. lsrestclient-3.4.1/lsrestclient/fixtures.py +14 -0
  28. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/lsfastapi.py +11 -8
  29. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/mock.py +16 -7
  30. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/response.py +12 -5
  31. lsrestclient-3.4.1/pyproject.toml +78 -0
  32. lsrestclient-3.4.1/test_app/__init__.py +0 -0
  33. lsrestclient-3.4.1/test_app/main.py +92 -0
  34. lsrestclient-3.4.1/tests/__init__.py +0 -0
  35. lsrestclient-3.4.1/tests/conftest.py +10 -0
  36. lsrestclient-3.4.1/tests/fixtures/app_server.py +49 -0
  37. lsrestclient-3.4.1/tests/fixtures/clients.py +16 -0
  38. lsrestclient-3.4.1/tests/fixtures/docker_compose.py +16 -0
  39. lsrestclient-3.4.1/tests/test_auth.py +11 -0
  40. lsrestclient-3.4.1/tests/test_cache.py +65 -0
  41. lsrestclient-3.4.1/tests/test_client.py +134 -0
  42. lsrestclient-3.4.1/tests/test_mock.py +80 -0
  43. lsrestclient-3.4.1/tests/test_response.py +22 -0
  44. lsrestclient-3.4.1/uv.lock +673 -0
  45. lsrestclient-3.3.2/lsrestclient/__init__.py +0 -3
  46. lsrestclient-3.3.2/lsrestclient/exceptions.py +0 -73
  47. lsrestclient-3.3.2/lsrestclient/fixtures.py +0 -12
  48. lsrestclient-3.3.2/pyproject.toml +0 -51
  49. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/README.md +0 -0
  50. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/contexts/__init__.py +0 -0
  51. {lsrestclient-3.3.2 → lsrestclient-3.4.1}/lsrestclient/settings.py +0 -0
@@ -0,0 +1,37 @@
1
+ .gitigore
2
+ .git*
3
+ **/dist
4
+ **/.next
5
+ **/node_modules
6
+ **/.git
7
+ .idea
8
+ .storybook
9
+ /README.md
10
+
11
+ .env
12
+ .venv
13
+ env/
14
+ venv/
15
+ ENV/
16
+ env.bak/
17
+ venv.bak/
18
+
19
+ .next/
20
+ node_modules/
21
+ build/
22
+ dist/
23
+ .eslintcache
24
+ .buildtool/
25
+ .devproxy.local.js
26
+ **/.env.local
27
+ .env.local
28
+ .editorconfig
29
+ .env.local.example
30
+ .pytest_cache
31
+ Dockerfile
32
+ __pycache__
33
+ docker-compose.yml
34
+ docs
35
+ local.ini
36
+ tests
37
+ test_main.http
@@ -0,0 +1,31 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+
11
+ # Matches multiple files with brace expansion notation
12
+ # Set default charset
13
+ [*.{js, py}]
14
+ charset = utf-8
15
+
16
+ [*.js]
17
+ indent_style = tab
18
+ indent_size = 2
19
+
20
+ [*.py]
21
+ indent_style = space
22
+ indent_size = 4
23
+
24
+ # Tab indentation (no size specified)
25
+ [Makefile]
26
+ indent_style = tab
27
+
28
+ # Matches the exact files either package.json.template or .travis.yml
29
+ [{package.json, .travis.yml}]
30
+ indent_style = tab
31
+ indent_size = 2
@@ -0,0 +1,21 @@
1
+ * text=auto eol=lf
2
+
3
+ *.png binary
4
+ *.jpg binary
5
+ *.jpeg binary
6
+ *.gif binary
7
+ *.ico binary
8
+ *.mov binary
9
+ *.mp4 binary
10
+ *.mp3 binary
11
+ *.flv binary
12
+ *.fla binary
13
+ *.swf binary
14
+ *.gz binary
15
+ *.zip binary
16
+ *.7z binary
17
+ *.ttf binary
18
+ *.eot binary
19
+ *.woff binary
20
+ *.pyc binary
21
+ *.pdf binary
@@ -0,0 +1,165 @@
1
+ ### Python template
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/#use-with-ide
111
+ .pdm.toml
112
+
113
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114
+ __pypackages__/
115
+
116
+ # Celery stuff
117
+ celerybeat-schedule
118
+ celerybeat.pid
119
+
120
+ # SageMath parsed files
121
+ *.sage.py
122
+
123
+ # Environments
124
+ .env
125
+ .venv
126
+ env/
127
+ venv/
128
+ ENV/
129
+ env.bak/
130
+ venv.bak/
131
+
132
+ # Spyder project settings
133
+ .spyderproject
134
+ .spyproject
135
+
136
+ # Rope project settings
137
+ .ropeproject
138
+
139
+ # mkdocs documentation
140
+ /site
141
+
142
+ # mypy
143
+ .mypy_cache/
144
+ .dmypy.json
145
+ dmypy.json
146
+
147
+ # Pyre type checker
148
+ .pyre/
149
+
150
+ # pytype static type analyzer
151
+ .pytype/
152
+
153
+ # Cython debug symbols
154
+ cython_debug/
155
+
156
+ # PyCharm
157
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
160
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
161
+ #.idea/
162
+
163
+ /.dbdata/
164
+ .env.local
165
+ **/.cache/
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="dataSourceStorageLocal" created-in="PY-252.26199.168">
4
+ <data-source name="pytest [2]" uuid="3f2cfd39-a492-406a-ae58-4ccdf57a2e10">
5
+ <database-info product="SQLite" version="3.45.1" jdbc-version="4.2" driver-name="SQLite JDBC" driver-version="3.45.1.0" dbms="SQLITE" exact-version="3.45.1" exact-driver-version="3.45">
6
+ <identifier-quote-string>&quot;</identifier-quote-string>
7
+ </database-info>
8
+ <case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" />
9
+ <auth-provider>no-auth</auth-provider>
10
+ <schema-mapping>
11
+ <introspection-scope>
12
+ <node kind="schema" qname="@" />
13
+ </introspection-scope>
14
+ </schema-mapping>
15
+ </data-source>
16
+ <data-source name="pytest" uuid="b0d48d47-89b8-40e5-bd17-40ff6f44620c">
17
+ <database-info product="SQLite" version="3.45.1" jdbc-version="4.2" driver-name="SQLite JDBC" driver-version="3.45.1.0" dbms="SQLITE" exact-version="3.45.1" exact-driver-version="3.45">
18
+ <identifier-quote-string>&quot;</identifier-quote-string>
19
+ </database-info>
20
+ <case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed" />
21
+ <auth-provider>no-auth</auth-provider>
22
+ <schema-mapping>
23
+ <introspection-scope>
24
+ <node kind="schema" qname="@" />
25
+ </introspection-scope>
26
+ </schema-mapping>
27
+ </data-source>
28
+ </component>
29
+ </project>
@@ -0,0 +1,35 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="DataSourceManagerImpl" format="xml" multifile-model="true">
4
+ <data-source source="LOCAL" name="pytest [2]" uuid="3f2cfd39-a492-406a-ae58-4ccdf57a2e10">
5
+ <driver-ref>sqlite.xerial</driver-ref>
6
+ <synchronize>true</synchronize>
7
+ <jdbc-driver>org.sqlite.JDBC</jdbc-driver>
8
+ <jdbc-url>jdbc:sqlite:$PROJECT_DIR$/cache/pytest.sqlite</jdbc-url>
9
+ <working-dir>$ProjectFileDir$</working-dir>
10
+ <libraries>
11
+ <library>
12
+ <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/xerial/sqlite-jdbc/3.45.1.0/sqlite-jdbc-3.45.1.0.jar</url>
13
+ </library>
14
+ <library>
15
+ <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar</url>
16
+ </library>
17
+ </libraries>
18
+ </data-source>
19
+ <data-source source="LOCAL" name="pytest" uuid="b0d48d47-89b8-40e5-bd17-40ff6f44620c">
20
+ <driver-ref>sqlite.xerial</driver-ref>
21
+ <synchronize>true</synchronize>
22
+ <jdbc-driver>org.sqlite.JDBC</jdbc-driver>
23
+ <jdbc-url>jdbc:sqlite:$PROJECT_DIR$/.cache/pytest.sqlite</jdbc-url>
24
+ <working-dir>$ProjectFileDir$</working-dir>
25
+ <libraries>
26
+ <library>
27
+ <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/xerial/sqlite-jdbc/3.45.1.0/sqlite-jdbc-3.45.1.0.jar</url>
28
+ </library>
29
+ <library>
30
+ <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.45.1/org/slf4j/slf4j-api/1.7.36/slf4j-api-1.7.36.jar</url>
31
+ </library>
32
+ </libraries>
33
+ </data-source>
34
+ </component>
35
+ </project>
@@ -0,0 +1,51 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false">
5
+ <Languages>
6
+ <language minSize="53" name="Python" />
7
+ </Languages>
8
+ </inspection_tool>
9
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
10
+ <inspection_tool class="GoTemplateDuplicateVariable" enabled="false" level="ERROR" enabled_by_default="false" />
11
+ <inspection_tool class="HttpUrlsUsage" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
12
+ <inspection_tool class="PyCallingNonCallableInspection" enabled="false" level="WARNING" enabled_by_default="false" />
13
+ <inspection_tool class="PyChainedComparisonsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
14
+ <option name="ignoreConstantInTheMiddle" value="true" />
15
+ </inspection_tool>
16
+ <inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
17
+ <option name="ourVersions">
18
+ <value>
19
+ <list size="4">
20
+ <item index="0" class="java.lang.String" itemvalue="3.12" />
21
+ <item index="1" class="java.lang.String" itemvalue="3.11" />
22
+ <item index="2" class="java.lang.String" itemvalue="3.13" />
23
+ <item index="3" class="java.lang.String" itemvalue="3.14" />
24
+ </list>
25
+ </value>
26
+ </option>
27
+ </inspection_tool>
28
+ <inspection_tool class="PyMethodMayBeStaticInspection" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
29
+ <inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
30
+ <option name="ignoredErrors">
31
+ <list>
32
+ <option value="N802" />
33
+ <option value="N803" />
34
+ <option value="N806" />
35
+ </list>
36
+ </option>
37
+ </inspection_tool>
38
+ <inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
39
+ <option name="ignoredIdentifiers">
40
+ <list>
41
+ <option value="" />
42
+ <option value="pydantic_db_backend.exceptions.AlreadyExists.*" />
43
+ </list>
44
+ </option>
45
+ </inspection_tool>
46
+ <inspection_tool class="ShellCheck" enabled="true" level="ERROR" enabled_by_default="true">
47
+ <shellcheck_settings value="SC2031,SC2086" />
48
+ </inspection_tool>
49
+ <inspection_tool class="SqlNoDataSourceInspection" enabled="false" level="WARNING" enabled_by_default="false" />
50
+ </profile>
51
+ </component>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.venv" />
6
+ </content>
7
+ <orderEntry type="jdk" jdkName="Python 3.13 (lsrestclient)" jdkType="Python SDK" />
8
+ <orderEntry type="sourceFolder" forTests="false" />
9
+ </component>
10
+ <component name="PackageRequirementsSettings">
11
+ <option name="requirementsPath" value="" />
12
+ </component>
13
+ <component name="TestRunnerService">
14
+ <option name="PROJECT_TEST_RUNNER" value="py.test" />
15
+ </component>
16
+ </module>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Black">
4
+ <option name="enabledOnReformat" value="true" />
5
+ <option name="enabledOnSave" value="true" />
6
+ <option name="sdkName" value="Poetry (lsrestclient)" />
7
+ </component>
8
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13 (lsrestclient)" project-jdk-type="Python SDK" />
9
+ <component name="PythonCompatibilityInspectionAdvertiser">
10
+ <option name="version" value="3" />
11
+ </component>
12
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/lsrestclient.iml" filepath="$PROJECT_DIR$/.idea/lsrestclient.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RuffConfigService">
4
+ <option name="enableRuffLogging" value="true" />
5
+ <option name="runRuffOnSave" value="true" />
6
+ <option name="useClosestConfig" value="true" />
7
+ <option name="useRuffFormat" value="true" />
8
+ <option name="useRuffImportOptimizer" value="true" />
9
+ <option name="useRuffServer" value="true" />
10
+ </component>
11
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>