Skip to content

Trafitto/bestemmie.org-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bestemmie.org API for lazy person

Language: python 

Simple wrapped Bestemmie.org api pip package

Installation

pip install bestemmie

Usage

Get random bestemmia

from bestemmie import Bestemmie
Bestemmie().random()

Return a simple bestemmia

DIO CANE

Get all bestemmie

from bestemmie import Bestemmie
Bestemmie().all()

Return array of bestemmie objects with the single count of how many time was inserted

[
    {
        "bestemmia": "DIO CANE",
        "count": 2
    },
    ...
]

Add bestemmia

from bestemmie import Bestemmie
Bestemmie().add(bestemmia, *False)

*You can pass an optional bool params for printing a success message