Skip to main content

No project description provided

Project description

# PipefySDK

PipefySDK is a Python SDK for interacting with the Pipefy API. It provides a set of methods to manage cards, fields, attachments, and more.

## Installation

You can install the package using `pip` or `poetry`:

```sh
pip install pipefysdk
poetry add pipefysdk

Usage

Importing the SDK

To use the SDK, you need to import the PipefySDK class and initialize it with your Pipefy token and URL.

from pipefysdk import PipefySDK

token = "your_token"  # You don't need to include "Bearer"
url = "https://api.pipefy.com/graphql"
pipefy_sdk = PipefySDK(token=token, url=url)

Methods

Get Card Information

Retrieve information about a specific card by its ID.

card_info = pipefy_sdk.get_card_info(card_id=12345)
print(card_info)

Update a Single Card Field

Update a specific field of a card.

response = pipefy_sdk.update_single_card_field(card_id="12345", field_id="field_id", new_value="new_value")
print(response)

Update Multiple Card Fields

Update multiple fields of a card.

fields = [{"field_id": "field_id1", "new_value": "value1"}, {"field_id": "field_id2", "new_value": "value2"}]
response = pipefy_sdk.update_multiple_card_fields(card_id="12345", fields=fields)
print(response)

Search Value in a Field

Search for a value in a specific field of a card.

value = pipefy_sdk.search_value_in_field(card_id=12345, field_id="field_id")
print(value)

Search Multiple Values in Fields

Search for values in multiple fields of a card.

field_ids = ["field_id1", "field_id2"]
values = pipefy_sdk.search_multiple_values_in_fields(card_id=12345, field_ids=field_ids)
print(values)

Move Card to a New Phase

Move a card to a different phase.

response = pipefy_sdk.move_card_to_phase(new_phase_id=67890, card_id=12345)
print(response)

Get Attachments from a Card

Retrieve attachments from a specific card.

attachments = pipefy_sdk.get_attachments_from_card(card_id=12345)
print(attachments)

Set Assignee in a Card

Set the assignee(s) for a specific card.

assignee_ids = [111, 222]
response = pipefy_sdk.set_assignee_in_card(card_id=12345, assignee_ids=assignee_ids)
print(response)

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

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

pipefysdk-0.1.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

pipefysdk-0.1.4-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pipefysdk-0.1.4.tar.gz.

File metadata

  • Download URL: pipefysdk-0.1.4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11

File hashes

Hashes for pipefysdk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bc86ffc83a4059336079060aa8ea52dc7a77d70937abb0a26ba1c0553dd44449
MD5 5d2123da7b5cd2542fcadc584f2b8d9f
BLAKE2b-256 f666a31b70cad8fb9d89000927064da38da83c38e2a9b3ab00a27492080e2c11

See more details on using hashes here.

File details

Details for the file pipefysdk-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pipefysdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.1 Windows/11

File hashes

Hashes for pipefysdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 224457ab8854c1814a810791cb41d284f5380eec31fe8749c974b67b630c3261
MD5 ece0616a3819596910617a9668891655
BLAKE2b-256 c0a86b879f35028c47b8a748c779cc1957e8fe476072c36c3b5bc4bccb47394c

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