Skip to main content

passagefy 「通途」 使用说明

我们结合飞书的多维表格,实现了一个基于Django的应用,帮助用户创建一个技术反馈表,并且与飞书的多维表格进行同步。

集成了HAdmin的配置文件生成功能,帮助前端进行渲染。

快速开始

安装

pip install passagefy

使用方式

  • 在 settings.py 中添加 passagefy 到 INSTALLED_APPS 中
INSTALLED_APPS = [
    ...,
    'passagefy'
]
  • 并且设定两个变量,也放在settings.py中
PASSAGEFY_WEBHOOK_URL = "用于发送给飞书多维表格的webhook地址"
PASSAGEFY_WEBHOOK_TOKEN = "用于验证的token,如果没设定,就不要这个"

重点说明:token如果设定,那么接收和发送都是用相同的token,请注意配置飞书多维表格时设定好

  • 最后,在urls.py中添加如下代码
from django.urls import path, include
from passagefy.urls import passagefyAdminRouter
from passagefy.views import passagefy_webhook

urlpatterns = [
    ...,
    path('v1/passagefy/', include(passagefyAdminRouter.urls)),  # HAdmin配置文件相关接口
    path('v1/passagefy/webhook', passagefy_webhook),  # 飞书多维表格同步接口
]

版本历史

1.0.0 初始版本

Release files for passagefy 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for passagefy 1.0.0
File Size Uploaded
passagefy-1.0.0.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for passagefy 1.0.0
File Interpreter ABI Platform
passagefy-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / passagefy-1.0.0.tar.gz

Download URL passagefy-1.0.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0d837b4843d979cb8a8a9d8291fbb55b294d0f75a601cc592029ea1ca9b2a498
BLAKE2b-256 checksum
How to use checksums
0bb5234aecdd5b3d6220c81b0ec60361eaa1d8d83849c892bffea8e8d757cc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.6

Release files / passagefy-1.0.0-py3-none-any.whl

Download URL passagefy-1.0.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd7f42f8e17a4c947a86d75bacebbdebc3d7046adc0e551794f7ca9df5a1ae9e
BLAKE2b-256 checksum
How to use checksums
06760681f6a36e5040f13b9ec73302b9f2171a607ea06ccf8b304e7b25928066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page