Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trafitto/bestemmie.org-api

Simple bestemmie.org api wrapper
https://github.com/trafitto/bestemmie.org-api

bestemmie italiano italy pip python python3 rest

Last synced: 1 day ago
JSON representation

Simple bestemmie.org api wrapper

Awesome Lists containing this project

README

        

# Bestemmie.org API for lazy person

[![Language: python](https://img.shields.io/badge/python-3-blue.svg)](https://www.python.org/) 

Simple wrapped [Bestemmie.org](http://bestemmie.org) [api](http://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