Uma biblioteca Python para manter vivas as piadas ruins do Mota.
Project description
mota-jokes
Uma biblioteca Python para honrar uma tradicao importante: as piadas ruins do Mota.
O pacote e instalado como mota-jokes, mas o import fica como mota.
Ele tem dois modulos de primeira classe:
mota.jokes: acervo e motor de piadas ruins.mota.php: utilidades PHP emocionalmente duvidosas.
from mota import jokes, php
print(jokes.tell("direito"))
print(php.composer_install("mota/bom-senso"))
Instale localmente
python -m pip install -e .
Depois:
python -m mota
python -m mota jokes direito
python -m mota php
Uso em Python
from mota import jokes, php
print(jokes.random())
print(jokes.explain("direito"))
print(php.echo())
API rapida
jokes.all()
jokes.random()
jokes.by_id("direito")
jokes.tell("direito")
jokes.search("python")
jokes.explain("php")
jokes.cringe_index()
php.echo()
php.is_php("Python")
php.translate("print('ola')")
php.framework()
php.ini_get("display_errors")
php.semicolon("$mota = 'meme'")
php.composer_install("mota/humor")
Publicacao no PyPI
O nome mota ja existe no PyPI, entao este projeto usa mota-jokes como nome de distribuicao. Isso nao afeta o import:
pip install mota-jokes
from mota import jokes
Para publicar:
python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*
Antes de publicar, troque os links em pyproject.toml para o repositorio real.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mota_jokes-0.1.0.tar.gz.
File metadata
- Download URL: mota_jokes-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70ce499351a12d0f6421af73f70cba2eb62991e0b6092c73e7afb62d16be7dbc
|
|
| MD5 |
26fc97a48dda83ff52508e86a2e1742d
|
|
| BLAKE2b-256 |
76ae92ddc803e91357008aea48f88f23f23d202dc012515c2903d702b05dad75
|
File details
Details for the file mota_jokes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mota_jokes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
769561231d660fe0e2f51d5b1ebdb8e1acae957f362f0c38ddbd3acb1b428986
|
|
| MD5 |
78f1723ae1e9ed646b82be607ee6a253
|
|
| BLAKE2b-256 |
342a435be0f857043cbc3836b8743200109d8943281063849dce98cd54413867
|