Skip to main content

Ferramentas para otimizar o consumo paralelizado de api do pipefy, trantando os retornos.

Project description

utils-api-pipefy

Biblioteca que possui um kit de ferramentas úteis para ações usualmente rotineiras de quem trabalha com Pipefy, desde consulta de cards a criação de Pipes, Tables e atualizações em geral.

Utilizamos como apoio as collection requests e python-dotenv.

Instalação

pip install utils-api-pipefy

.env

HOST_PIPE=app or seu_host_pipefy
PIPE= seu_numero_pipe
NONPHASES= [id das fases que devem ser ignoradas]
TOKEN= seu_token
LOGENV = DEV or PROD [ PROD remove urlib3 logs ]
LOGNAME = nome_arquivo_logs
DISABLELOG = True or False [True desabilita a criação de pasta e arquivo de logs, temos essa opção para utilização em plataformas como Google Cloud Platform, neste caso o logging apenas imprime da tela, sem salvar o log.]

Exemplo de uso

import os
import json
import time
import logging
from utils_api_pipefy import Engine
from utils_api_pipefy import exceptions

if __name__ == "__main__":
    
    try:
        eng = Engine()
        
        # ALGUMAS DAS UTILIDADES DO ENGINE
        logging.info(eng.columns)
        print(json.dumps(eng.phases_id, ensure_ascii=False, indent=2))
        print(json.dumps(eng.fields, ensure_ascii=False, indent=2))
        print(json.dumps(eng.phases, ensure_ascii=False, indent=2))
                
        a = time.time()
        data=eng.run_all_data_phases()
        print(f"\n\nTempo total: {time.time()-a}\n\n")
        print()
    except Exception as err:
        raise exceptions(err)

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

utils_api_pipefy-0.4.7.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

utils_api_pipefy-0.4.7-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file utils_api_pipefy-0.4.7.tar.gz.

File metadata

  • Download URL: utils_api_pipefy-0.4.7.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.0 Windows/11

File hashes

Hashes for utils_api_pipefy-0.4.7.tar.gz
Algorithm Hash digest
SHA256 dae275e2ec026a64719f72d6b906a76800b1334e5fe56c1f8ea8fb3dffc4f8b1
MD5 f74ee6c5a36e84664d2b691524fb177b
BLAKE2b-256 0bb0c50e9aeadb2337c8b372f4d25e6a15276f03d1bd04d3e4fa2b648ba51ffc

See more details on using hashes here.

File details

Details for the file utils_api_pipefy-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: utils_api_pipefy-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.0 Windows/11

File hashes

Hashes for utils_api_pipefy-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3beea38cadd6c6169fb76f2b585fa54279a8cc05a07dc9782f796ef57d527bf3
MD5 9fa85a2de39c71c5bfaae9c6ea0803f8
BLAKE2b-256 80dcc0f7febfc3c116af3d466951582a929bf41f567c42886562e71b3dd8a111

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