randfacts 0.21.0__py3-none-any.whl → 0.22.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- randfacts/__init__.py +42 -25
- randfacts/__main__.py +3 -2
- randfacts/randfacts.py +45 -37
- randfacts/safe.txt +5 -26
- randfacts/unsafe.txt +1 -1
- randfacts-0.21.0.dist-info/LICENSE.txt → randfacts-0.22.1.dist-info/LICENSE +2 -2
- {randfacts-0.21.0.dist-info → randfacts-0.22.1.dist-info}/METADATA +14 -10
- randfacts-0.22.1.dist-info/RECORD +10 -0
- {randfacts-0.21.0.dist-info → randfacts-0.22.1.dist-info}/WHEEL +1 -2
- randfacts-0.22.1.dist-info/entry_points.txt +3 -0
- randfacts/__version__.py +0 -8
- randfacts-0.21.0.dist-info/RECORD +0 -11
- randfacts-0.21.0.dist-info/top_level.txt +0 -1
randfacts/__init__.py
CHANGED
|
@@ -5,49 +5,66 @@ You can retrieve facts via the get_fact method. randfacts also allows for
|
|
|
5
5
|
execution via the command line. See the examples section for more details.
|
|
6
6
|
|
|
7
7
|
Code Examples:
|
|
8
|
-
|
|
8
|
+
Example usage of randfacts in code.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Generate a random SFW (safe for work) fact.
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
>>> randfacts.get_fact()
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Generate a random NSFW (not safe for work) fact.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
>>> randfacts.get_fact(only_unsafe=True)
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Generate a random mixed fact (possibility of both SFW and NSFW facts)
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
>>> # or
|
|
22
|
-
>>> randfacts.get_fact(filter_enabled=False)
|
|
20
|
+
>>> randfacts.get_fact(filter_enabled=False)
|
|
23
21
|
|
|
24
22
|
CLI Examples:
|
|
25
|
-
|
|
23
|
+
randfacts can be executed via the command line with the following commands:
|
|
26
24
|
|
|
27
|
-
|
|
25
|
+
Normal execution; only safe facts
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
$ python3 -m randfacts
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
The unsafe argument can be supplied to provide only unsafe facts
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
$ python3 -m randfacts --unsafe
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
The mixed argument can be provided to provide both SFW and NSFW facts.
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
$ python3 -m randfacts --mixed
|
|
38
36
|
|
|
39
|
-
|
|
37
|
+
More help.
|
|
40
38
|
|
|
41
|
-
|
|
39
|
+
$ python3 -m randfacts --help
|
|
42
40
|
|
|
43
41
|
"""
|
|
44
42
|
|
|
45
|
-
from .__version__ import __title__, __description__, __url__, __version__, __author__, __author_email__, __license__, __copyright__
|
|
46
|
-
from randfacts.randfacts import get_fact, safe_facts, unsafe_facts, all_facts
|
|
47
|
-
|
|
48
43
|
import warnings as _warnings
|
|
44
|
+
|
|
45
|
+
from randfacts.randfacts import (
|
|
46
|
+
__version__,
|
|
47
|
+
all_facts,
|
|
48
|
+
get_fact,
|
|
49
|
+
safe_facts,
|
|
50
|
+
unsafe_facts,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
__all__ = [
|
|
54
|
+
"__version__",
|
|
55
|
+
"all_facts",
|
|
56
|
+
"get_fact",
|
|
57
|
+
"safe_facts",
|
|
58
|
+
"unsafe_facts",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
|
|
49
62
|
# Deprecated methods
|
|
50
|
-
def getFact(filter_enabled=True, only_unsafe=False):
|
|
51
|
-
"""This method is deprecated. Please use get_fact"""
|
|
52
|
-
_warnings.warn(
|
|
53
|
-
|
|
63
|
+
def getFact(filter_enabled: bool = True, only_unsafe: bool = False) -> str: # noqa: N802
|
|
64
|
+
"""This method is deprecated. Please use get_fact."""
|
|
65
|
+
_warnings.warn(
|
|
66
|
+
"getFact is deprecated. Please use get_fact",
|
|
67
|
+
DeprecationWarning,
|
|
68
|
+
stacklevel=2,
|
|
69
|
+
)
|
|
70
|
+
return get_fact(filter_enabled, only_unsafe) # noqa: DOC201
|
randfacts/__main__.py
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
from .randfacts import _cli_entrypoint
|
|
2
|
-
|
|
1
|
+
from .randfacts import _cli_entrypoint # pyright: ignore[reportPrivateUsage]
|
|
2
|
+
|
|
3
|
+
_cli_entrypoint()
|
randfacts/randfacts.py
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"""Contains the core functionality of randfacts."""
|
|
2
|
+
|
|
3
3
|
import argparse
|
|
4
|
+
import contextlib
|
|
5
|
+
import importlib.metadata
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
from random import choice
|
|
8
|
+
|
|
9
|
+
dir_path = Path(__file__).resolve().parent
|
|
4
10
|
|
|
5
|
-
|
|
11
|
+
__version__ = ""
|
|
12
|
+
with contextlib.suppress(Exception):
|
|
13
|
+
__version__: str = importlib.metadata.version("randfacts")
|
|
6
14
|
|
|
7
|
-
with
|
|
8
|
-
safe_facts = [
|
|
9
|
-
fact.rstrip('\r\n ')
|
|
10
|
-
for fact in f.readlines()
|
|
11
|
-
if fact.rstrip('\r\n ') != ''
|
|
12
|
-
]
|
|
15
|
+
with (dir_path / "safe.txt").open(encoding="utf-8") as f:
|
|
16
|
+
safe_facts = [fact.rstrip("\r\n ") for fact in f if fact.rstrip("\r\n ")]
|
|
13
17
|
|
|
14
|
-
with
|
|
15
|
-
unsafe_facts = [
|
|
16
|
-
fact.rstrip('\r\n ')
|
|
17
|
-
for fact in f.readlines()
|
|
18
|
-
if fact.rstrip('\r\n ') != ''
|
|
19
|
-
]
|
|
18
|
+
with (dir_path / "unsafe.txt").open(encoding="utf-8") as f:
|
|
19
|
+
unsafe_facts = [fact.rstrip("\r\n ") for fact in f if fact.rstrip("\r\n ")]
|
|
20
20
|
|
|
21
21
|
all_facts = safe_facts + unsafe_facts
|
|
22
22
|
|
|
@@ -27,20 +27,19 @@ def get_fact(filter_enabled: bool = True, only_unsafe: bool = False) -> str:
|
|
|
27
27
|
Parameters
|
|
28
28
|
----------
|
|
29
29
|
filter_enabled : bool
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
The `filter_enabled` parameter determines if the function will filter
|
|
31
|
+
out potentially inappropriate facts. Defaults to True.
|
|
32
32
|
|
|
33
33
|
only_unsafe : bool
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
The `only_unsafe` parameter determines if the function will only give
|
|
35
|
+
unsafe (NSFW) facts. Takes precedence over the `filter_enabled` argument.
|
|
36
36
|
|
|
37
|
-
Returns
|
|
37
|
+
Returns:
|
|
38
38
|
------
|
|
39
39
|
str
|
|
40
|
-
|
|
40
|
+
A random fact.
|
|
41
41
|
|
|
42
42
|
"""
|
|
43
|
-
|
|
44
43
|
if only_unsafe:
|
|
45
44
|
return choice(unsafe_facts)
|
|
46
45
|
if filter_enabled is False:
|
|
@@ -48,37 +47,46 @@ def get_fact(filter_enabled: bool = True, only_unsafe: bool = False) -> str:
|
|
|
48
47
|
return choice(safe_facts)
|
|
49
48
|
|
|
50
49
|
|
|
51
|
-
def _cli_entrypoint():
|
|
50
|
+
def _cli_entrypoint() -> None:
|
|
52
51
|
"""Entrypoint for execution via command-line."""
|
|
53
|
-
|
|
54
52
|
parser = argparse.ArgumentParser(
|
|
55
|
-
description=
|
|
53
|
+
description="Generate random facts from the command-line",
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
parser.add_argument(
|
|
57
|
+
"-V",
|
|
58
|
+
"--version",
|
|
59
|
+
action="store_true",
|
|
60
|
+
help="Print the package version and exit",
|
|
56
61
|
)
|
|
57
62
|
|
|
58
63
|
group = parser.add_mutually_exclusive_group()
|
|
59
64
|
group.add_argument(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
action=
|
|
63
|
-
help=
|
|
65
|
+
"-m",
|
|
66
|
+
"--mixed",
|
|
67
|
+
action="store_true",
|
|
68
|
+
help="Include safe and unsafe facts",
|
|
64
69
|
)
|
|
65
70
|
|
|
66
71
|
group.add_argument(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
action=
|
|
70
|
-
help=
|
|
72
|
+
"-u",
|
|
73
|
+
"--unsafe",
|
|
74
|
+
action="store_true",
|
|
75
|
+
help="Only include unsafe facts",
|
|
71
76
|
)
|
|
72
77
|
|
|
73
78
|
args = parser.parse_args()
|
|
74
79
|
|
|
75
|
-
if args.
|
|
76
|
-
print(
|
|
77
|
-
|
|
80
|
+
if args.version: # pyright: ignore[reportAny]
|
|
81
|
+
print(__version__)
|
|
82
|
+
return
|
|
83
|
+
if args.mixed: # pyright: ignore[reportAny]
|
|
84
|
+
print(get_fact(filter_enabled=False))
|
|
85
|
+
elif args.unsafe: # pyright: ignore[reportAny]
|
|
78
86
|
print(get_fact(only_unsafe=True))
|
|
79
87
|
else:
|
|
80
88
|
print(get_fact())
|
|
81
89
|
|
|
82
90
|
|
|
83
|
-
if __name__ ==
|
|
91
|
+
if __name__ == "__main__":
|
|
84
92
|
_cli_entrypoint()
|
randfacts/safe.txt
CHANGED
|
@@ -378,7 +378,7 @@ Whales can suffer from sunburns
|
|
|
378
378
|
In 2015, a U.S. journalist was sentenced to 5 years in jail for posting a link on the web
|
|
379
379
|
South Koreans drink twice as much alcohol as Russians
|
|
380
380
|
A newborn baby has about one cup of blood in his body.
|
|
381
|
-
4%of women in the U.S. are pregnant right now
|
|
381
|
+
4% of women in the U.S. are pregnant right now
|
|
382
382
|
The world's longest hangover lasted 4 weeks after a Scotsman consumed 60 pints of beer.
|
|
383
383
|
In 1962, John F Kennedy secretly installed a taping system in the White House.
|
|
384
384
|
Men with shaved heads are perceived as an inch taller and 13% stronger than men with hair.
|
|
@@ -850,7 +850,6 @@ Historically, for every 100 climbers who have made it to the summit of Mount Eve
|
|
|
850
850
|
Robert F. Kennedy was shot by a Palestinian because of his strong support for Israel.
|
|
851
851
|
London ranked as the 6th most expensive city to live in 2016
|
|
852
852
|
Some Buddhist monks in Japan used to practice self-mummification by adhering to a special diet, then sealing themselves alive into burial chambers.
|
|
853
|
-
Einstein was offered the presidency of Israel which he politely declined.
|
|
854
853
|
In Finland, 9 out of 10 plastic bottles are returned for recycling and almost 100% of glass bottles are also recycled.
|
|
855
854
|
The word "mortgage" comes from a French word that means "death contract".
|
|
856
855
|
D'oh! is a real word in the Oxford English Dictionary . In The Simpsons scripts, it just says "annoyed grunt.
|
|
@@ -1269,7 +1268,7 @@ Having an orgasm at least 3 times a week cuts in half the likelihood of coronary
|
|
|
1269
1268
|
30 million people in China live on less than US$1 per day, as of 2019.
|
|
1270
1269
|
Brazil is defined as a "federal republic" composed of the Federal District, 26 states, and 5,570 municipalities.
|
|
1271
1270
|
People with autism are less likely to catch yawns. The more severe their condition, the less common the behavior gets.
|
|
1272
|
-
Mexico
|
|
1271
|
+
Mexico has 68 official languages.
|
|
1273
1272
|
Girls who complete secondary school are 6 times less likely to become child brides
|
|
1274
1273
|
La Paz, Bolivia, was the first South American city to get an electricity supply. It was powered by llama dung
|
|
1275
1274
|
Penguins have an organ near the eye that filters salt from the water out of their system
|
|
@@ -3159,7 +3158,6 @@ The meaning of Siberia is "sleeping land."
|
|
|
3159
3158
|
Ancient Romans at one time used human urine as an ingredient in their toothpaste
|
|
3160
3159
|
Billie Jean by Michael Jackson was the first video to air on MTV by a black artist
|
|
3161
3160
|
Eyebrow hair lasts between 3-5 months before it sheds
|
|
3162
|
-
An elephant cannot jump
|
|
3163
3161
|
Scientists say that babies that are breastfed are more likely to be slimmer as adults than those that are not breastfed
|
|
3164
3162
|
The reason why the Mexican sombrero hat is so wide is to provide shade for the entire body
|
|
3165
3163
|
Amazingly, goalies in the National Hockey League played without masks until the year 1959
|
|
@@ -3843,7 +3841,6 @@ The loss of eyelashes is referred to as madarosis
|
|
|
3843
3841
|
Approximately 75% of human poop is made of water
|
|
3844
3842
|
The popular chocolate bar "Three Musketeers" got its name because when it was first introduced in 1932 there were three individual bars. The flavours were strawberry, chocolate, and vanilla
|
|
3845
3843
|
Every photograph of the first American atomic bomb detonation was taken by Harold Edgerton
|
|
3846
|
-
Heinz Catsup leaving the bottle travels at 25 miles per year
|
|
3847
3844
|
In 1864, A Quebec farmer found a frog inside a hailstone
|
|
3848
3845
|
Actor Sylvester Stallone once had a job as a lion cage cleaner
|
|
3849
3846
|
The first time there was an instance where they had a separate toilet for women and men was in 1739 at a ball in Paris
|
|
@@ -4264,7 +4261,6 @@ Mario, of Super Mario Bros. fame, appeared in the 1981 arcade game, Donkey Kong.
|
|
|
4264
4261
|
Women are 37% more likely to go to a psychiatrist than men are.
|
|
4265
4262
|
Diet Coke was only invented in 1982.
|
|
4266
4263
|
There are more than 1,700 references to gems and precious stones in the King James translation of the Bible.
|
|
4267
|
-
American car horns beep in the tone of F.
|
|
4268
4264
|
Turning a clock's hands counterclockwise while setting it is not necessarily harmful. It is only damaging when the timepiece contains a chiming mechanism.
|
|
4269
4265
|
There are twice as many kangaroos in Australia as there are people. The kangaroo population is estimated at about 40 million.
|
|
4270
4266
|
Police dogs are trained to react to commands in a foreign language; commonly German but more recently Hungarian.
|
|
@@ -4377,7 +4373,6 @@ There are more chickens than people in the world (at least before that chicken-f
|
|
|
4377
4373
|
All 50 states are listed across the top of the Lincoln Memorial on the back of the $5 bill.
|
|
4378
4374
|
The slogan on New Hampshire license plates is "Live Free or Die." These license plates are manufactured by prisoners in the state prison in Concord.
|
|
4379
4375
|
Hydrogen gas is the least dense substance in the world, at 0.08988g/cc. Hydrogen solid is the most dense substance in the world, at 70.6g/cc.
|
|
4380
|
-
The longest place name still in use is: Taumatawhakatangihangaoauauotam-eteaturipukakapikimaungahoronukupokai-whenu a kitanatahu – a New Zealand hill.
|
|
4381
4376
|
Only 1 in 2,000,000,000 will live to be 116 or older.
|
|
4382
4377
|
When you tie a noose, the rope is wrapped twelve times around because it's the same length as a persons head.
|
|
4383
4378
|
The sentence, "The quick brown fox jumps over the lazy dog," uses every letter in the alphabet.
|
|
@@ -4397,7 +4392,6 @@ To escape the grip of a crocodile's jaws, push your thumbs into its eyeballs –
|
|
|
4397
4392
|
Reindeer like to eat bananas.
|
|
4398
4393
|
More people are killed annually by donkeys than airplane crashes.
|
|
4399
4394
|
Because of the rotation of the earth, an object can be thrown farther if it is thrown west.
|
|
4400
|
-
The average person spends 6 months of their life sitting at red lights.
|
|
4401
4395
|
More Monopoly money is printed in a year, than real money throughout the world.
|
|
4402
4396
|
Caesar salad has nothing to do with any of the Caesars. It was first concocted in a bar in Tijuana, Mexico, in the 1920′s.
|
|
4403
4397
|
Seattle's Fremont Bridge rises up and down more than any drawbridge in the world.
|
|
@@ -4457,7 +4451,6 @@ Golf courses cover 4% of North America.
|
|
|
4457
4451
|
The average person will accidentally eat just under a pound of insects every year.
|
|
4458
4452
|
Until 1994, world maps and globes sold in Albania only had Albania on them.
|
|
4459
4453
|
The value of Pi will be officially "rounded down" to 3.14 from 3.14159265359 on December 31, 1999.
|
|
4460
|
-
The Great Wall of China is the only man-made structure visible from space.
|
|
4461
4454
|
A piece of paper can be folded no more then 9 times.
|
|
4462
4455
|
The amount of computer Memory required to run WordPerfect for Win95 is 8 times the amount needed aboard the space shuttle.
|
|
4463
4456
|
The average North American will eat 35,000 cookies during their life span.
|
|
@@ -4596,7 +4589,6 @@ Bullet proof vests, fire escapes, windshield wipers, and laser printers were all
|
|
|
4596
4589
|
Lorne Greene had one of his nipples bitten off by an alligator while he was host of "Lorne Greene's Wild Kingdom."
|
|
4597
4590
|
Who's that playing the piano on the "Mad About You" theme? Paul Reiser himself.
|
|
4598
4591
|
Over 1000 birds a year die from smashing into windows!
|
|
4599
|
-
Recycling one glass jar, saves enough energy to watch T.V for 3 hours!
|
|
4600
4592
|
Q is the only letter in the alphabet that does not appear in the name of any of the United States!
|
|
4601
4593
|
166,875,000,000 pieces of mail are delivered each year in the US
|
|
4602
4594
|
Daffy Duck's middle name is "Dumas"
|
|
@@ -5077,7 +5069,6 @@ Many insects can carry 50 times their own body weight. This would be like an adu
|
|
|
5077
5069
|
There are over a million described species of insects. Some people estimate there are actually between 15 and 30 million species.
|
|
5078
5070
|
Most insects are beneficial to people because they eat other insects, pollinate crops, are food for other animals, make products we use (like honey and silk) or have medical uses.
|
|
5079
5071
|
Butterflies and insects have their skeletons on the outside of their bodies, called the exoskeleton. This protects the insect and keeps water inside their bodies so they don't dry out.
|
|
5080
|
-
Elephants are the only mammals that cannot jump.
|
|
5081
5072
|
11% of the world is left-handed.
|
|
5082
5073
|
A healthy (non-colorblind) human eye can distinguish between 500 shades of gray.
|
|
5083
5074
|
Lizards can self-amputate their tails for protection. It grows back after a few months.
|
|
@@ -5119,7 +5110,6 @@ In a survey of 200000 ostriches over 80 years, not one tried to bury its head in
|
|
|
5119
5110
|
Andorra, a tiny country between France & Spain, has the longest average lifespan: 83.49 years.
|
|
5120
5111
|
In America you will see an average of 500 advertisements a day.
|
|
5121
5112
|
John Lennon's first girlfriend was named Thelma Pickles.
|
|
5122
|
-
You can lead a cow upstairs but not downstairs.
|
|
5123
5113
|
"Duff" is the decaying organic matter found on a forest floor.
|
|
5124
5114
|
The US has more personal computers than the next 7 countries combined.
|
|
5125
5115
|
Kuwait is about 60% male (highest in the world). Latvia is about 54% female (highest in the world).
|
|
@@ -5473,7 +5463,6 @@ Ketchup Used to Be Considered a Medicine
|
|
|
5473
5463
|
Polar Bears Don't Have White Skin or Fur
|
|
5474
5464
|
Sudan Has Almost Twice as Many Pyramids as Egypt
|
|
5475
5465
|
Barbie and Ken Have Full Names
|
|
5476
|
-
About 1 Out of Every 2,000 Babies Is Born With a Tooth
|
|
5477
5466
|
T-Mobile Owns the Color Magenta
|
|
5478
5467
|
The Only Words That Rhyme With "Purple" Are "Hirple" and "Curple"
|
|
5479
5468
|
The Vatican's ATMs Are in Latin
|
|
@@ -5602,7 +5591,6 @@ Sign language has tongue twisters.
|
|
|
5602
5591
|
Penguins fly underwater.
|
|
5603
5592
|
Minnie the Mouse's first name is not Minnie.
|
|
5604
5593
|
Rudolph the Reindeer is female.
|
|
5605
|
-
A jiffy is a proper unit of time.
|
|
5606
5594
|
April 11, 1954, was recorded as the most boring day in the world.
|
|
5607
5595
|
Tiramisu translates to 'take me to heaven' in Italian.
|
|
5608
5596
|
Buttermilk does not contain any butter.
|
|
@@ -5758,7 +5746,6 @@ Up to 20% of power outages in the U.S are due to squirrels.
|
|
|
5758
5746
|
The Mayo Clinic made glow in the dark cats while trying to find a cure for AIDS.
|
|
5759
5747
|
The Antarctic glaciers are made up of 3% penguin urine.
|
|
5760
5748
|
The happiest prisoner on death row had an IQ of 46.
|
|
5761
|
-
Violin bows are made from horsehair.
|
|
5762
5749
|
IKEA is an acronym.
|
|
5763
5750
|
Stephen Hawking held a reception for time travelers in 2009.
|
|
5764
5751
|
A Norwegian Island made dying illegal.
|
|
@@ -6203,7 +6190,7 @@ The man who designed the Pringles can, Fred Bauer, is buried in one-or at least
|
|
|
6203
6190
|
There's a world record for the holder of the most world records: Ashrita Furman, who's set more than 600 records and currently holds more than 200. His records have ranged from fastest mile on a pogo stick, longest time to hula hoop underwater and greatest distance traveled on a bicycle balancing a milk bottle on the head.
|
|
6204
6191
|
The sun makes up more than 99% of the mass in our solar system.
|
|
6205
6192
|
Lined up, all of the planets in the solar system could fit between the Earth and the moon.
|
|
6206
|
-
The Great Wall of China is not actually visible from space.
|
|
6193
|
+
The Great Wall of China is not actually visible from space with the naked eye.
|
|
6207
6194
|
One million Earths could fit inside the sun.
|
|
6208
6195
|
It rains diamonds on both Jupiter and Saturn. On these planets, lightning turns methane in the atmosphere into carbon, which hardens into bits of graphite and diamond as it falls to the ground.
|
|
6209
6196
|
Outer space is completely silent.
|
|
@@ -6212,7 +6199,6 @@ The largest known volcano in the solar system is Olympus Mons, located on Mars.
|
|
|
6212
6199
|
On Mars, sunsets appear blue due to the way light is captured in the atmosphere.
|
|
6213
6200
|
Because there is no atmosphere, wind, or water to erode them, astronaut footprints on the moon will likely remain there for hundreds of millions of years.
|
|
6214
6201
|
One spacesuit for a NASA astronaut costs $12 million to make.
|
|
6215
|
-
Uranus is the only planet to spin on its side.
|
|
6216
6202
|
The diameter of Pluto is smaller than the horizontal length of the United States.
|
|
6217
6203
|
The Kármán line, the invisible boundary that officially separates Earth from outer space, is located 62 miles above sea level. So you're only about 62 miles from space right now!
|
|
6218
6204
|
It's impossible to burp in space. The lack of gravity in space prevents air in your stomach from separating and rising up from food you've eaten.
|
|
@@ -6350,7 +6336,6 @@ A rainbow can be seen only in the morning or late afternoon. It can occur only w
|
|
|
6350
6336
|
Lightning strikes the Earth 100 times every second.
|
|
6351
6337
|
La Paz, Bolivia has an average annual temperature below 50 degrees Fahrenheit. However, it has never recorded a zero-degree temperature. Same for Stanley, the Falkland Islands, and Punta Arenas, Chile.
|
|
6352
6338
|
There are over 87,000 Americans on waiting lists for organ transplants.
|
|
6353
|
-
Catsup leaves the bottle at a rate of 25 miles per year.
|
|
6354
6339
|
Toxic house plants poison more children than household chemicals do.
|
|
6355
6340
|
You are more likely to be infected by flesh-eating bacteria than you are to be struck by lightning.
|
|
6356
6341
|
It is physically impossible for you to lick your elbow.
|
|
@@ -6371,7 +6356,6 @@ A kiss stimulates 29 muscles and chemicals that cause relaxation. Women seem to
|
|
|
6371
6356
|
Every time you lick a stamp, you're consuming 1/10 of a calorie.
|
|
6372
6357
|
Our eyes are always the same size from birth, but our nose and ears never stop growing.
|
|
6373
6358
|
The average person falls asleep in seven minutes.
|
|
6374
|
-
Almost everyone who reads this will try to lick their elbow.
|
|
6375
6359
|
According to Chinese acupuncture, there is a point on the head that you can press to control your appetite. It is located in the hollow just in front of the flap of the ear.
|
|
6376
6360
|
In a recent survey, Americans revealed that banana was their favorite smell.
|
|
6377
6361
|
When opossums are "playing 'possum," they are not playing. They actually pass out from sheer terror.
|
|
@@ -6502,7 +6486,6 @@ If Barbie were life-size, her measurements would be 39-23-33. She would stand 7
|
|
|
6502
6486
|
On average, people fear spiders more than they do death.
|
|
6503
6487
|
Thirty-five percent of the people who use personal ads for dating are already married.
|
|
6504
6488
|
In Tokyo you can buy a toupee for your dog.
|
|
6505
|
-
A dime has 118 ridges around the edge.
|
|
6506
6489
|
The world's oldest wooden wheel has been around for more than 5,000 years
|
|
6507
6490
|
Dead skin cells are a main ingredient in household dust
|
|
6508
6491
|
Sudan has more pyramids than any country in the world
|
|
@@ -6714,7 +6697,6 @@ NFL refs also get Super Bowl rings.
|
|
|
6714
6697
|
President Hubert Hoover invented a game called "Hooverball" which was a cross between tennis and volleyball and was played with a medicine ball.
|
|
6715
6698
|
Only one city has won three major championships in one year. In 1935, the Detroit Lions won the Super Bowl, the Tigers won the world series, and the Red Wings won the Stanley Cup.
|
|
6716
6699
|
More than 100 baseballs are used during a typical professional baseball game.
|
|
6717
|
-
You can't hum while plugging your nose.
|
|
6718
6700
|
Tomatoes have more genes than humans.
|
|
6719
6701
|
We're one to two centimeters taller in the morning than at night.
|
|
6720
6702
|
One quarter of all our bones are in our feet.
|
|
@@ -6761,7 +6743,7 @@ Turns out, a dog's paw print is just as unique as a human's. Good news for dog d
|
|
|
6761
6743
|
A camel can drink up to 40 gallons of water in one go. That's seriously impressive!
|
|
6762
6744
|
Don't bring your crystal ball to Maryland! Fortune telling is illegal in the state.
|
|
6763
6745
|
Speaking of ferrets, did you know they used to be used to protect grain stores from rodents?
|
|
6764
|
-
The technical term for a fear of long words is "
|
|
6746
|
+
The technical term for a fear of long words is "hippopotomonstrosesquippedaliophobia." No way you can self-diagnose yourself with that one!
|
|
6765
6747
|
The White House has 35 bathrooms. So every bathroom break can be different for POTUS!
|
|
6766
6748
|
Greyhounds can run up to 45 mph. So don't challenge one to a race!
|
|
6767
6749
|
Hiking naked is illegal in Switzerland. Though we must say, it doesn't seem like a good idea in general!
|
|
@@ -7020,7 +7002,6 @@ Rubber bands last longer when refrigerated.
|
|
|
7020
7002
|
Since 1896, the beginning of the modern Olympics, only Greece and Australia have participated in every Games.
|
|
7021
7003
|
The average person has over 1,460 dreams a year.
|
|
7022
7004
|
The band Duran Duran got their name from an astronaut in the 1968 Jane Fonda movie Barbarella.
|
|
7023
|
-
The Earth weighs around 6,588,000,000,000,000,000,000,000 tons.
|
|
7024
7005
|
The first toilet ever seen on television was on "Leave It To Beaver."
|
|
7025
7006
|
The international telephone dialing code for Antarctica is 672.
|
|
7026
7007
|
The name "Jeep" came from the abbreviation used in the army for the "general purpose" vehicle, G.P.
|
|
@@ -7164,7 +7145,6 @@ Only animal besides a human that can get sunburn: a pig.
|
|
|
7164
7145
|
Proportional to their weight, men are stronger than horses.
|
|
7165
7146
|
It is believed that Shakespeare was 46 around the time that the King James Version of the Bible was written. In Psalms 46, the 46th word from the first word is "shake," and the 46th word from the last word is "spear."
|
|
7166
7147
|
The parachute was invented by Leonardo da Vinci in 1515.
|
|
7167
|
-
"Canada" is a Native American word meaning "big village."
|
|
7168
7148
|
The symbol on the "pound" key (#) is called an octothorpe.
|
|
7169
7149
|
A full 7% of the entire Irish barley crop goes to the production of Guinness beer.
|
|
7170
7150
|
Tigers have striped skin, not just striped fur.
|
|
@@ -7346,7 +7326,6 @@ There's an ant species unique to New York City.
|
|
|
7346
7326
|
The Eiffel Tower was originally intended for Barcelona.
|
|
7347
7327
|
There's only one Shell garage actually shaped like a Shell.
|
|
7348
7328
|
The shortest commercial flight in the world is in Scotland.
|
|
7349
|
-
Dolphins have names for one another.
|
|
7350
7329
|
The blob of toothpaste on a toothbrush has a name - a nurdle.
|
|
7351
7330
|
One part of Istanbul is in Europe and the other is in Asia.
|
|
7352
|
-
There are more than 1,000 types of bananas growing in the world.
|
|
7331
|
+
There are more than 1,000 types of bananas growing in the world.
|
randfacts/unsafe.txt
CHANGED
|
@@ -112,4 +112,4 @@ During the medieval times (circa 1400s), France had impotency trials. Which allo
|
|
|
112
112
|
Dildos have been around for centuries. With the oldest potential dildo being 28,000 years old.
|
|
113
113
|
Vibrators were created in the 19th century to reduce "hysteria" in women.
|
|
114
114
|
Famous gangster, Al Capone, had undiagnosed syphillis until he went to prison.
|
|
115
|
-
According to a British law passed in 1845, attempting to commit suicide was a capital offense. Offenders could be hanged for trying.
|
|
115
|
+
According to a British law passed in 1845, attempting to commit suicide was a capital offense. Offenders could be hanged for trying.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
MIT License
|
|
2
|
-
Copyright (c) 2020-
|
|
2
|
+
Copyright (c) 2020-2024 Connor Sample
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
in the Software without restriction, including without limitation the rights
|
|
@@ -14,4 +14,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
14
14
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
15
15
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
16
16
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
17
|
-
SOFTWARE.
|
|
17
|
+
SOFTWARE.
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: randfacts
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.1
|
|
4
4
|
Summary: Package to generate random facts
|
|
5
|
-
Home-page: https://
|
|
6
|
-
|
|
5
|
+
Home-page: https://tabulate.tech/software/randfacts/
|
|
6
|
+
License: MIT
|
|
7
|
+
Author: TabulateJarl8
|
|
7
8
|
Author-email: tabulatejarl8@gmail.com
|
|
9
|
+
Requires-Python: >=3.6,<4.0
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Natural Language :: English
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
8
15
|
Classifier: Programming Language :: Python :: 3
|
|
9
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
10
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
@@ -13,14 +20,10 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
13
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier:
|
|
17
|
-
Classifier:
|
|
18
|
-
|
|
19
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
20
|
-
Classifier: Intended Audience :: Developers
|
|
21
|
-
Requires-Python: >=3.6
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
25
|
+
Project-URL: Repository, https://github.com/TabulateJarl8/randfacts
|
|
22
26
|
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE.txt
|
|
24
27
|
|
|
25
28
|
<p align="center">
|
|
26
29
|
<img src="https://raw.githubusercontent.com/TabulateJarl8/randfacts/master/imgs/logo-embedded-font.svg" />
|
|
@@ -118,3 +121,4 @@ More help.
|
|
|
118
121
|
```sh
|
|
119
122
|
$ python3 -m randfacts --help
|
|
120
123
|
```
|
|
124
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
randfacts/__init__.py,sha256=AIc-PGGpuk2zNraanv5kum3JyWNV2ba3HSzPcX56PYs,1615
|
|
2
|
+
randfacts/__main__.py,sha256=sH6dc3zI2TSF12PVQTp_mlCPgKrF-7lJd_8kQ8hZ2S0,97
|
|
3
|
+
randfacts/randfacts.py,sha256=KvK5BVw4qykbz5X6Lb3YqAXimH-7YtlXA3lWyHJJHcw,2197
|
|
4
|
+
randfacts/safe.txt,sha256=8t2fLQayINFQLnEqIrGoJ57YCJeqL4WQpM2kMWR34eg,634078
|
|
5
|
+
randfacts/unsafe.txt,sha256=6CO4QTQ7YIqkDyyS9cbV1-eqs8B0TYxzDyab4lUGGHQ,10415
|
|
6
|
+
randfacts-0.22.1.dist-info/LICENSE,sha256=Pw9YWaR5pSAfnfuabUSytyJGj2Wy4G7Zw1EdldX9KGU,1088
|
|
7
|
+
randfacts-0.22.1.dist-info/METADATA,sha256=wX25iQvCxHcoJ4gmJlvMjwSZVGkxYNYUCBIAACybzTk,4738
|
|
8
|
+
randfacts-0.22.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
9
|
+
randfacts-0.22.1.dist-info/entry_points.txt,sha256=YPadKZhBZjJaNq_Mfkaj7HJgs63rf3rl_7pj5Tf8WY8,65
|
|
10
|
+
randfacts-0.22.1.dist-info/RECORD,,
|
randfacts/__version__.py
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
__title__ = "randfacts"
|
|
2
|
-
__description__ = "Package to generate random facts"
|
|
3
|
-
__url__ = "https://github.com/TabulateJarl8/randfacts"
|
|
4
|
-
__version__ = "0.21.0"
|
|
5
|
-
__author__ = "Tabulate"
|
|
6
|
-
__author_email__ = "tabulatejarl8@gmail.com"
|
|
7
|
-
__license__ = "MIT"
|
|
8
|
-
__copyright__ = "Copyright 2020-2023 Connor Sample"
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
randfacts/__init__.py,sha256=yTaySH_8eS772eD6wCi-GLl-tekVRqiRjjbvF4SXocc,1583
|
|
2
|
-
randfacts/__main__.py,sha256=Ng4WikgLUpvoIqIfJ_ZZtNyoxS6pUdXtmA_XD4tW_L0,56
|
|
3
|
-
randfacts/__version__.py,sha256=7pIJXuFVcrjhV20rrYHh0Ef0wr22XbFKZ4sBaELJSuM,296
|
|
4
|
-
randfacts/randfacts.py,sha256=AcY65AdKtZhTvZkCEuTFmDE_kpHtjyr0LcKgVkGJDbI,1775
|
|
5
|
-
randfacts/safe.txt,sha256=3y_P1DQPPTdoEd8ECc7BT-c4SRhPcUtNC0-4OmvPgb8,635255
|
|
6
|
-
randfacts/unsafe.txt,sha256=fhnpoF9qHQf_nd3spkn3AEtDxuj5zMI1BFkNXWQ8c1A,10414
|
|
7
|
-
randfacts-0.21.0.dist-info/LICENSE.txt,sha256=jxhCPqBHN7biBPbFOa4AHqFoT1P37hYZyA2MREV1VBM,1086
|
|
8
|
-
randfacts-0.21.0.dist-info/METADATA,sha256=6-r5O9VWq5DYQrsjvyU_cUUv4ayPWevPCAr8U7xPjEU,4549
|
|
9
|
-
randfacts-0.21.0.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
10
|
-
randfacts-0.21.0.dist-info/top_level.txt,sha256=CtuA0wZECn98oIjL-EgzBRN804oPMLtAPPpM0KJbWIU,10
|
|
11
|
-
randfacts-0.21.0.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
randfacts
|