Skip to main content

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.

Metadata

Release files for zoho-somconnexio-python-client 0.1.6

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

Source distribution (sdist)

Source distribution for zoho-somconnexio-python-client 0.1.6
File Size Uploaded
zoho_somconnexio_python_client-0.1.6.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zoho-somconnexio-python-client 0.1.6
File Interpreter ABI Platform
zoho_somconnexio_python_client-0.1.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 29.9 kB

Release files / zoho_somconnexio_python_client-0.1.6.tar.gz

Download URL zoho_somconnexio_python_client-0.1.6.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad18c98fe3bcda2f809157d8427c11dd05dea29a9544d0eab7d875781fd148cd
BLAKE2b-256 checksum
How to use checksums
77bf76476a9c8df2ddb5b545b2593b4d9a3e49410eb769794fc431dbcbb22ed3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / zoho_somconnexio_python_client-0.1.6-py2.py3-none-any.whl

Download URL zoho_somconnexio_python_client-0.1.6-py2.py3-none-any.whl
Size 17.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
49d8decacf77767778fe5e0aff9638c36c76e47b1018f7a61040b61ecc239693
BLAKE2b-256 checksum
How to use checksums
de0f72a913b31cc552e4c4f79a2101013bef7cd6c49d44586310046ae7f4ff8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

1 release file

0.1.4

1 release file

0.1.3

3 release files

0.1.2

3 release files

0.1.1

3 release files

0.1.0

2 release files

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