Skip to main content

connect feishu content franchise

Project description

飞书文档内容连接器

install:

pip install feishuconnector

code usage:

from feishuconnector import FeishuConnector

fc = FeishuConnector()
fc.init("user***", "pass***)

实际使用的流程:

在多维表格的编辑页面,url一般是这样的:https://puyuan.feishu.cn/wiki/wikcnlBvPJ8xoTSfVtQwGBkrUWc?table=tblGZPQYMzrwRMeo&view=vewWhDJdAM, 注意提取其中 node_token=wikcnlBvPJ8xoTSfVtQwGBkrUWc, table_id=tblGZPQYMzrwRMeo

调用如下:

from feishuconnector import FeishuConnector

fc = FeishuConnector()
fc.init("user***", "pass***)
# 获取多维表格全部记录
records = fc.get_bitable_records('wikcnlBvPJ8xoTSfVtQwGBkrUWc', 'tblGZPQYMzrwRMeo')

# 在多维表格中插入记录
fc.insert_bitable_records('wikcnlBvPJ8xoTSfVtQwGBkrUWc', 'tblGZPQYMzrwRMeo', records)

# 获取普通表格某range的全部数据,values is a list(rows) of list(cols)
values = fc.get_sheet_data("wikcnQgBgZCWUx7w6ZpzzLXX3bc", "e792af")

# 在普通表格中追加数据
fc.append_sheet_data("wikcnQgBgZCWUx7w6ZpzzLXX3bc", "e792af", values)

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

feishuconnector-0.1.8.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

feishuconnector-0.1.8-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file feishuconnector-0.1.8.tar.gz.

File metadata

  • Download URL: feishuconnector-0.1.8.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.5

File hashes

Hashes for feishuconnector-0.1.8.tar.gz
Algorithm Hash digest
SHA256 aeb594e71b9d9eb2a73499289388b072b0589be169204416983f8ea2ad24eae1
MD5 f535c054358761b7cd367d45ad593212
BLAKE2b-256 86962a6c799357b9f52980f60e353110aa2b36c209e840e9bc19649e99b31979

See more details on using hashes here.

File details

Details for the file feishuconnector-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for feishuconnector-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 09835cfdb3f487fb530c21cf09c53908098c56a68b7dc864d175be7265075f36
MD5 e9f03bb6d4cec296d8233e91a01cebe8
BLAKE2b-256 f0d1377b5fa08eb5db2923902c9d1346f7723071bd18ec88d0e5db0c54804329

See more details on using hashes here.

Supported by

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