Skip to main content

Um pacote de padronizacao de pacotes a serem utilziados pela Prime

Project description

PrimeBotFramework

Este Pacote foi desenvolvido com o intuito de facilitar e agilizar o desenolvimento de automações com base no Robot Framework. Neste Pacote podese encontrar diversos sistemas e suas implementaçoes.

Instalação

pip install PrimeBotFramework

DeathByCaptcha

Usage

from PromeBot.DeathByCaptcha import DeathByCaptcha

token = "MY TOKEN HERE"
h_id  = "H ID FROM WEB PAGE"
url   = "PAGE URL"
dth = DeathByCaptcha(token)
solved = dth.resolveHCaptcha(h_id,url,timeout=30)

print(solved)

Vault

Utilização

from PromeBot.Vault import VaultClient

token = "s.WrhdYlmstBXsdNIL2ztsccPF"
vCli = VaultClient(token)
cred = vCli.get_credentials("facebook","secrets")

print(cred)

OData

Utilização

Conectando ao serviço

from PromeBot.OData import OauthParams,ExchangeGraph

config = OauthParams(
        username      = "<username>",
        password      = "<password>",
        client_id     = "<client_id>",
        client_secret = "<client_secret>",
        tenant_id     = "<tenant_id>",
        user_id       = "<user_id>"
    )
OData = ExchangeGraph(config=config)

Enviando email

msg = OData.newMessage()
msg.set_subject("test Subject")
msg.set_body("Text","Esse e um email de teste!")
msg.set_toRecipients(["MyEmail@some.com"])
msg.set_attachments([".../myfile.txt"])
msg.send()

Pastas

folders = OData.get_folders()
print(folders)

Lendo Emails de uma pasta

subf  = OData.get_folder_by_path("Teste/subfolder1")
mails = subf.get_mails()
print(mails)

Lendo Emails nao lidos

#PODE ADCIONAR O PARAMETRO -> top=1 PRA TRAZER SO 1 ITEM
mails  = subf.get_mails(filter="isRead eq true")
print(mails)

Marcando email como lido

mails[0].set_read(True)

Documents

Utilização

from PrimeBot.Documents import cnpjDigitoVerificador
# ADCIONA OS 2 DIGITOS VERIFICADORES AO FINAL DO CNPJ
cnpj = "XXXXXX0001XX"
cnpj = cnpjDigitoVerificador(cnpj)
print(cnpj)


OData


Mongo


Elastic

Change Log

0.0.1 (2022-11-01)

  • First Release

0.0.3 (2022-11-01)

  • Fixed ChangeLog

0.0.3 (2022-11-07)

  • DeathByCaptcha: Implementação da quebra de captcha por imagem.

0.0.4 (2022-11-10)

  • Documents: Ajuste na funcao de cpf para verificar '0001'

0.0.5 (2022-11-17)

  • DeathByCaptcha: foi inserido uma persistencia de 30s em captcha por imagem

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

PrimeBotFramework-0.0.5.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

PrimeBotFramework-0.0.5-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file PrimeBotFramework-0.0.5.tar.gz.

File metadata

  • Download URL: PrimeBotFramework-0.0.5.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for PrimeBotFramework-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7e50ec360280813263b9259c666a36747e69cfb3ea683b52a84d7a5702a30b72
MD5 251a0d62b4e96605ad3130715d0b97c9
BLAKE2b-256 6465c3dd58f2a8c6e70943c3e7dd777c911ed8b492379fbc03d8212c4504734a

See more details on using hashes here.

File details

Details for the file PrimeBotFramework-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for PrimeBotFramework-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fdac701c16764b749e89f690b8ab7f07b16a425a5f402642aa84b70a54704d
MD5 8e8f55fe63dd98bab4d2eadea3a32a31
BLAKE2b-256 2b21049d191c7de69082fe74a9b8aa2b9c09bde1734c3c690e558c62379e8dff

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