Logo DYS (Doküman Yönetim Sitemi) API Python Implementation

Overview

dys-connector

Logo DYS (Dokuman Yonetim Sistemi) API Python Implementation

Python Package: https://pypi.org/project/dys-connector

Quick Start

from dys_connector.dys_api_manager import DYSManager
import json

idm_token = "XXXXXXXXXXXXXXXXXXXXXX"
dys_base_url = "https://DYS_BASE_URL"

manager = DYSManager(dys_base_url, TOKEN)

# Check state of DYS. FINE-WARNING-FAILURE
state = manager.check_state()

# Post Content to DYS
parent_folder_cid = "111111111111111111111"
doc_tag_id = "123123123123"
doc = {"file": open_file("testdoc1.html"), "filename": "testdoc1.html", "metadata": None}
f = [("file", (doc["filename"], doc["file"], "text/html"))]
dto = {
        "name": "testdoc1.html",
        "tagIds": [doc_type_id],
        "varValues": {"meta1": "value1", "meta2": "value2"},
        "documentTypeIds": []
       }
payload = {"uploadDocumentDTO": json.dumps(dto)}
res = manager.post_content(parent_folder_cid, payload, f)
print(res.text)

# Get and update document metadata
doc_cid = "abd123123123abc123123123"

meta = manager.get_doc_metadata(doc_cid)
external_url = manager.generate_external_share(doc_cid)
meta['doc_url'] = external_url
meta['dys_cid'] = cid
manager.update_metadata(cid,meta,doc_type_id_confluence)

# Copy and rename document
new_folder_cid = "123newfolder123123123"
res = manager.copy_document(doc_cid, new_folder_cid)
res2 = manager.rename_document(json.loads(res.text)["cid"], "new_doc_name")
You might also like...
An async API wrapper for Dress To Impress written in Python.

dti.py An async API wrapper for Dress To Impress written in Python. Some notes: For the time being, there are no front-facing docs for this beyond doc

A pet facts python api

Pet-Facts-API A pet facts python api Project Links API :- https://pet-facts-api.vercel.app Docs :- https://fayasnoushad.github.io/Pet-Facts-API

Python program that generates random user from API

RandomUserPy Author kirito sate #modules used requests, json, tkinter, PIL, urllib, io, install requests and PIL modules from pypi pip install Pillow

A Python wrapper API for operating and working with the Neo4j Graph Data Science (GDS) library

gdsclient NOTE: This is a work in progress and many GDS features are known to be missing or not working properly. This repo hosts the sources for gdsc

This repository provides a set of easy to understand and tested Python samples for using Acronis Cyber Platform API.

Base Acronis Cyber Platform API operations with Python !!! info Copyright © 2019-2021 Acronis International GmbH. This is distributed under MIT licens

Python client library for the Databento API

Databento Python Library The Databento Python client library provides access to the Databento API for both live and historical data, from applications

Box CRUD API With Python
Box CRUD API With Python

Box CRUD API: Consider a store which has an inventory of boxes which are all cuboid(which have length breadth and height). Each Cuboid has been added

Iss-tracker - ISS tracking script in python using NASA's API
Iss-tracker - ISS tracking script in python using NASA's API

ISS Tracker Tracking International Space Station using NASA's API and plotting i

AIST++ API This repo contains starter code for using the AIST++ dataset.
AIST++ API This repo contains starter code for using the AIST++ dataset.

AIST++ API This repo contains starter code for using the AIST++ dataset. To download the dataset or explore details of this dataset, please go to our

Releases(v0.2.11)
  • v0.2.11(Dec 7, 2022)

    What's Changed

    • dev: DYS now allows copying files without adding copy prefix in from … by @arifbozdag in https://github.com/logo-group/dys-connector/pull/9

    Full Changelog: https://github.com/logo-group/dys-connector/compare/0.2.9...v0.2.11

    Source code(tar.gz)
    Source code(zip)
  • 0.2.9(Oct 14, 2022)

    What's Changed

    • V 0.2.x by @arifbozdag in https://github.com/logo-group/dys-connector/pull/8 Developed: debug logging for DYS requests
    • dev: DysBadGatewayError added

    Full Changelog: https://github.com/logo-group/dys-connector/compare/v0.2.7...0.2.9

    Source code(tar.gz)
    Source code(zip)
  • v0.2.7(Sep 7, 2022)

    What's Changed

    Developed: Upload Folder feature added. Now users can create new folders directly from API.

    • dev: upload folder endpoint by @arifbozdag in https://github.com/logo-group/dys-connector/pull/7

    Full Changelog: https://github.com/logo-group/dys-connector/compare/v0.2.6...v0.2.7

    Source code(tar.gz)
    Source code(zip)
  • v0.2.6(Aug 19, 2022)

    What's Changed

    Update: Making HTTP requests to DYS no longer swallows HTTPError

    • V 0.2.x by @arifbozdag in https://github.com/logo-group/dys-connector/pull/6

    Full Changelog: https://github.com/logo-group/dys-connector/compare/v0.2.4...v0.2.6

    Source code(tar.gz)
    Source code(zip)
  • v0.2.4(May 16, 2022)

  • v0.2.3(Mar 23, 2022)

  • v0.2.1(Jan 23, 2022)

  • v0.2.0(Jan 17, 2022)

  • v0.1.3(Dec 17, 2021)

  • v0.1.1(Dec 1, 2021)

  • v0.1.0(Dec 1, 2021)

    v0.1.0 Release with these endpoints:

    "COPY": "/api/v2.0/document/copy/{}",
    "RENAME": "/api/v2.0/document/rename/{}",
    "UPLOAD": "/api/v2.0/document/uploadDocument",
    "STATE": "/api/diagnose",
    "DIR_STRUCTURE": "/api/v2.0/document/directoryStructure",
    "GET_DOC_META": "/api/v2.0/document/viewDocumentMetadata/{}",
    "UPDATE_DOC_META": "/api/v2.0/document/updateMetadata/{}",
    "GET_DOC_INFO": "/api/v2.0/document/getDocumentWithoutContent/{}",
    "EXTERNAL_SHARE": "/api/v2.0/document/externalShare/{}",
    "DOC_CONTENT": "/api/v2.0/document/content/{}"
    

    Full Changelog: https://github.com/logo-group/dys-connector/commits/v0.1.0

    Source code(tar.gz)
    Source code(zip)
Owner
Logo Group
Leading provider of Enterprise Application Software
Logo Group
Simple Python API for the Ergo Platform Explorer

Ergo is a "Resilient Platform for Contractual Money." It is designed to be a platform for applications with the main focus to provide an efficient, se

null 7 Jul 6, 2021
An unofficial python API for trading on the DeGiro platform, with the ability to get real time data and historical data.

DegiroAPI An unofficial API for the trading platform Degiro written in Python with the ability to get real time data and historical data for products.

Jorrick Sleijster 5 Dec 16, 2022
OpenSea NFT API App using Python and Streamlit

opensea-nft-api-tutorial OpenSea NFT API App using Python and Streamlit Tutorial Video Walkthrough https://www.youtube.com/watch?v=49SupvcFC1M Instruc

null 64 Oct 28, 2022
Algorand Python API examples

Algorand-Py Algorand Python API examples This repo will hold example scripts to monitor activities on Algorand main net. You can: Monitor your assets

Karthik Dutt 2 Jan 23, 2022
A Python wrapper for Matrix Synapse admin API

Synapse-admin-api-python A Python wrapper for Matrix Synapse admin API. Versioning This library now supports up to Synapse 1.45.0, any Admin API intro

Knugi 9 Sep 28, 2022
A python API act as Control Center to control your Clevo Laptop via wmi on windows.

ClevoPyControlCenter A python API act as Control Center to control your Clevo Laptop via wmi on windows. Usage # pip3 install pymi from clevo_wmi impo

null 3 Sep 19, 2022
Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede)

Simple and easy to use python API for the COVID registration booking system of the math department @ unipd (torre archimede). This API creates an interface with the official browser, with more useful functionalities.

Guglielmo Camporese 4 Dec 24, 2021
A PG3D API Made with Python

PG3D Python API A Pixel Gun 3D Python API (Public Ver) Features Count: 29 How To Use? import api as pbn Examples pbn.isBanned(192819483) -> True pbn.f

Karim 2 Mar 24, 2022
A(Sync) Interface for internal Audible API written in pure Python.

Audible Audible is a Python low-level interface to communicate with the non-publicly Audible API. It enables Python developers to create there own Aud

mkb79 192 Jan 3, 2023
Python bindings for the Plex API.

Python-PlexAPI Overview Unofficial Python bindings for the Plex API. Our goal is to match all capabilities of the official Plex Web Client. A few of t

Michael Shepanski 931 Jan 7, 2023