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!
- Host: GitHub
- URL: https://github.com/scientific-dev/factful.py
- Owner: scientific-dev
- License: mit
- Created: 2020-09-10T06:53:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-12T10:53:11.000Z (almost 6 years ago)
- Last Synced: 2025-07-03T05:04:32.337Z (12 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
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