Skip to main content

Python wrapper for SomConnexio's Zoho (using REST API)

Project description

Latest Release pipeline status coverage report

:warning: WORK IN PROGRESS :warning:

This library is a Python wrapper for accessing Somconnexio's Zoho.

Resources

  • CRMLeads

Installation

$ pip install zoho-somconnexio-python-client

Configuration Environment

You need define the Zoho CRM_CLIENT_ID, CRM_ORGANIZATION_ID, CRM_CLIENT_SECRET and ZOHO_CRM_STORE as environment variables. You need define:

ZOHO_CRM_CLIENT_ID=<YOUR CLIENT ID>
ZOHO_CRM_CLIENT_SECRET=<YOUR CLIENT SECRET>
ZOHO_CRM_ORGANIZATION_ID=<YOUR ORGANIZATION>
ZOHO_CRM_STORE=<YOUR PATH TO STORE TOKEN & LAYOUTS>

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

To execute functions, you need define:

ZOHO_APIKEY_ACTIVAT_FROM_ODOO=<FUNCTION_API_KEY>

Development

Setup environment

  1. Install pyenv
curl https://pyenv.run | bash
  1. Build the Python version
pyenv install  3.11.9
  1. Create a virtualenv
pyenv virtualenv 3.11.9 zoho-somconnexio-python-client
  1. Activate virtualenv
pyenv activate zoho-somconnexio-python-client
  1. Install dependencies
pyenv exec pip install -r requirements-dev.txt
  1. Install pre-commit hooks
pyenv exec pre-commit install

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 .

Formatting

We use pre-commit to execute Black as formatter.

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 __init__.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.

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

zoho_somconnexio_python_client-0.1.3.tar.gz (12.7 kB view details)

Uploaded Source

Built Distributions

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

zoho_somconnexio_python_client-0.1.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

zoho_somconnexio_python_client-0.1.3-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zoho_somconnexio_python_client-0.1.3.tar.gz.

File metadata

File hashes

Hashes for zoho_somconnexio_python_client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3d280a2da1be11dbfd961e1f2ae903d3ec663144476281cfb8114c8a2493147b
MD5 a2c91a853ebbdd04e4ac9499079766c9
BLAKE2b-256 5608c5528977afefebe56be1fe2f393a8cc7674664874a8e18e130bd0c2cf7f3

See more details on using hashes here.

File details

Details for the file zoho_somconnexio_python_client-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for zoho_somconnexio_python_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e317eb2c3a864e2a0c05a3421e21657e40864a8dc058cdbfd8d5f03488bfe804
MD5 db23a5aab22639b1e4ab0a840c60e21f
BLAKE2b-256 5abe7375e346e1703f4f56106086d243c1a46d68a8a41df84616da0bda1fc0da

See more details on using hashes here.

File details

Details for the file zoho_somconnexio_python_client-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for zoho_somconnexio_python_client-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ee9b1ed61c840cb8d88f53e2c24c68ff6627458a898d70520206a7bac7ad8383
MD5 ad7aeebb27b8555405c07cd7dd7ae40a
BLAKE2b-256 6c1bedfa2d16f9177c6ec20977d06205541b281c04dd4771c6c4843e8a252954

See more details on using hashes here.

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