Python wrapper for SomConnexio's Zoho (using REST API)
Project description
: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.
Development
Setup environment
- Install
pyenv
curl https://pyenv.run | bash
- Build the Python version
pyenv install 3.11.9
- Create a virtualenv
pyenv virtualenv 3.11.9 zoho-somconnexio-python-client
- Activate virtualenv
pyenv activate zoho-somconnexio-python-client
- Install dependencies
pyenv exec pip install -r requirements-dev.txt
- 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:
- Add any entries missing from merged merge requests.
- Duplicate the
[Unreleased]header. - Replace the second
Unreleasedwith 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:
- Update the
__version__var in__init__.pymatching 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 that merge commit and push it.
- Once the pipeline has successfully passed, go approve the
publishstep.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zoho-somconnexio-python-client-0.1.1.tar.gz.
File metadata
- Download URL: zoho-somconnexio-python-client-0.1.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3142aa581d93f6e1d2966a4e6982d5ed21be87e4e15b84f45a567d07d1a0433
|
|
| MD5 |
1b9ff0f1bbc100510940c97bb4d822df
|
|
| BLAKE2b-256 |
cb26741890f24f5b96c806e64b18aee5a34ccc048438694c4eb334a65cf70030
|
File details
Details for the file zoho_somconnexio_python_client-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zoho_somconnexio_python_client-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b048d430c6aef1efd5a24c542f0ee1b8c946119b7ab4a3576e6583735122c70
|
|
| MD5 |
ab81e9041361781cfbcb9b1878cdaefd
|
|
| BLAKE2b-256 |
d9d93d9c656fa66d023bc9bae6c33dd845fbc1ce3245ec6b5884ebf099c22457
|
File details
Details for the file zoho_somconnexio_python_client-0.1.1-py2.py3-none-any.whl.
File metadata
- Download URL: zoho_somconnexio_python_client-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cc0aa2c0ae51cab7127711f6c5744960884000bc62e543c9d597b3742b5eb35
|
|
| MD5 |
659312c674406139537c6f42275d423e
|
|
| BLAKE2b-256 |
87354236cd4aca6fb013cda3460d77cc7ff2c11c78f9adeb8b1987bdc0916dbd
|