Micro-service to analyze and convert files
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.1
- Package version: 1.0.1
- Build date: 2025-01-28T11:12:51.187874+01:00[Europe/Paris]
- Generator version: 7.11.0
- Build package:
org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit https://pts-project.org/
Python 3.8+
The python package is hosted on PyPi, you can install directly using:
pip install mandolin-python-client
Then import the package:
import mandolin_python_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import mandolin_python_client
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import mandolin_python_client
from mandolin_python_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = mandolin_python_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with mandolin_python_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = mandolin_python_client.AnalyzersApi(api_client)
file = None # bytearray |
try:
# Analyze With Tika
api_response = api_instance.analyze_with_tika_analyzer_tika_post(file)
print("The response of AnalyzersApi->analyze_with_tika_analyzer_tika_post:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AnalyzersApi->analyze_with_tika_analyzer_tika_post: %s\n" % e)
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|---|---|---|
AnalyzersApi | analyze_with_tika_analyzer_tika_post | POST /analyzer/tika | Analyze With Tika |
AnalyzersApi | analyze_with_yara_analyzer_yara_post | POST /analyzer/yara | Analyze With Yara |
ConvertersApi | generate_thumbnail_converter_thumbnail_post | POST /converter/thumbnail | Generate Thumbnail |
DefaultApi | root_get | GET / | Root |