Skip to main content
mbpro é um módulo criado principalmente para aqueles que não gostam de ter muito trabalho com códigos

EXEMPLOS


#<--------------------------------------------------->#
#Função rand()
#< Com a rand() você pode gerar um número aleatório ou até mesmo uma letra do alfabeto >#

#rand() com números: from mbpro import rand

number = rand(7, 888) #gera um número aleatório de 7 a 888 print(number)

#Obs: Os números podem ser em string também

#rand() com letras:

letra = rand('e', 'm') #gera uma letra de E a M print(letra)

#<---------------------------------------------------># #Função pega() #< Com a pega() você pode capturar um determinado texto dentro de um HTML por exemplo ># from mbpro import pega str = 'spanf Aqui está um exemplo da pega():hsgs 1$MBPRO t35'

dados = pega(str, '1$', 'te5') #retorna o texto MBPRO print(dados)

#<---------------------------------------------------># #Função connect() #< Com a connect() você pode testar a conexão de um proxy no GOOGLE ># from mbpro import connect str = connect('36.66.235.147:57550') #retorna um JSON com os dados e status do proxy

#a connect() testa proxies com no máximo 7000 ms, caso ultrapassar o retorno será DIE

#<---------------------------------------------------># #Função curl() #< Com a curl() você pode realizar um request tanto GET quanto POST de maneira fácil ># from mbpro import curl postfields = 'post1=carlos&post2=jeferson&post3=antonio&post4=pedro'

data = curl('http://proxy.mbpro.in/data.php', post=postfields).text() print(data) #Atributos ao curl: #url -> urlencode #header -> em forma de dict (opcional) #timeout -> em inteiro (opcional) #post (opcional)

#<---------------------------------------------------># #Função pretty_print() #< Com a pretty_print() você pode printar um json em PRETTY_PRINT ># from mbpro import pretty_print

json = {"nome":"carlos","idade":"19 anos","sexo":"masculino"} #O json também pode vir em str

pretty = pretty_print(json)

print(pretty)

Copyright


Todos os direitos reservados a equipe MBPro Services and Revolutions

By: Master Bank

Metadata

Release files for mbpro 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mbpro 0.0.5
File Size Uploaded Provenance Actions
mbpro-0.0.5.tar.gz 3.3 kB Without provenance Details for mbpro-0.0.5.tar.gz

Release files / mbpro-0.0.5.tar.gz

Download URL mbpro-0.0.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef6648ca0c4ffc755f811e48c4c91d02efc5d7d4ecf343cb0bef29cda7097612
BLAKE2b-256 checksum
How to use checksums
9359fa2cb15362dfe58ae05fc85f83f9b23f01638143a4e2a714014712f2a737
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for mbpro 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page