Skip to main content

Pipefy manipulator

Project description

PipefyUts

Installation

pip install pipefyUts

GitHub

https://github.com/ZdekPyPi/PipefyUts

Usage

Auth

python code
from pipefyUts import Pipefy

ORG_ID =  "<your_org_id>"
TOKEN  = "<your_token>"

pfy = Pipefy(ORG_ID,TOKEN)

listMembers

pfy.listMembers()
output
[
    {"id":1,"name":"name_1","email":"email_1@email.com"},
    {"id":2,"name":"name_2","email":"email_2@email.com"},
    {"id":3,"name":"name_3","email":"email_3@email.com"},
    {"id":4,"name":"name_4","email":"email_4@email.com"}
]

listStartFormFields

pfy.listStartFormFields(pipe_id="<pipe_id>")
output
[
    {"id":"field_1","label":"field_label_1"},
    {"id":"field_2","label":"field_label_2"},
    {"id":"field_3","label":"field_label_3"},
    {"id":"field_4","label":"field_label_4"}
]

listCardsFromPhase

pfy.listCardsFromPhase(phase_id="<phase_id>")
output
[
    {"id":"card_id_1","fields":[{...},{...},{...},...]},
    {"id":"card_id_2","fields":[{...},{...},{...},...]},
    {"id":"card_id_3","fields":[{...},{...},{...},...]},
    {"id":"card_id_4","fields":[{...},{...},{...},...]}
]

createAttachment

path = pfy.createAttachment(file_path="<my_file>")
output
"orgs/123456-1234-1234-1234-123asd5as1ad5s1/uploads/123ad3-123ddas-123cs-123da-asdc21cas21/my_file.txt"

cardCreation

authentication first

from pipefyUts import Pipefy,NewCard,CardField

ORG_ID =  "<your_org_id>"
TOKEN  = "<your_token>"

pfy = Pipefy(ORG_ID,TOKEN)

create card schema

class MyCard(NewCard):
    #DEFAULT
    __pipeid__               = "<my_pipe_id>"
    __title__                = "<card_title>"

    #PIPEFY FIELDS
    description              = CardField(str)
    total_ammount            = CardField(float)
    files                    = CardField(list)
    files                    = CardField(list,is_file_path=True)

create card

#CREATE CARD OBJECT
myNewCard = MyCard(
    description   = "AdtPro",
    total_ammount = 123.46,
    files         = ["<owner_id>"],
    files         = [r".\Doc1.pdf",r".\Doc2.txt"]
)

#RUN CARD CREATION
pfy.createCard(card=myNewCard)
output
{"id":"card_id"}

deleteCard

pfy.deleteCard(card_id="<card_id>")

Change Log

1.0.0 (2024-04-26)

  • First Release

1.0.9 (2024-07-25)

  • File spaces upload adjustment

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

pipefyuts-1.1.1.tar.gz (9.1 kB view details)

Uploaded Source

File details

Details for the file pipefyuts-1.1.1.tar.gz.

File metadata

  • Download URL: pipefyuts-1.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for pipefyuts-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a30b806b9e0acda9b758c61698d94e988327cc78b1f8b4388b1f583e11b6a6e8
MD5 16acd3023346eacb52ee04f513217a1f
BLAKE2b-256 70465e2b5f22e33f0db281b026803ebd6386d5879b4db3b843d8e3e1ee5ce18f

See more details on using hashes here.

Supported by

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