Skip to content
Draft
Show file tree
Hide file tree
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 Mar 4, 2026
37fa735
added the doc string
mayankansys Mar 26, 2026
2792577
Merge branch 'main' into feat/connection_over_rest
mayankansys Mar 26, 2026
2995fed
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot Mar 26, 2026
77f5ee6
Merge branch 'main' into feat/connection_over_rest
mayankansys Apr 2, 2026
3e0402e
added the protocol, rest session & launcher
mayankansys Apr 8, 2026
0559a37
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Apr 8, 2026
9fddae6
Merge branch 'main' into feat/connection_over_rest
mayankansys Apr 13, 2026
cfa0f5e
feat: update client endpoints to real SimBA API and add documentation
mayankansys Apr 23, 2026
fdc3f35
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Apr 23, 2026
d60f14d
connected to the real server
mayankansys Apr 27, 2026
92c8352
resolved the get_attrs issue
mayankansys Apr 28, 2026
0f69edb
refactor: update REST client implementation with bug fixes and docume…
mayankansys Apr 29, 2026
02c1b80
updated the README and docstrings
mayankansys Apr 29, 2026
41102e0
builtin settings
mayankansys Apr 29, 2026
c253b5a
builtin settings
mayankansys Apr 29, 2026
85ad189
Merge branch 'main' into feat/connection_over_rest
mayankansys Apr 30, 2026
fa4315d
updated some section for retyr logic and IP/PORT access
mayankansys May 1, 2026
912621e
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 1, 2026
256a591
Merge branch 'main' into feat/connection_over_rest
mayankansys May 1, 2026
41a000b
updated the code for pylint
mayankansys May 1, 2026
fd27e2a
update
mayankansys May 4, 2026
965f450
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 4, 2026
9697c05
Merge branch 'main' into feat/connection_over_rest
mayankansys May 4, 2026
ef15468
feat: added the connection of webserver via rest
mayankansys May 5, 2026
690aff6
copy file
mayankansys May 7, 2026
1e0f5a2
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 7, 2026
636612f
connected with the server & file reading successfulk
mayankansys May 8, 2026
29c6454
updated the wait_for_webserver
mayankansys May 9, 2026
fe1ac41
README
mayankansys May 9, 2026
9bccf4d
Merge branch 'main' into feat/connection_over_rest
mayankansys May 11, 2026
d7b7a36
added the docstrings
mayankansys May 11, 2026
adce6d1
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 11, 2026
9631111
resolves some commit error
mayankansys May 11, 2026
5da8f33
pre-commit hooks
mayankansys May 11, 2026
62df423
Merge branch 'main' into feat/connection_over_rest
mayankansys May 12, 2026
b63e74a
Merge branch 'main' into feat/connection_over_rest
mayankansys May 12, 2026
2a86984
Potential fix for pull request finding 'CodeQL / Binding a socket to …
mayankansys May 12, 2026
d9b4da6
Potential fix for pull request finding
mayankansys May 12, 2026
2e08b8f
Potential fix for pull request finding
mayankansys May 12, 2026
7163879
Potential fix for pull request finding
mayankansys May 12, 2026
f0e5467
Potential fix for pull request finding
mayankansys May 12, 2026
023d12e
Potential fix for pull request finding
mayankansys May 12, 2026
a20c317
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot May 12, 2026
1f8d690
Potential fix for pull request finding
mayankansys May 13, 2026
b2502e8
Potential fix for pull request finding
mayankansys May 13, 2026
bcf4d9d
added the suggested changes
mayankansys May 13, 2026
bd5f957
updated the structure
mayankansys May 15, 2026
17d942f
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 15, 2026
52218f2
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot May 15, 2026
1067838
suggestion applied
mayankansys May 15, 2026
8738ba0
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 15, 2026
053e2a3
Potential fix for pull request finding
mayankansys May 15, 2026
071c2b0
Potential fix for pull request finding
mayankansys May 15, 2026
5ca9445
Potential fix for pull request finding
mayankansys May 15, 2026
5257bba
Potential fix for pull request finding
mayankansys May 15, 2026
8b0c720
Potential fix for pull request finding
mayankansys May 15, 2026
0a8473d
minor changes
mayankansys May 18, 2026
404e21b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 18, 2026
0cb90e6
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot May 18, 2026
5c40f08
copilot suggestions
mayankansys May 18, 2026
d41b76c
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 18, 2026
0909758
added the security layer HTTPs
mayankansys May 20, 2026
0ee5a48
docstring change
mayankansys May 21, 2026
c8246b5
Merge branch 'main' into feat/connection_over_rest
mayankansys May 22, 2026
03eeb82
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 22, 2026
a43ff0a
readme
mayankansys May 22, 2026
4e0bb24
feat: removed the generated files dependency
mayankansys May 23, 2026
a5fb548
Potential fix for pull request finding
mayankansys May 23, 2026
879c4c2
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot May 23, 2026
a697c5e
updated the doc-strings & minor changes
mayankansys May 24, 2026
e6b34fc
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 24, 2026
cc10fcd
added.md file
mayankansys May 25, 2026
ae0d5cb
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot May 25, 2026
2b317b2
minor tweeks
mayankansys May 25, 2026
935ff7b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys May 25, 2026
0e49ff1
major changes according to review
mayankansys May 25, 2026
d988acd
Merge branch 'main' into feat/connection_over_rest
mayankansys May 26, 2026
12d9b0c
feat: add the tls file and minor updates
mayankansys Jun 1, 2026
4e93e08
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Jun 1, 2026
9e92fa5
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 1, 2026
1ad0c56
Potential fix for pull request finding
mayankansys Jun 1, 2026
123de03
chore: adding changelog file 5015.added.md [dependabot-skip]
pyansys-ci-bot Jun 1, 2026
1c43b53
updated tests & exit code
mayankansys Jun 1, 2026
b2d2c4e
exit the server.
mayankansys Jun 1, 2026
6afcb0b
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Jun 1, 2026
12e1dbd
updated the tls & exit webserver
mayankansys Jun 2, 2026
0f0945b
updated the doc-string & exit function
mayankansys Jun 3, 2026
072b234
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 3, 2026
7c53d40
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Jun 3, 2026
96eea4b
update
mayankansys Jun 3, 2026
18ac4a0
doc-string
mayankansys Jun 3, 2026
d6ffdda
minor update in test file
mayankansys Jun 3, 2026
83f7bef
updated the tests
mayankansys Jun 3, 2026
ae2dfa6
added the tests
mayankansys Jun 3, 2026
818f589
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 5, 2026
b6cd077
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 5, 2026
a02bb77
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 5, 2026
65cb6f9
Merge branch 'main' into feat/connection_over_rest
mayankansys Jun 5, 2026
8321f20
minor change
mayankansys Jun 5, 2026
baf4d44
Merge branch 'feat/connection_over_rest' of https://github.com/ansys/…
mayankansys Jun 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/5015.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Connection over rest
Comment thread
mayankansys marked this conversation as resolved.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ markers = [
"settings_only: Read and modify the case settings only, without loading the mesh, initializing, or solving the case",
"nightly: Tests that run under nightly CI",
"fluent_version(version): Tests that runs with specified Fluent version",
"standalone: Tests that cannot be run within container"
"standalone: Tests that cannot be run within container",
"real_server: Tests that require a live Fluent / SimBA server"
]

[tool.black]
Expand Down
55 changes: 55 additions & 0 deletions src/ansys/fluent/core/rest/__init__.py
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)
"""
Comment thread
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",
]
Loading
Loading