Skip to main content

Python wrapper for OpenCell (using REST API)

Project description

pipeline status coverage report

:heart: Inspired by PyOTRS :heart:

PyOpenCell is a Python wrapper for accessing Open Cell (Version 6) using the REST API.

You can see all the API information here

Features

Access an OpenCell instance to:

  • find a Customer by ID

Installation

Dependencies

Create a virtualenv before installing dependencies.

If you are using virtualenvwrapper (https://virtualenvwrapper.readthedocs.io/en/latest/).

  • Create virtualenv with python 3.7.7
$ which python
/usr/bin/python3.7
$ mkvirtualenv --python=/usr/bin/python pyopencell

If you are using pyenv with pyenv-virtualenv plugin:

$ pyenv virtualenv pyopencell
  • Install requirements:
$ pip install -r requirements.txt

Configuration Environment

You need define the OpcenCell API credentials as environment variables. You need define:

OPENCELL_BASEURL=<YOUR OC HOST>/opencell
OPENCELL_USER=<YOUR OC USER>
OPENCELL_PASSWORD=<YOUR OC PASSWORD>

If this envvars are not defined, a exception will be raised with the name of the envvar not defined.

Python Usage

Run test suite

$ tox

Release process

Update CHANGELOG.md following this steps:

  1. Add any entries missing from merged merge requests.
  2. Duplicate the [Unreleased] header.
  3. Replace the second Unreleased with a version number followed by the current date. Copy the exact format from previous releases.

Then, you can release and publish the package to PyPi:

  1. Update the VERSION var in setup.py matching the version you specified in the CHANGELOG.
  2. Open a merge request with these changes for the team to approve
  3. Merge it, add a git tag on that merge commit and push it.
  4. Once the pipeline has successfully passed, go approve the publish step.

License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyopencell-0.4.9.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

pyopencell-0.4.9-py2.py3-none-any.whl (26.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyopencell-0.4.9.tar.gz.

File metadata

  • Download URL: pyopencell-0.4.9.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for pyopencell-0.4.9.tar.gz
Algorithm Hash digest
SHA256 419db7f6e0789a1df9b915caa2e42519b5fee9638784a52b4bcdc89968243c99
MD5 d59a1f89a9bc48fb97b3377cef523901
BLAKE2b-256 94ea80f5031e9a430a7eda5fc4fb45a429f8951808362286fb83c614dbef934d

See more details on using hashes here.

File details

Details for the file pyopencell-0.4.9-py2.py3-none-any.whl.

File metadata

  • Download URL: pyopencell-0.4.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for pyopencell-0.4.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 93b1dae8973098b0eaf46f70c00d2407d8edac0e08cfc6c8fcb11b9d26f5c5b8
MD5 e64ec3faaf92f15804dc7c68153e6ca5
BLAKE2b-256 31d3a73139963c043d64aa9c7588a884f0d52f462c7f7b14ab89e795991438df

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