semvec/pypi-packages huggingface dataset:
remote-pdb-client 1.0.4
A client for the RemotePDB debugger
License: MIT License
Keywords: remotepdb debugging pdb telnet

# RemotePDB Client

## A client for debugging code instrumented with the RemotePDB package

The [RemotePDB package](https://pypi.org/project/remote-pdb/) is a useful way to remotely debug code (i.e., code running in Docker). Normally, a user can simply wait for the `set_trace()` command to be executed, then telnet to the appropriate port. However, in applications such as Django, this necessitates manually disconnecting the telnet session before another breakpoint can be processed.

With RemotePDB Client, the user can instantiate the client at any time, and it will pend until a debug connection becomes available. Likewise, after a PDB `c(ontinue)` command the client will disconnect internally and await the next available connection.

You can use `h(elp)` within the debugger to see the usual remote commands. `q(uit)`/`e(xit)` will forward the given command and then exit the Client completely.

A persistent history is available and is saved for re-use between client sessions.

The `cl(ear)` breakpoints command is disallowed if it has no arguments (clearing all breakpoints causes the remote process to pend on y/n input).

If you are debugging code in a Docker container, remember to expose the internal port externally via your `docker-compose` command or file (keeping in mind that the internal and external port numbers should be different).

There is a limit to what you can debug with this - if you call `set_trace()` within code running in multiple threads/processes at the same time, only one will be connected to and the rest will pend or fail.

To avoid problems with `BdbQuit` being raised by RemotePDB 2.0+ on remote disconnect, before exiting via Ctrl-C, `e`xit, or `q`uit we purposely send a "`c`ontinue" command.

## Disclaimer

DO NOT use RemotePDB Client to connect to untrusted hosts!
mbpro 0.0.5
Faz tudo o que voce quiser
License: MIT License
Keywords: mbpro expert

<pre><code>mbpro é um módulo criado principalmente para aqueles que não gostam de ter muito trabalho com códigos
</code></pre>
<h3>EXEMPLOS</h3>
<pre><code>
#<--------------------------------------------------->#
#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)

</code></pre>
<h3>Copyright</h3>
<pre><code>
Todos os direitos reservados a equipe MBPro Services and Revolutions

By: Master Bank
</code></pre>