A server for odbAccess to be acessed by pylife-odbclient
Project description
pylife-odbserver
A server for odbAccess to be accessed by pylife-odbclient
Purpose
Unfortunately Abaqus usually comes with an outdated python engine. So you can't access an Abaqus odb file from within modern python code using the latest packages. This python package is the client part of a client server setup to make odb files accessible from within python code using a current python version in a transparent way.
Solution
This package provides a slim server that as python software that is running
with old python versions of Abaqus (even 2.7), that can be run inside the
Abaqus python engine. It accepts command via sys.stdin and according to the
command is querying data from the odbAccess interface and returning them in a
pickle object.
The sibling package pylife-odbclient comes with a python class OdbClient
that spawns the server in the background when an instance of OdbClient is
instantiated. Then the client object can be used to transparently access data
from the odb file via the server. Once the client object goes out of scope
i.e. is deleted, the server process is stopped automatically.
Installation
-
Create and activate a plain python-2.7 environment without additional packages. For example by
conda create -n odbserver python=2.7 pipInstead of
2.7you must choose the python version of your abaqus version. You can find it out usingabaqus python --version -
Run
pip install pylife-odbserver -
Set environment variables (optional)
The
odbclientwill look for your Abaqus binary inC:/Program Files/SIMULIA/<release_year>/EstProducts/win_b64/code/bin/SMALauncher.exe
and for the above Python environment in:
<repo_root>/.venv-odbserverC:/Users/<yourname>/.conda/envs/odbserverC:/Users/<yourname>/.virtualenvs/odbserver
If your paths are different, you must either specify them each time you run the
odbclient, or you can set them as environment variables as follows:[Environment]::SetEnvironmentVariable("ODBSERVER_ABAQUS_BIN", "<absolute/path/to/your/abq.exe>", "User") [Environment]::SetEnvironmentVariable("ODBSERVER_PYTHON_ENV_PATH", "<absolute/path/to/the/above/python/env>", "User")
You can check the above with:
[Environment]::GetEnvironmentVariable("ODBSERVER_ABAQUS_BIN", "User") [Environment]::GetEnvironmentVariable("ODBSERVER_PYTHON_ENV_PATH", "User")
-
See the instructions in
pylife-odbclienton how to install the client.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylife_odbserver-2.2.1.tar.gz.
File metadata
- Download URL: pylife_odbserver-2.2.1.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5ea87331e29c724f8fe7bd8464cfd2003571af2d9b5560e1160e23363766554
|
|
| MD5 |
da2d8038a86d1a815c9d59c0c9e4b5b7
|
|
| BLAKE2b-256 |
12bd9f0e5a59bc6bd0b84a8e92aae472ad8b3256217f8cc47119bc95269f932b
|
Provenance
The following attestation bundles were made for pylife_odbserver-2.2.1.tar.gz:
Publisher:
pypi-deploy-odbserver.yml on boschresearch/pylife
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylife_odbserver-2.2.1.tar.gz -
Subject digest:
b5ea87331e29c724f8fe7bd8464cfd2003571af2d9b5560e1160e23363766554 - Sigstore transparency entry: 969219096
- Sigstore integration time:
-
Permalink:
boschresearch/pylife@f046803ea4337aee6533e626e3cd5e8b36950a6f -
Branch / Tag:
refs/tags/2.2.1 - Owner: https://github.com/boschresearch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-deploy-odbserver.yml@f046803ea4337aee6533e626e3cd5e8b36950a6f -
Trigger Event:
release
-
Statement type:
File details
Details for the file pylife_odbserver-2.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: pylife_odbserver-2.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c9168895c83f677539c4d334e4a60e90439f57e87234da648db2984ef89a14f
|
|
| MD5 |
e18e28762fa3d19613f8c2bb64707979
|
|
| BLAKE2b-256 |
db88dbb1009071a69fdb22f40ba0b45e15bc3ac2591ed1c4151c9aae10ab22bb
|
Provenance
The following attestation bundles were made for pylife_odbserver-2.2.1-py2.py3-none-any.whl:
Publisher:
pypi-deploy-odbserver.yml on boschresearch/pylife
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylife_odbserver-2.2.1-py2.py3-none-any.whl -
Subject digest:
2c9168895c83f677539c4d334e4a60e90439f57e87234da648db2984ef89a14f - Sigstore transparency entry: 969219098
- Sigstore integration time:
-
Permalink:
boschresearch/pylife@f046803ea4337aee6533e626e3cd5e8b36950a6f -
Branch / Tag:
refs/tags/2.2.1 - Owner: https://github.com/boschresearch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-deploy-odbserver.yml@f046803ea4337aee6533e626e3cd5e8b36950a6f -
Trigger Event:
release
-
Statement type: