如何使用Python将文件连接并推送到informatica

2024-09-21 00:18:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要使用python连接到informatica服务器,并将文件推送到文件夹中。我在网上查了一下,发现关于图书馆“infa”(https://github.com/kradecki/infa)的信息很少

这是我在该页面上找到的代码:

import infa

# Create Pmrep class instance and open a connection to the repository
p = infa.Pmrep(
    '/opt/informatica/9.6.1/server/bin/pmrep',
    r='Repository_Name',
    h='localhost',
    o='6005',
    n='admin',
    x='secret_password'
)

# Get a list of all aggregator transformations in the "Demo" folder
a = p.listobjects(o='transformation', t='aggregator', f='Demo')
print(a)

# Close connections and cleanup
p.cleanup()

然而,关于它的信息并不多。看起来github页面似乎处于非活动状态

有人能给我指出正确的方向吗?请帮忙


Tags: and文件thegithub服务器文件夹信息图书馆

热门问题