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
Aoc 2021 kedro playground with python

AOC 2021 Overview This is your new Kedro project, which was generated using Kedro 0.17.5. Take a look at the Kedro documentation to get started. Rules

1 Dec 20, 2021
Add your recently blog and douban states in your GitHub Profile

Add your recently blog and douban states in your GitHub Profile

Bingjie Yan 4 Dec 12, 2022
Streamlit apps done following data professor's course on YouTube

streamlit-twelve-apps Streamlit apps done following data professor's course on YouTube Español Curso de apps de data science hecho por Data Professor

Federico Bravin 1 Jan 10, 2022
Code repository for the Pytheas submersible observation platform

Pytheas Main repository for the Pytheas submersible probe system. List of Acronyms/Terms USP - Underwater Sensor Platform - The primary platform in th

UltraChip 2 Nov 19, 2022
Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

tldr: Use Pillow The pyscreenshot module is obsolete in most cases. It was created because PIL ImageGrab module worked on Windows only, but now Linux

455 Dec 24, 2022
Python Script to add OpenGapps, Magisk, libhoudini translation library and libndk translation library to waydroid !

Waydroid Extras Script Script to add gapps and other stuff to waydroid ! Installation/Usage "lzip" is required for this script to work, install it usi

Casu Al Snek 331 Jan 02, 2023
Lightweight and Modern kernel for VK Bots

This is the kernel for creating VK Bots written in Python 3.9

Yrvijo 4 Nov 21, 2021
Adds a Bake node to Blender's shader node system

Bake to Target This Blender Addon adds a new shader node type capable of reducing the texture-bake step to a single button press. Please note that thi

Thomas 8 Oct 04, 2022
Minos-python - A framework which helps you create reactive microservices in Python

minos-python Summary [TODO] Packages minos-microservice-aggregate minos-microser

Minos Framework 380 Jan 04, 2023
WMIC Serial Checker For Python

WMIC Serial Checker Follow me here: Discord | Github FR: A but éducatif seulement. EN: For educational purposes only. ❓ Informations FR: WMIC Serial C

AkaTool's 0 Apr 25, 2022
A community-driven python bot that aims to be as simple as possible to serve humans with their everyday tasks

JARVIS on Messenger Just A Rather Very Intelligent System, now on Messenger! Messenger is now used by 1.2 billion people every month. With the launch

Swapnil Agarwal 1.3k Jan 07, 2023
Enjoy Discords Unlimited Storage

Discord Storage V.3.5 (Beta) Made by BoKa Enjoy Discords free and unlimited storage... Prepare: Clone this from Github, make sure there either a folde

0 Dec 16, 2021
200 LeetCode problems

LeetCode I classify 200 leetcode problems into some categories and upload my code to who concern WEEK 1 # Title Difficulty Array 15 3Sum Medium 1324 P

Hoang Cao Bao 108 Dec 08, 2022
Transform your boring distro into a hacking powerhouse.

Pentizer Transform your boring distro into a hacking powerhouse. Pentizer is a personal project that imports Kali and Parrot repositories in any Debia

Michail Tsimpliarakis 2 Nov 05, 2021
Tracing and Observability with OpenFaaS

Tracing and Observability with OpenFaaS Today we will walk through how to add OpenTracing or OpenTelemetry with Grafana's Tempo. For this walk-through

Lucas Roesler 8 Nov 17, 2022
ASVspoof 2021 Baseline Systems

ASVspoof 2021 Baseline Systems Baseline systems are grouped by task: Speech Deepfake (DF) Logical Access (LA) Physical Access (PA) Please find more de

91 Dec 28, 2022
dbt adapter for Firebolt

dbt-firebolt dbt adapter for Firebolt dbt-firebolt supports dbt 0.21 and newer Installation First, download the JDBC driver and place it wherever you'

23 Dec 14, 2022
Flight Reservation App With Python

Flight Reservation App With Python

victor-h. 1 Nov 21, 2021
Python script to automate the change of desktop background

wallomator Python script to automate the change of desktop background A python script that automates the process of changing the desktop background. I

Mohammed Haaris Javed 10 Jun 16, 2022
Backtest framework based on DAGs

MultitaskQueue It's a simple framework based on three composed concepts: Task: A task is the smaller unit of execution or simple a node in the DAG, ev

4 Dec 09, 2021