Uma biblioteca Python para interagir com a API Rick and Morty.
Project description
rickdex
Biblioteca Python para facilitar o acesso à API Rick and Morty de forma simples e intuitiva, permitindo a busca de informações sobre personagens, episódios e localizações diretamente no seu código Python.
Requisitos
- Python 3.8 ou superior
Instalação
Para instalar, execute:
pip install rickdex
Como Usar
Importe as classes principais:
from rickdex import Character, Location, Episode
Exemplos de Uso
- Buscar informações gerais da API:
character = Character()
info = character.info()
print(info)
- Buscar por ID:
rick = character.get_one(1)
print(rick)
- Buscar vários por lista de IDs:
lista = character.get_all([1, 2, 3])
print(lista)
- Filtrar API:
resultado = character.api_filter(name="Rick", status="alive")
print(resultado)
- Filtrar elemento da API:
nome = character.item_filter(1, "name")
print(nome)
Estrutura
- Rickdex: Classe para interação com API contendo os metódos genéricos.
- Character: Herda os metódos da classe Rickdex.
- Location: Herda os metódos da classe Rickdex.
- Episode: Herda os metódos da classe Rickdex.
Licença
Consulte a política de uso da API Rick and Morty. Recomenda-se utilizar esta biblioteca para fins pessoais ou acadêmicos, respeitando as diretrizes da API e do seu repositório de código.
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 rickdex-0.3.1.tar.gz.
File metadata
- Download URL: rickdex-0.3.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d612e50cb28acd55f252bebfdc7b08f66161b0e2219a213efa97005a1bcbd69b
|
|
| MD5 |
ae357fdee326b1b977badb3420656e39
|
|
| BLAKE2b-256 |
f9660706bc24ae2b5c9ff35ad231964bfac5c3319545ee9f5443540bd7c272b7
|
File details
Details for the file rickdex-0.3.1-py3-none-any.whl.
File metadata
- Download URL: rickdex-0.3.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
555a5fa1ccc09d6c872cc184e52f70f14611275055b12784d59e29237293e467
|
|
| MD5 |
232f04fb21632223fd103e090d170098
|
|
| BLAKE2b-256 |
bcf21ed93d0f4f821adc8b7af5b13d7659d5a2c74270cfc700ad08b2d0f5a1cd
|