Skip to main content

Python package for Somconnexio data syncing in OTRS

Project description

Python 2.7/3.8 module to manage the SomConnexio's ERP integration with OTRS

This library manages all the business logic between the Som Connexio's systems and the ticketing tool OTRS.

Processes

OTRS Configuration

Configure the web services in OTRS:

Ticket Connector (Provider)

CustomerUser Connector (Provider)

  • Usage: It's a RPCConnector. It interacts with the OTRS objects directly calling the class methods.

  • Configuration: You need admin permissions to manage it. Contact with your OTRS provider.

MMCaller Connector (Requester)

Environment configuration

OTRSClient

The client to interact with OTRS. You need to define the next environment variables to use the client:

OTRS_URL=       # Baseurl of the OTRS instance
OTRS_USER=      # Creadencials of user with write acces to OTRS
OTRS_PASSW=

Python version

We are using Pyenv to fix the Python version and the virtualenv to test the package.

You need:

$ pyenv install 3.8.2
  • Create the virtualenv to use:
$ pyenv virtualenv 3.8.2 otrs_somconnexio

Python packages requirements

Install the Python packages in the virtual environment:

$ pyenv exec pip install -r requirements.txt

Run tests

To run the test you can run:

$ tox

Also you can run only the tests running:

$ pytest .

and if you want the coverage info:

$ pytest --cov .

If running the tests with tox, they will be tested with both python3.8 and python2.7. This is because OTRS-SomConnexio works with an ERP which uses python2, as well as with other packages that use python3.

Release process

Release and publish the package to PyPi:

  • Update the VERSION var in setup.py matching the version you specified in the CHANGELOG.
  • Open a merge request with these changes for the team to approve.
  • Merge it, add a git tag on the Deployments > Releases section and push it.
  • Once the pipeline has successfully passed, approve the publish step.

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

otrs_somconnexio-0.5.12.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

otrs_somconnexio-0.5.12-py2.py3-none-any.whl (132.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file otrs_somconnexio-0.5.12.tar.gz.

File metadata

  • Download URL: otrs_somconnexio-0.5.12.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for otrs_somconnexio-0.5.12.tar.gz
Algorithm Hash digest
SHA256 61d52629ab96020b736c2eed4622018f1974796f6b6f163f069a5050e41791de
MD5 693c14fb1b821c5c752d6e741fd54041
BLAKE2b-256 b142c55547e78d1f674c4eb4f55c69f317419bc5ded83af895b30167b65d12df

See more details on using hashes here.

File details

Details for the file otrs_somconnexio-0.5.12-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for otrs_somconnexio-0.5.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ddc57e29777f4ca7a6b9115443af1d0db518ef837fe63ad2794013510f83d317
MD5 cb61635e4ff8790f81719b2162bbf269
BLAKE2b-256 e84c77a96683bd600943ead2eee08954509965db77075fad84b190d722f1a1bd

See more details on using hashes here.

Supported by

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