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)
    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"}

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.0.tar.gz (13.1 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.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipefyuts-1.2.0.tar.gz
  • Upload date:
  • Size: 13.1 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.0.tar.gz
Algorithm Hash digest
SHA256 b85006bacfbdcb9e776b054f06d46144d942ce975ac6a437c4fb3bc8d96c34ec
MD5 b187e0b5bbfbecec39115636896b49c5
BLAKE2b-256 f9e004c458fb86035c33ae226c05b2ae180c8ed699020e7c1970a38c59a83953

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipefyuts-1.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: pipefyuts-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c81fd74b91de6be660a6b050a5490668e0900f38e0f720e4163e339ad0314823
MD5 8a9690054702b7bc689547f0b21fbfd4
BLAKE2b-256 e9fb34a6740c36e05d454b7bea324d267c032f970bbdf111dd329061ab5f2bfa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pipefyuts-1.2.0-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