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: 22 days ago
JSON representation
Simple bestemmie.org api wrapper
- Host: GitHub
- URL: https://github.com/trafitto/bestemmie.org-api
- Owner: Trafitto
- Created: 2018-01-16T10:23:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T18:34:32.000Z (over 4 years ago)
- Last Synced: 2024-04-29T17:07:07.759Z (about 1 year ago)
- Topics: bestemmie, italiano, italy, pip, python, python3, rest
- Language: Python
- Size: 10.7 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bestemmie.org API for lazy person
[](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