-
Notifications
You must be signed in to change notification settings - Fork 71
feat: connection over rest #5015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
mayankansys
wants to merge
101
commits into
main
Choose a base branch
from
feat/connection_over_rest
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
3815442
fix: replace top-level package proxy imports with direct module imports
mayankansys 37fa735
added the doc string
mayankansys 2792577
Merge branch 'main' into feat/connection_over_rest
mayankansys 2995fed
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 77f5ee6
Merge branch 'main' into feat/connection_over_rest
mayankansys 3e0402e
added the protocol, rest session & launcher
mayankansys 0559a37
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 9fddae6
Merge branch 'main' into feat/connection_over_rest
mayankansys cfa0f5e
feat: update client endpoints to real SimBA API and add documentation
mayankansys fdc3f35
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys d60f14d
connected to the real server
mayankansys 92c8352
resolved the get_attrs issue
mayankansys 0f69edb
refactor: update REST client implementation with bug fixes and docume…
mayankansys 02c1b80
updated the README and docstrings
mayankansys 41102e0
builtin settings
mayankansys c253b5a
builtin settings
mayankansys 85ad189
Merge branch 'main' into feat/connection_over_rest
mayankansys fa4315d
updated some section for retyr logic and IP/PORT access
mayankansys 912621e
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 256a591
Merge branch 'main' into feat/connection_over_rest
mayankansys 41a000b
updated the code for pylint
mayankansys fd27e2a
update
mayankansys 965f450
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 9697c05
Merge branch 'main' into feat/connection_over_rest
mayankansys ef15468
feat: added the connection of webserver via rest
mayankansys 690aff6
copy file
mayankansys 1e0f5a2
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 636612f
connected with the server & file reading successfulk
mayankansys 29c6454
updated the wait_for_webserver
mayankansys fe1ac41
README
mayankansys 9bccf4d
Merge branch 'main' into feat/connection_over_rest
mayankansys d7b7a36
added the docstrings
mayankansys adce6d1
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 9631111
resolves some commit error
mayankansys 5da8f33
pre-commit hooks
mayankansys 62df423
Merge branch 'main' into feat/connection_over_rest
mayankansys b63e74a
Merge branch 'main' into feat/connection_over_rest
mayankansys 2a86984
Potential fix for pull request finding 'CodeQL / Binding a socket to …
mayankansys d9b4da6
Potential fix for pull request finding
mayankansys 2e08b8f
Potential fix for pull request finding
mayankansys 7163879
Potential fix for pull request finding
mayankansys f0e5467
Potential fix for pull request finding
mayankansys 023d12e
Potential fix for pull request finding
mayankansys a20c317
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 1f8d690
Potential fix for pull request finding
mayankansys b2502e8
Potential fix for pull request finding
mayankansys bcf4d9d
added the suggested changes
mayankansys bd5f957
updated the structure
mayankansys 17d942f
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 52218f2
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 1067838
suggestion applied
mayankansys 8738ba0
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 053e2a3
Potential fix for pull request finding
mayankansys 071c2b0
Potential fix for pull request finding
mayankansys 5ca9445
Potential fix for pull request finding
mayankansys 5257bba
Potential fix for pull request finding
mayankansys 8b0c720
Potential fix for pull request finding
mayankansys 0a8473d
minor changes
mayankansys 404e21b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 0cb90e6
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 5c40f08
copilot suggestions
mayankansys d41b76c
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 0909758
added the security layer HTTPs
mayankansys 0ee5a48
docstring change
mayankansys c8246b5
Merge branch 'main' into feat/connection_over_rest
mayankansys 03eeb82
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys a43ff0a
readme
mayankansys 4e0bb24
feat: removed the generated files dependency
mayankansys a5fb548
Potential fix for pull request finding
mayankansys 879c4c2
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot a697c5e
updated the doc-strings & minor changes
mayankansys e6b34fc
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys cc10fcd
added.md file
mayankansys ae0d5cb
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 2b317b2
minor tweeks
mayankansys 935ff7b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 0e49ff1
major changes according to review
mayankansys d988acd
Merge branch 'main' into feat/connection_over_rest
mayankansys 12d9b0c
feat: add the tls file and minor updates
mayankansys 4e93e08
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 9e92fa5
Merge branch 'main' into feat/connection_over_rest
mayankansys 1ad0c56
Potential fix for pull request finding
mayankansys 123de03
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot 1c43b53
updated tests & exit code
mayankansys b2d2c4e
exit the server.
mayankansys 6afcb0b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 12e1dbd
updated the tls & exit webserver
mayankansys 0f0945b
updated the doc-string & exit function
mayankansys 072b234
Merge branch 'main' into feat/connection_over_rest
mayankansys 7c53d40
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys 96eea4b
update
mayankansys 18ac4a0
doc-string
mayankansys d6ffdda
minor update in test file
mayankansys 83f7bef
updated the tests
mayankansys ae2dfa6
added the tests
mayankansys 818f589
Merge branch 'main' into feat/connection_over_rest
mayankansys b6cd077
Merge branch 'main' into feat/connection_over_rest
mayankansys a02bb77
Merge branch 'main' into feat/connection_over_rest
mayankansys 65cb6f9
Merge branch 'main' into feat/connection_over_rest
mayankansys 8321f20
minor change
mayankansys baf4d44
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Connection over rest | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Copyright (C) 2021 - 2026 ANSYS, Inc. and/or its affiliates. | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # 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: | ||
| # | ||
| # The above copyright notice and this permission notice shall be included in all | ||
| # copies or substantial portions of the Software. | ||
| # | ||
| # 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. | ||
|
|
||
| """REST-based PyFluent settings client and session. | ||
|
|
||
| Standalone HTTP transport layer for PyFluent, connecting to Fluent's | ||
| embedded web server via REST. Pure HTTP/JSON — no gRPC, no protobuf, | ||
| no code-generated modules, no local settings tree. | ||
|
|
||
| * :class:`~ansys.fluent.core.rest.client.FluentRestClient` – pure-Python | ||
| HTTP client using stdlib ``urllib`` only. Each method makes one HTTP | ||
| call and returns the server's JSON directly. | ||
|
|
||
| * :func:`~ansys.fluent.core.rest.rest_launcher.launch_webserver` – **primary | ||
| entry point**. Spawns a local Fluent process with ``-ws -ws-port={port}``, | ||
| generates and configures the web server authentication token internally | ||
| for the subprocess, and returns a connected | ||
| :class:`~ansys.fluent.core.rest.client.FluentRestClient`. | ||
|
|
||
| Example:: | ||
|
|
||
| from ansys.fluent.core.rest import launch_webserver | ||
|
|
||
| client = launch_webserver() | ||
| print(client.get_var("setup/models/energy/enabled")) | ||
| client.set_var("setup/models/energy/enabled", False) | ||
| """ | ||
|
mayankansys marked this conversation as resolved.
|
||
|
|
||
| from ansys.fluent.core.rest.client import FluentRestClient | ||
| from ansys.fluent.core.rest.rest_launcher import ( | ||
| launch_webserver, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "FluentRestClient", | ||
| "launch_webserver", | ||
| ] | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.