mota-jokes
Uma biblioteca Python para honrar uma tradição importante: as piadas ruins do Mota.
O pacote é instalado como mota-jokes, mas o import fica como mota. A ideia é simples: transformar o folclore interno de um amigo que insiste em manter o meme vivo numa API Python publicável, testável e completamente desnecessária.
Ele tem dois módulos de primeira classe:
mota.jokes: acervo e motor de piadas ruins.mota.php: utilidades PHP emocionalmente duvidosas.
Instalação
python -m pip install mota-jokes
Para desenvolvimento local:
python -m pip install -e .
Exemplos
A piada canônica
from mota import jokes
print(jokes.tell("direito"))
Saída:
Nossa, bicho, já pensou em fazer Direito?
Por quê, tô fazendo errado?
Quando o ambiente entra na piada
from mota import jokes
print(jokes.tell("docker"))
Saída:
O Mota colocou a piada ruim no Docker.
Agora ela roda igual em qualquer máquina, infelizmente.
Quando o PHP exige respeito
from mota import php
print(php.composer_install("mota/bom-senso"))
Saída:
composer require mota/bom-senso
Pacote instalado. O humor ainda requer configuração manual.
Quando o problema é só um ponto e vírgula
from mota import php
print(php.semicolon("$mota = 'meme'"))
Saída:
$mota = 'meme';
Linha de comando
Depois de instalar:
python -m mota jokes direito
python -m mota jokes docker
python -m mota jokes --search python
python -m mota php framework
python -m mota php composer mota/bom-senso
Se o diretório de scripts do Python estiver no PATH, o comando mota também fica disponível diretamente:
mota jokes cache
Uso em Python
from mota import jokes, php
print(jokes.random())
print(jokes.explain("regex"))
print(php.echo())
API rápida
jokes.all()
jokes.ids()
jokes.random()
jokes.by_id("prod")
jokes.tell("cache")
jokes.search("python")
jokes.explain("php")
jokes.audit()
jokes.cringe_index()
php.echo()
php.is_php("Python")
php.translate("print('olá')")
php.framework()
php.ini_get("display_errors")
php.semicolon("$mota = 'meme'")
php.composer_install("mota/humor")
Metadata
Release files for mota-jokes 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mota_jokes-0.1.3.tar.gz | 8.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mota_jokes-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / mota_jokes-0.1.3.tar.gz
| Download URL | mota_jokes-0.1.3.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7bf8ae3669017f97960f3af6e3eef2a72ba4fc9c4612699deee4306699d4dd9
|
|
BLAKE2b-256 checksum How to use checksums |
fe0c2af1d438e4cf6fd4229b21a78fe05c7188d2389bc7ee5f6a07a6f5516844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / mota_jokes-0.1.3-py3-none-any.whl
| Download URL | mota_jokes-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
543ccc0be02ea1a45a1510d31855d68e79356ecc8cddc2ae3702b424172e489b
|
|
BLAKE2b-256 checksum How to use checksums |
a8d0259b8a26b957bdafcef5bd6f6e445d78517a16359e6e3b853ae1e63840b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for mota-jokes 0.1.3
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.