engine4-python
⚙️ Python library for the ENGINE4 API.
Installation
Use pip to install the package:
pip3 install engine4
Usage
First of all, you import ENGINE4 so that you can create an instance of the class.
You need to pass the base_url of the API server:
from engine4 import ENGINE4
engine4 = ENGINE4('https://test.engine4.io/')
Now you can authenticate yourself with username, password and client_id:
def authenticate() -> str:
username = 'my_username'
password = 'my_password'
client_id = 'my_client_id'
result = engine4.authenticate(username, password, client_id)
return result.access_token
The access token is required for the following calls.
Here you can find examples:
from engine4 import FetchFilterOptions
access_token = authenticate()
def fetch() -> list:
entity_id = '12e2eb88-814a-0a98-40e2-b006586dfd59'
skip = 0
take = 2
with_long_values = False
is_active = True
filter = FetchFilterOptions('CreatedDate', '>', '2018-01-01T00:00:00.000Z')
result = engine4.fetch(access_token, entity_id, skip, take, False, is_active, filter)
return fetch_result['items']
Changelog
See CHANGELOG.md.
License
See LICENSE.
Release files for engine4 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| engine4-0.0.2.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| engine4-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / engine4-0.0.2.tar.gz
| Download URL | engine4-0.0.2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12a066b5cfaf461d783a16e9e47267d6e19f115779af33935a53e682172025a3
|
|
BLAKE2b-256 checksum How to use checksums |
2d6b712b684d1c16b85f6b29a6d2a065bcdc4eb1c6cdd4b022bbbc560d899070
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / engine4-0.0.2-py3-none-any.whl
| Download URL | engine4-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28b48080ca80fe2dc65ee677542d41fe02006299f6fa058fc8d707f93529fa75
|
|
BLAKE2b-256 checksum How to use checksums |
ce5dc519a7999638082d5d822c8196032ccf9ff8b2162611642494afa92ceaa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|