Skip to main content

Pipefy manipulator

Project description

PipefyUts

Installation

pip install pipefyUts

Dependencies

This package requires the following dependencies:

  • requests
  • python-dateutil

These are automatically installed when you install pipefyUts via pip.

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)
    owners                   = CardField(list)
    files                    = CardField(list,is_file_path=True)

create card

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

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

Card Manipulation

Get a Card

card = pfy.getCard(card_id="<card_id>")

Move Card to Phase

card.move(phase_id="<phase_id>")

Delete Card

card.delete()

Get Card Fields

fields = card.fields()
output
{"field_id_1": "value1", "field_id_2": "value2", ...}

Update Field Value

card.updateFieldValue(field_id="<field_id>", value="<new_value>")

Add Labels

card.addLabels(label_ids=["<label_id1>", "<label_id2>"])

Remove Labels

card.removeLabels(label_ids=["<label_id1>", "<label_id2>"])

Remove All Labels

card.removeAllLabels()

Get Comments

comments = card.comments()

Add Comment

comment = card.newComment(text="<comment_text>")

Get Labels

labels = card.labels()

Change Log

1.1.7 (2026-04-07)

  • Fixed circular import issue between models.py and card.py
  • Added python-dateutil as a dependency
  • Removed unused import from typing_extensions

1.0.9 (2024-07-25)

  • File spaces upload adjustment

1.0.0 (2024-04-26)

  • First Release

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.2.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pipefyuts-1.2.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipefyuts-1.2.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pipefyuts-1.2.1.tar.gz
Algorithm Hash digest
SHA256 0ae19de4338bc2cfe56d887a4cf36c8433d99c52bbc904c82ba2425d4ff05dd6
MD5 ae7a5fa60bfbd8fe64a855a4a447e98f
BLAKE2b-256 73e05c26c58621d585c03b11ecb2a62bb6cedc474e56809b44b02145ab04d544

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipefyuts-1.2.1.tar.gz:

Publisher: deploy.yml on ZdekPyPi/PipefyUts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pipefyuts-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pipefyuts-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pipefyuts-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5e24de4018cba151cbc6b3587577282bf10297a73a2b2072f9977ac7ed0c749
MD5 b475d92e1527ca1b543bac7b8d2410f4
BLAKE2b-256 3888be25241c590d8cf2c9cb9a9619259046b39b8316e15fca658eebef5ffd57

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipefyuts-1.2.1-py3-none-any.whl:

Publisher: deploy.yml on ZdekPyPi/PipefyUts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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