Skip to main content

A client library for accessing indexserver REST API of the ECM system ELO Digital Office.

Project description

ELO Indexserver Client

Developed by Treskon GmbH

A client library for accessing Indexserver component of ELO Digital Office GmbH via REST API.

Motivation

The motivation for this project was to provide a simple and easy to use client library for accessing the Indexserver REST API. While ELO provides an OpenAPI specification for the Indexserver REST API, it appears to be a port of the Java SDK. Which allows to use all the features of the Java SDK, similar to what we could do in the ELO Java Client itself. This comes in favor for people who already have experience in working with the ELO Java SDK. However, for people who are not familiar with the ELO ecosystem the naming conventions, structure, method names, BSET Flags, etc. are far from intuitive and easy to understand.

Therefore, we decided to create a client library that wraps the original OpenAPI specification and exposes only a handful of features that cover the most common use cases.

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:9090/ix-Archive/rest/"
rest_user = "elo"
rest_password = "elo"
elo_service = EloService(url=rest_baseurl, user=rest_user, password=rest_password)

Known issue: Due to encoding issues the user and password should not contain special characters.

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.

There are also some demos via juptyer notebook in the examples folder. See Readme for more information.

Technical Details

The client library is based on the OpenAPI specification provided by ELO Indexserver. Downloaded from the ELO Server under the url http://eloIndexServer:9090/ix/resources/openapi.json. The used ELO version was 20.0.0.111.

Based on the OpenAPI specification, the client library was generated using the openapi-python-client tool.

Contributing and Support

We are happy to receive any contributions to this library. Feel free to open an issue or a pull request in our GitHub repository. To get started read the Contributing Guide.

We're not able to offer any commercial assistance for this library, but we're always happy to hear your thoughts and assist you with any issues, as time permits.

Feel free to open an issue in our GitHub repository or contact us via mail at: internal-dev@treskon.at.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elo_indexserver_client-0.1.29.tar.gz (696.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elo_indexserver_client-0.1.29-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file elo_indexserver_client-0.1.29.tar.gz.

File metadata

  • Download URL: elo_indexserver_client-0.1.29.tar.gz
  • Upload date:
  • Size: 696.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure

File hashes

Hashes for elo_indexserver_client-0.1.29.tar.gz
Algorithm Hash digest
SHA256 fc0bca7363e6c7b11a2c2b3450d02a361d127bdbd3331d350d3271c10a9eae88
MD5 fea4b19f80716d26b683ebaf24fcbb2a
BLAKE2b-256 7f0388d17323bd23f19ddb3922b1ec977e6408d035e508e3e58e4a2ea607871d

See more details on using hashes here.

File details

Details for the file elo_indexserver_client-0.1.29-py3-none-any.whl.

File metadata

File hashes

Hashes for elo_indexserver_client-0.1.29-py3-none-any.whl
Algorithm Hash digest
SHA256 0efb9a605e5bc705129c70b3f74ddd5382ca3c9c7100bf99154a78532f77ae4b
MD5 1bca7c52c3913112d2c4222fff359c74
BLAKE2b-256 33cb64d9e64ab8d8412abf2f10e1e3faf976fc4aa919a5f3a6fa86e9392507de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page