Skip to content

feat(server): Add BaseServer.plugins property to list loaded plugins #2383

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

Merged
merged 6 commits into from
Jun 20, 2025

Conversation

PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Jun 19, 2025

Returns a dict of plugins currently loaded onto the server, such as:

{'cff': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\plugins\\dpf_cff\\Ans.Dpf.CFF.dll', 
'cgns': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Cgns.dll', 
'compression': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Compression.dll', 
'documentation': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Documentation.dll', 
'fem_utils': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.FEMUtils.dll', 
'grpc': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Grpc.dll', 
'hdf5': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Hdf5.dll', 
'live_post': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.LivePost.dll', 
'lsDyna': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.LSDYNAHGP.dll', 
'mapdl_plugin': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\mapdlOperatorsCore.dll', 
'math': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Math.dll', 
'mechanical': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Mechanical.dll', 
'mechanical_results': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.MechanicalResults.dll', 
'mesh_operators': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\meshOperatorsCore.dll', 
'multiphysics_mapper': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\plugins\\dpf_multiphysicsmapper\\Ans.Dpf.MultiphysicsMapper.dll', 
'native': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Native.dll', 
'prime': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\plugins\\dpf_prime\\Ans.Dpf.Prime.dll', 
'sc_map': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\plugins\\dpf_sysc\\Ans.Dpf.SystemCouplingMapping.dll', 
'vtk': 'C:\\Program Files\\ANSYS Inc\\v261\\dpf\\bin\\winx64\\Ans.Dpf.Vtk.dll'}

@PProfizi PProfizi self-assigned this Jun 19, 2025
@PProfizi PProfizi added the enhancement New feature or request label Jun 19, 2025
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.18%. Comparing base (78cb13a) to head (bfee5d8).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2383      +/-   ##
==========================================
+ Coverage   84.12%   84.18%   +0.06%     
==========================================
  Files          91       91              
  Lines       10584    10593       +9     
==========================================
+ Hits         8904     8918      +14     
+ Misses       1680     1675       -5     

Copy link
Contributor

The documentation for this pull request will be available at https://dpf.docs.pyansys.com/pull/2383. Please allow some time for the documentation to be deployed.

@@ -476,6 +476,12 @@ def version(self):
"""Must be implemented by subclasses."""
pass

@property
@version_requires("7.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know this was there for so long :)

@PProfizi PProfizi enabled auto-merge (squash) June 20, 2025 09:05
@PProfizi PProfizi merged commit e991508 into master Jun 20, 2025
43 checks passed
@PProfizi PProfizi deleted the feat/server_plugins branch June 20, 2025 09:13
Copy link
Contributor

This PR has been closed. Documentation for this pull request will shortly be removed from its former deployment address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants