Python wrapper for OpenCell (using REST API)
Project description
: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
Yoy maybe want to create a virtualenv before installing dependencies.
If you are using virtualenvwrapper
(https://virtualenvwrapper.readthedocs.io/en/latest/).
- Create virtualenv with python 2.7
$ which python
/usr/bin/python
$ 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
License
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 Distributions
Hashes for pyopencell-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b5c714836cb7a68db67a9402bbe3f87dadb5248c91f64245763b984a211a384 |
|
MD5 | a6bc9e588c70e2c4adae9d0d81f732ac |
|
BLAKE2b-256 | 4a2d3d785a455978db7b4c2f355d08396257920bbd77426927416c8b9ccf01a2 |
Hashes for PyOpenCell-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4f7005272483be46575da5e0d4cf9f37f9095f451554d6a414339ccbe7d5f12 |
|
MD5 | c02640cea76be5f8fa87a5f7af662f13 |
|
BLAKE2b-256 | 1640f2b0a50f825b8807746d59c22199e43e9910d23be03a23269f32bf4839cc |