Skip to main content

izaber.wamp.zerp

Base module that brings together most of the requirements to allow ZERP WAMP connectivity within Zaber

Installation

Install the module for your local version of python using the command below. If you have both python 2 and 3 installed then you might need to replace the python keyword with python2, py -2, python3, or py -3 based on the python version you want to use the module for.

python -m pip install izaber-wamp-zerp

This installs the module that can be used in your custom ZERP based python scripts and also provides a command line tool called wampcli to make simple WAMP calls from the command line.

Configuration

The module reads all of its settings from a globally defined configuration file located in the root directory of the user's computer. This configuration file is required for proper operation of the module.

  • Create a file named ~/izaber.yaml (i.e. in the home directory).

    • Linux: /home/yourusername/izaber.yaml
    • MacOS: /Users/yourusername/izaber.yaml
    • Windows: C:\Users\yourusername\izaber.yaml
  • Paste the following into the file to get started and connect to the sandbox database

    default:
        wamp:
            connection:
                url: 'wss://nexus.izaber.com/ws'
                username: 'username'
                password: 'password_for_user'
                timeout: 10
            zerp:
                database: 'sandbox'
    
  • Replace the username and password with your zerp user and a dashboard API key (or your ZERP password but that is not recommended).

  • More detailed information about defining the configuration files can be found here

Usage

Development

For hacking on the code, this requires the following:

  • git
  • >=python3.8
  • pdm

Setup

git clone git@gitlab.izaber.com:systems/izaber-wamp-zerp.git
cd izaber-wamp-zerp
pdm install

And now it's possible to make changes to the code

Tests via Docker

It's not always desireable to pollute the environment with multiple versions of python so using docker compose is the recommend method for testing.

  1. Copy the ./volumes/izaber.yaml.tempate and update with the appropriate permissions to access Nexus
  2. Running the following command will run the tests against pypy3 and from cpython versions 3.8 through 3.13.
    docker compose up
    

If you would like to work within the container, have a look at the docker-compose.yml and update the CMD to sleep infinity and it will provide a shell environment (via something like docker compose exec src bash) for testing the code within a container.

Tests via Docker via Dev-Env

It's not always desireable to pollute the environment with multiple versions of python so using the dev-env is the recommended way of performing testing.

  1. Clone the dev-env the way you normally would
  2. Ensure that python-izaber-wamp-zerp is enabled in the configuration izaber.yaml
  3. Running docker compose up should instantiate a container like XXXX-python-izaber-wamp-zerp-1

Using the new container will allow testing and verification that the various pythons will function when deployed.

Packaging

  • Ensure that the pyproject.toml has the newest version.
  • Update the VERSIONS.md with the changes made into the library
  • Then, assuming access to the pypi account.
    pdm build
    pdm publish
    

Metadata

Release files for izaber_wamp_zerp 2.9.20260105

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for izaber_wamp_zerp 2.9.20260105
File Size Uploaded Provenance
izaber_wamp_zerp-2.9.20260105.tar.gz 20.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for izaber_wamp_zerp 2.9.20260105
File Interpreter ABI Platform
izaber_wamp_zerp-2.9.20260105-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / izaber_wamp_zerp-2.9.20260105.tar.gz

Download URL izaber_wamp_zerp-2.9.20260105.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d557cb383fb651abebd56f12b35db4aca414d4cddbec677af1c3b5dd7babb08d
BLAKE2b-256 checksum
How to use checksums
34a0d608270c72757f9a1a8149860147fdcebac53a439c469e701fdd36f8395b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.3 CPython/3.13.2 Linux/6.8.0-87-generic

Release files / izaber_wamp_zerp-2.9.20260105-py3-none-any.whl

Download URL izaber_wamp_zerp-2.9.20260105-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70cbd048ac7c6969ae2a64d912b4ae1da65c4d4f04c2e478529b0d7a6a29308e
BLAKE2b-256 checksum
How to use checksums
40463bfab5639a15d4ae22445d96b7868be83cf42dbe78ca3e13b3b2580633ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.26.3 CPython/3.13.2 Linux/6.8.0-87-generic

Security for izaber_wamp_zerp 2.9.20260105

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page