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

Authentication

from pipefyUts import Pipefy

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

pfy = Pipefy(ORG_ID, TOKEN)

Core methods

List organization members

members = pfy.members()

Upload attachment

attachment_path = pfy.createAttachment(file_path="path/to/file.txt")

Download file

downloaded = pfy.downloadFile(file_path="https://...", destination=".")

Get a card

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

Get a phase

phase = pfy.getPhase(phase_id="<phase_id>")

Get a pipe

pipe = pfy.getPipe(pipe_id="<pipe_id>")

Pipe operations

pipe       = pfy.getPipe(pipe_id="<pipe_id>")
fields     = pipe.startFormFields()
cards      = pipe.cards()
find_cards = pipe.findCards(field_id="cnpj", field_value="12.123.123/1234-12")
phases     = pipe.phases()
labels     = pipe.labels()

Phase operations

phase = pfy.getPhase(phase_id="<phase_id>")
cards = phase.cards()

Card manipulation

card = pfy.getCard(card_id="<card_id>")
card.move(phase_id="<phase_id>")
card.delete()
fields = card.fields()
card.updateFieldValue(field_id="<field_id>", value="<new_value>")
comments = card.comments()
comment  = card.newComment(text="<comment_text>")
labels   = card.labels()
card.addLabels(label_ids=["<label_id1>", "<label_id2>"])
card.removeLabels(label_ids=["<label_id1>", "<label_id2>"])
card.removeAllLabels()
card.refresh()

Example: card fields output

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

Create card using NewCard

from pipefyUts import Pipefy, NewCard, CardField

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

pfy = Pipefy(ORG_ID, TOKEN)

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

    description = CardField(str)
    total_ammount = CardField(float)
    owners = CardField(list)
    files = CardField(list, is_file_path=True)

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

created = pfy.createCard(card=my_new_card)
print(created)
Example output
Card<My_Card_Title>

CardField helpers

  • CardField(str) for text fields
  • CardField(int) for integer fields
  • CardField(float) for numeric fields
  • CardField(list) for list values
  • CardField(list, is_file_path=True) for list of file paths to upload

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.5.tar.gz (13.2 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.5-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pipefyuts-1.2.5.tar.gz
  • Upload date:
  • Size: 13.2 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.5.tar.gz
Algorithm Hash digest
SHA256 94f389bff467d39f57b98d9b2a437ebf7998eedfde516b77caac3dd31b8bf60b
MD5 f29cceefcf7731c98f47cb3634488a31
BLAKE2b-256 2e918527ce71911b02624537e921dff472ade65d3f1f3a23f8f9519ec7527118

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pipefyuts-1.2.5-py3-none-any.whl
  • Upload date:
  • Size: 14.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 906baa0fcae40962d5e0a415b5c3128b1efd68417478e15101b9acb19d6da2d7
MD5 9e0778e87cff765b9b80b004042a7e2c
BLAKE2b-256 e1d2fba3303452cb77feaa92f9e3ce8da9f61eac08fd5563b4b9df966657e27f

See more details on using hashes here.

Provenance

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