An open API service indexing awesome lists of open source software.

https://github.com/embloy/embloy-python

Embloy's Python SDK for interacting with your Embloy integration.
https://github.com/embloy/embloy-python

pypi-package sdk sdk-python

Last synced: 3 months ago
JSON representation

Embloy's Python SDK for interacting with your Embloy integration.

Awesome Lists containing this project

README

          

# [Embloy Python](https://pypi.org/project/embloy-sdk) · [![GitHub license](https://img.shields.io/badge/license-AGPL3.0-blue.svg)](https://github.com/Embloy/Embloy-Python/blob/main/LICENSE) [![PyPI version](https://img.shields.io/pypi/v/embloy-sdk.svg?style=flat)](https://pypi.org/project/embloy-python) [![Issues](https://img.shields.io/github/issues/Embloy/Embloy-Python)](https://github.com/Embloy/Embloy-Python/issues) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Embloy/Embloy-Python/pulls)

Embloy's Python SDK for interacting with your Embloy integration.

## Usage

Install Embloy-Node SDK:

```Bash
# Install through pip
pip3 install --upgrade embloy_sdk
```

or in your requirements.txt
```python
# Find the version you want to pin:
# https://pypi.org/project/embloy-sdk/#history
# Specify that version in your requirements.txt file
embloy_sdk>=0.3.28
```

Integrate it in your service:

```Python
# In your application or script
from embloy_sdk import EmbloyClient, EmbloySession, SessionOptions

# Replace with your actual values
client_token = 'your_client_token'
options = SessionOptions('your_success_url', 'your_cancel_url')
session = EmbloySession("job", "your_job_slug", options)

# Make a request to the Embloy API
redirect_url = EmbloyClient(client_token, session).make_request()
```

## Run the tests
```Bash
python -m unittest tests/test_embloy_client.py
```

## Publish Package
```Bash

python setup.py sdist bdist_wheel

twine upload dist/*
```

---

© Carlo Bortolan, Jan Hummel

> Carlo Bortolan  · 
> GitHub [@carlobortolan](https://github.com/carlobortolan)  · 
> contact via [bortolanoffice@embloy.com](mailto:bortolanoffice@embloy.com)
>
> Jan Hummel  · 
> GitHub [@github4touchdouble](https://github.com/github4touchdouble)  · 
> contact via [hummeloffice@embloy.com](mailto:hummeloffice@embloy.com)