A client library for accessing indexserver REST API of the ECM system ELO Digital Office.
Project description
ELO indexserver client
Developed by Treskon GmbH published on PyPI: https://pypi.org/project/elo-indexserver-client/
A client library for accessing Indexserver component of ELO Digital Office GmbH via REST API.
Installation
pip install elo-indexserver-client
Usage
First, init the Service with the baseurl, user and password of the Indexserver REST API.
from eloservice.elo_service import EloService
rest_baseurl = "http://localhost::6056/ix-Archive/rest/"
rest_user = "elo"
rest_password = "elo"
elo_service = EloService(url=rest_baseurl, user=rest_user, password=rest_password)
Then you can use the service to access the Index server REST API. Here are often examples:
# Create Folder
folder_id = elo_service.create_folder(path="¶Foodplaces", separator="¶")
# upload_file
file_id = elo_service.upload_file(sord_id=folder_id, file_path="test.jpg", file_name="ichiran_ramen.jpg")
# overwrite_mask_fields
elo_service.overwrite_mask_fields(sord_id=file_id, mask_name="Images", metadata={
"LATITUDE": "35.73258119685775",
"LONGITUDE": "139.71412884357233",
"ITEMDOCDATE": "2023-12-26"
})
# search
search_result = elo_service.search(search_mask_fields={"LATITUDE": "35.73258119685775"}, max_results=1)
print(f"sordID of the found file: {search_result[0]}")
For more information visit the Documentation or see the docstrings in the code.
License
Copyright 2024 Treskon GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for elo_indexserver_client-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cdf5c8bfee07ed4208e28a713c0e9f16f455a6a1d5adde677c363fc5679fac9 |
|
MD5 | cc43fbd1f8402ffab4c451fad224141b |
|
BLAKE2b-256 | fef26a5dc57da077abd85dc9c70e6a4b0c5b250f8a81b37690761bac0cfe7e66 |
Hashes for elo_indexserver_client-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e13b61581e355f105864f62dc688747ec5d13408fa3e2e3d51d318cd19507ba |
|
MD5 | bd807314003df50dfb4125d5cae1188c |
|
BLAKE2b-256 | 7bcebc8ebe237939371c6375e42ade71d0b8f091aef756b62a1d6dc64bc906bf |