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

https://github.com/scientific-dev/factful.py

Easy way to get random facts with a selected cateogary in python!
https://github.com/scientific-dev/factful.py

Last synced: 11 months ago
JSON representation

Easy way to get random facts with a selected cateogary in python!

Awesome Lists containing this project

README

          

# Factful.py

A Package which can give you Random Facts in an easy way!

> **Note:** This is my first every Pypi Package so i made the codes a bit damaged. I will clear those damage in next update or else just help me by doing a pull request! Thanks!

# Links
- [Discord Support Server](https://discord.com/invite/FrduEZd)
- [GitHub Profile](https://github.com/Scientific-Guy)
- [Factful.js NPM](https://www.npmjs.com/package/factful.py.js)

# Quick Example

#### 1. Getting Random Facts

```py
# Import factful.py Module
import factful

# Define facts function
facts = factful.facts()

# Getting random fact from random cateogary
print(facts["all"])

# Getting random facts from a paticular cateogary!
# All Cateogaries: "computer", "food", "emoji", "space"
print(facts["computer"])
print(facts["food"])
print(facts["emoji"])
print(facts["space"])
```

> We also have this module as **Javascript NPM Package**! [https://www.npmjs.com/package/factful.js](https://www.npmjs.com/package/factful.js). You can join our Discord Server for support!

### © Science Spot | Decimal Development - 2020