Skip to main content

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 pip
    

    Instead of 2.7 you must choose the python version of your abaqus version. You can find it out using

    abaqus python --version
    
  • Run

    pip install pylife-odbserver
    
  • Set environment variables (optional)

    The odbclient will look for your Abaqus binary in

    • C:/Program Files/SIMULIA/<release_year>/EstProducts/win_b64/code/bin/SMALauncher.exe

    and for the above Python environment in:

    • <repo_root>/.venv-odbserver
    • C:/Users/<yourname>/.conda/envs/odbserver
    • C:/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-odbclient on 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

pylife_odbserver-2.3.0rc1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylife_odbserver-2.3.0rc1-py2.py3-none-any.whl (12.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pylife_odbserver-2.3.0rc1.tar.gz.

File metadata

  • Download URL: pylife_odbserver-2.3.0rc1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pylife_odbserver-2.3.0rc1.tar.gz
Algorithm Hash digest
SHA256 62d686357b55a51237d844456defd16090c6a1aff36731805d3b2df25da774e4
MD5 3d7c98bfd884080376e167d0fab1c84a
BLAKE2b-256 2846e589c1057f9f961a5962046ca8e46b94f3eadcd5f8287a414f35d2fd71a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylife_odbserver-2.3.0rc1.tar.gz:

Publisher: pypi-deploy-odbserver.yml on boschresearch/pylife

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylife_odbserver-2.3.0rc1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pylife_odbserver-2.3.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 97301161d79f02b4d9b85fd5911b827c4cb8408593091271a04d03f48a7effb6
MD5 8512b629ecf71cf653db119ae2c27e9c
BLAKE2b-256 6ee7d47c68374b1ef954881fe6ddccdd3c30f5a79ba1abf4a16ce636343eb1b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylife_odbserver-2.3.0rc1-py2.py3-none-any.whl:

Publisher: pypi-deploy-odbserver.yml on boschresearch/pylife

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page