randfacts 0.20.2__py3-none-any.whl → 0.22.0__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 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
- Example usage of randfacts in code.
8
+ Example usage of randfacts in code.
9
9
 
10
- Generate a random SFW (safe for work) fact.
10
+ Generate a random SFW (safe for work) fact.
11
11
 
12
- >>> randfacts.get_fact()
12
+ >>> randfacts.get_fact()
13
13
 
14
- Generate a random NSFW (not safe for work) fact.
14
+ Generate a random NSFW (not safe for work) fact.
15
15
 
16
- >>> randfacts.get_fact(only_unsafe=True)
16
+ >>> randfacts.get_fact(only_unsafe=True)
17
17
 
18
- Generate a random mixed fact (possibility of both SFW and NSFW facts)
18
+ Generate a random mixed fact (possibility of both SFW and NSFW facts)
19
19
 
20
- >>> randfacts.get_fact(False)
21
- >>> # or
22
- >>> randfacts.get_fact(filter_enabled=False)
20
+ >>> randfacts.get_fact(filter_enabled=False)
23
21
 
24
22
  CLI Examples:
25
- randfacts can be executed via the command line with the following commands:
23
+ randfacts can be executed via the command line with the following commands:
26
24
 
27
- Normal execution; only safe facts
25
+ Normal execution; only safe facts
28
26
 
29
- $ python3 -m randfacts
27
+ $ python3 -m randfacts
30
28
 
31
- The unsafe argument can be supplied to provide only unsafe facts
29
+ The unsafe argument can be supplied to provide only unsafe facts
32
30
 
33
- $ python3 -m randfacts --unsafe
31
+ $ python3 -m randfacts --unsafe
34
32
 
35
- The mixed argument can be provided to provide both SFW and NSFW facts.
33
+ The mixed argument can be provided to provide both SFW and NSFW facts.
36
34
 
37
- $ python3 -m randfacts --mixed
35
+ $ python3 -m randfacts --mixed
38
36
 
39
- More help.
37
+ More help.
40
38
 
41
- $ python3 -m randfacts --help
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("getFact is deprecated. Please use get_fact", DeprecationWarning, stacklevel=2)
53
- return get_fact(filter_enabled, only_unsafe)
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
- _cli_entrypoint()
1
+ from .randfacts import _cli_entrypoint # pyright: ignore[reportPrivateUsage]
2
+
3
+ _cli_entrypoint()
randfacts/randfacts.py CHANGED
@@ -1,22 +1,22 @@
1
- from random import choice
2
- import os
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
- dir_path = os.path.dirname(os.path.realpath(__file__))
11
+ __version__ = ""
12
+ with contextlib.suppress(Exception):
13
+ __version__: str = importlib.metadata.version("randfacts")
6
14
 
7
- with open(os.path.join(dir_path, 'safe.txt'), encoding='utf-8') as f:
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 open(os.path.join(dir_path, 'unsafe.txt'), encoding='utf-8') as f:
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
- The `filter_enabled` parameter determines if the function will filter
31
- out potentially inappropriate facts. Defaults to True.
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
- The `only_unsafe` parameter determines if the function will only give
35
- unsafe (NSFW) facts. Takes precedence over the `filter_enabled` argument.
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
- A random fact.
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='Generate random facts from the command-line'
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
- '-m',
61
- '--mixed',
62
- action='store_true',
63
- help='Include safe and unsafe facts'
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
- '-u',
68
- '--unsafe',
69
- action='store_true',
70
- help='Only include unsafe facts'
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.mixed:
76
- print(get_fact(False))
77
- elif args.unsafe:
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__ == '__main__':
91
+ if __name__ == "__main__":
84
92
  _cli_entrypoint()
randfacts/safe.txt CHANGED
@@ -172,7 +172,6 @@ More Colombians die every year from American tobacco than Americans die from Col
172
172
  Hawaii, Vermont, Alaska, and Maine have all banned billboards.
173
173
  Brazil was once called "United States of Brazil."
174
174
  The least corrupt countries in the world are New Zealand and Denmark, according to the Corruptions Perception Index.
175
- The national anthem of Spain has no words
176
175
  Christopher Columbus correctly predicted an eclipse to trick the native inhabitants of Jamaica into giving him food and supplies.
177
176
  The city of Lusail, host of the 2022 FIFA World Cup Final game, does not exist yet
178
177
  Benjamin Franklin, one of the Founding Fathers of the U.S., was also a leading author, printer, political theorist, politician, freemason, postmaster, scientist, inventor, civic activist, statesman, and diplomat.
@@ -379,7 +378,7 @@ Whales can suffer from sunburns
379
378
  In 2015, a U.S. journalist was sentenced to 5 years in jail for posting a link on the web
380
379
  South Koreans drink twice as much alcohol as Russians
381
380
  A newborn baby has about one cup of blood in his body.
382
- 4%of women in the U.S. are pregnant right now
381
+ 4% of women in the U.S. are pregnant right now
383
382
  The world's longest hangover lasted 4 weeks after a Scotsman consumed 60 pints of beer.
384
383
  In 1962, John F Kennedy secretly installed a taping system in the White House.
385
384
  Men with shaved heads are perceived as an inch taller and 13% stronger than men with hair.
@@ -1270,7 +1269,7 @@ Having an orgasm at least 3 times a week cuts in half the likelihood of coronary
1270
1269
  30 million people in China live on less than US$1 per day, as of 2019.
1271
1270
  Brazil is defined as a "federal republic" composed of the Federal District, 26 states, and 5,570 municipalities.
1272
1271
  People with autism are less likely to catch yawns. The more severe their condition, the less common the behavior gets.
1273
- Mexico has68 official languages.
1272
+ Mexico has 68 official languages.
1274
1273
  Girls who complete secondary school are 6 times less likely to become child brides
1275
1274
  La Paz, Bolivia, was the first South American city to get an electricity supply. It was powered by llama dung
1276
1275
  Penguins have an organ near the eye that filters salt from the water out of their system
@@ -4398,7 +4397,6 @@ To escape the grip of a crocodile's jaws, push your thumbs into its eyeballs –
4398
4397
  Reindeer like to eat bananas.
4399
4398
  More people are killed annually by donkeys than airplane crashes.
4400
4399
  Because of the rotation of the earth, an object can be thrown farther if it is thrown west.
4401
- The average person spends 6 months of their life sitting at red lights.
4402
4400
  More Monopoly money is printed in a year, than real money throughout the world.
4403
4401
  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.
4404
4402
  Seattle's Fremont Bridge rises up and down more than any drawbridge in the world.
@@ -5067,7 +5065,6 @@ On a Canadian two-dollar bill, the American flag is flying over the Parliament B
5067
5065
  $283,200 is the absolute highest amount of money you can win on Jeopardy.
5068
5066
  Rats and horses can't vomit.
5069
5067
  Winston Churchill was born in a ladies room during a dance.
5070
- Venus is the only planet that rotates clockwise.
5071
5068
  Charlie Chaplin once won third prize in a Charlie Chaplin look-alike contest.
5072
5069
  You are more likely to be killed by a champagne cork than by a poisonous spider.
5073
5070
  Hedenophobic means fear of pleasure.
@@ -5079,7 +5076,6 @@ Many insects can carry 50 times their own body weight. This would be like an adu
5079
5076
  There are over a million described species of insects. Some people estimate there are actually between 15 and 30 million species.
5080
5077
  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.
5081
5078
  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.
5082
- Elephants are the only mammals that cannot jump.
5083
5079
  11% of the world is left-handed.
5084
5080
  A healthy (non-colorblind) human eye can distinguish between 500 shades of gray.
5085
5081
  Lizards can self-amputate their tails for protection. It grows back after a few months.
@@ -5457,7 +5453,6 @@ Neanderthals Mass Produced Tools in a "Flintstone Factory" 60,000 Years Ago
5457
5453
  Three Presidents Have Died on July 4th
5458
5454
  Scientists Believe They've Found Fossils from the Day the Asteroid Killed the Dinosaurs
5459
5455
  Barry Manilow Wrote the State Farm and Band-Aid Jingles
5460
- The "ManhattAnt" Is a Species of Ant Unique to New York City
5461
5456
  Mr. Clean's Name Changes Around the Globe
5462
5457
  The Earth Weighs About 13,170,000,000,000,000,000,000,000 Pounds
5463
5458
  The World's Oldest Tortoise is Twice as Old as Queen Elizabeth
@@ -5479,7 +5474,6 @@ Barbie and Ken Have Full Names
5479
5474
  About 1 Out of Every 2,000 Babies Is Born With a Tooth
5480
5475
  T-Mobile Owns the Color Magenta
5481
5476
  The Only Words That Rhyme With "Purple" Are "Hirple" and "Curple"
5482
- The Spanish National Anthem Has No Lyrics
5483
5477
  The Vatican's ATMs Are in Latin
5484
5478
  There Are Frogs Smaller Than Your Fingernails
5485
5479
  Spotted Skunks Do Handstands
@@ -5589,7 +5583,6 @@ Betty White Predates Sliced Bread
5589
5583
  Random Facts Infographics
5590
5584
  There are 293 ways to make change for a dollar.
5591
5585
  The Grand Theft Auto franchise has lawsuits that total over $1 billion.
5592
- All clocks in Pulp Fiction are set to 4:20.
5593
5586
  A dime has 118 ridges on its edge.
5594
5587
  On average, a secretary will use its left hand for 56% of what they type on a keyboard.
5595
5588
  The largest pair of eyes in the world belongs to the giant squid.
@@ -5621,7 +5614,6 @@ Children are born less frequently on Saturdays.
5621
5614
  Danish mothers are known to be the most hardworking moms in the world.
5622
5615
  75 burgers are sold in McDonald's every second.
5623
5616
  1,700 people become millionaires every day in the U.S.
5624
- You can't hum while holding your nose.
5625
5617
  You are more likely to have a weird or scary dream when sleeping on your stomach.
5626
5618
  Your eyeballs do not grow or change their size as you age.
5627
5619
  Blue-eyed people have higher alcohol tolerance.
@@ -5741,7 +5733,6 @@ Alaska is the only state whose name is on a single row on the keyboard.
5741
5733
  Many oranges are green.
5742
5734
  Vantablack has a trademark.
5743
5735
  A man once set a record by putting on over 260 t-shirts.
5744
- Queen Elizabeth is a trained mechanic.
5745
5736
  Optical illusions can be found at the bottom of the sea.
5746
5737
  123456 is the most common password.
5747
5738
  The average American spends 2.5 days annually looking for lost items.
@@ -5765,7 +5756,6 @@ Up to 20% of power outages in the U.S are due to squirrels.
5765
5756
  The Mayo Clinic made glow in the dark cats while trying to find a cure for AIDS.
5766
5757
  The Antarctic glaciers are made up of 3% penguin urine.
5767
5758
  The happiest prisoner on death row had an IQ of 46.
5768
- Violin bows are made from horsehair.
5769
5759
  IKEA is an acronym.
5770
5760
  Stephen Hawking held a reception for time travelers in 2009.
5771
5761
  A Norwegian Island made dying illegal.
@@ -5965,7 +5955,6 @@ A day on Venus lasts longer than a year on Venus.
5965
5955
  Jupiter has over 70 moons.
5966
5956
  If the sun dies, it'll take about 8 minutes before we realize it has.
5967
5957
  The festive tradition of the Christmas tree dates back thousands of years to the Romans and Ancient Egyptians.
5968
- There are more than 1,000 kinds of bats in the world.
5969
5958
  Bees are found everywhere in the world apart from Antarctica.
5970
5959
  The average star is between 1 and 10 billion years old
5971
5960
  It is illegal to stand within 90 meters of the Queen without socks on.
@@ -6033,7 +6022,6 @@ Bats are the only mammals that can fly, but their leg bones are so thin that it
6033
6022
  Ants don't have lungs.
6034
6023
  Grizzly bears can run up to 30 miles per hour.
6035
6024
  Next to humans, mosquitoes are the deadliest animal on Earth.
6036
- Ostrich's eyes are bigger than its brain.
6037
6025
  A group of frogs is called an army.
6038
6026
  Hummingbirds can fly backward.
6039
6027
  Kangaroos cannot walk backward.
@@ -6043,7 +6031,6 @@ Starfish have no brains.
6043
6031
  Alaska is both the most western and most eastern state in the United States.
6044
6032
  Greenland is the world's largest island.
6045
6033
  The English language is spoken in more than 100 countries around the world.
6046
- Vatican City is the smallest country in the world.
6047
6034
  Antarctica is the only continent with no permanent human residents.
6048
6035
  Dust from the Sahara Desert in Africa can travel great distances-even as far as Texas.
6049
6036
  Maine is the closest state to Africa.
@@ -6222,7 +6209,6 @@ The largest known volcano in the solar system is Olympus Mons, located on Mars.
6222
6209
  On Mars, sunsets appear blue due to the way light is captured in the atmosphere.
6223
6210
  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.
6224
6211
  One spacesuit for a NASA astronaut costs $12 million to make.
6225
- Uranus is the only planet to spin on its side.
6226
6212
  The diameter of Pluto is smaller than the horizontal length of the United States.
6227
6213
  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!
6228
6214
  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.
@@ -6512,7 +6498,6 @@ If Barbie were life-size, her measurements would be 39-23-33. She would stand 7
6512
6498
  On average, people fear spiders more than they do death.
6513
6499
  Thirty-five percent of the people who use personal ads for dating are already married.
6514
6500
  In Tokyo you can buy a toupee for your dog.
6515
- A dime has 118 ridges around the edge.
6516
6501
  The world's oldest wooden wheel has been around for more than 5,000 years
6517
6502
  Dead skin cells are a main ingredient in household dust
6518
6503
  Sudan has more pyramids than any country in the world
@@ -6541,7 +6526,6 @@ The first time the word "period" was used on TV in reference to menstruation was
6541
6526
  McDonald's once made bubblegum-flavored broccoli
6542
6527
  Some fungi create zombies, then control their minds
6543
6528
  The first oranges weren't orange
6544
- There's only one letter that doesn't appear in any U.S. state name
6545
6529
  A cow-bison hybrid is called a beefalo
6546
6530
  Johnny Appleseed's fruits weren't for eating
6547
6531
  Scotland has 421 words for snow
@@ -6639,7 +6623,6 @@ The world's oldest toy is a stick
6639
6623
  Polar bear fur is actually clear, and their skin is black.
6640
6624
  Baby flamingos are born grey, not pink.
6641
6625
  A woodpecker's tongue actually wraps all the way around its brain, protecting it from damage when it's hammering into a tree.
6642
- A shrimp's heart is located in its head.
6643
6626
  Elephants suck on their trunks for comfort.
6644
6627
  Anteaters have no teeth.
6645
6628
  Nine-banded armadillos always have quadruplets, and they're always identical.
@@ -6726,7 +6709,6 @@ NFL refs also get Super Bowl rings.
6726
6709
  President Hubert Hoover invented a game called "Hooverball" which was a cross between tennis and volleyball and was played with a medicine ball.
6727
6710
  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.
6728
6711
  More than 100 baseballs are used during a typical professional baseball game.
6729
- You can't hum while plugging your nose.
6730
6712
  Tomatoes have more genes than humans.
6731
6713
  We're one to two centimeters taller in the morning than at night.
6732
6714
  One quarter of all our bones are in our feet.
@@ -6773,7 +6755,7 @@ Turns out, a dog's paw print is just as unique as a human's. Good news for dog d
6773
6755
  A camel can drink up to 40 gallons of water in one go. That's seriously impressive!
6774
6756
  Don't bring your crystal ball to Maryland! Fortune telling is illegal in the state.
6775
6757
  Speaking of ferrets, did you know they used to be used to protect grain stores from rodents?
6776
- The technical term for a fear of long words is ""hippopotomonstrosesquippedaliophobia." No way you can self-diagnose yourself with that one!
6758
+ The technical term for a fear of long words is "hippopotomonstrosesquippedaliophobia." No way you can self-diagnose yourself with that one!
6777
6759
  The White House has 35 bathrooms. So every bathroom break can be different for POTUS!
6778
6760
  Greyhounds can run up to 45 mph. So don't challenge one to a race!
6779
6761
  Hiking naked is illegal in Switzerland. Though we must say, it doesn't seem like a good idea in general!
@@ -6819,7 +6801,6 @@ Humans wouldn't be able to taste food without saliva.
6819
6801
  If Betelgeuse exploded right now, the star's last light show would brighten our sky for around two months.
6820
6802
  Oona Chaplin, who played Robb Stark's wife in Game of Thrones, is Charlie Chaplin's granddaughter.
6821
6803
  The founder of sportswear companies Puma and Adidas were brothers! Rudolf "Rudi" Dassler is the brain behind Puma, while his big bro Adolf "Adi" Dassler gave the world Adidas.
6822
- The only letter of the alphabet that doesn't appear in any American state is q.
6823
6804
  The original Ferris Wheel was designed and constructed in Chicago, Illinois, by George Washington Gale Ferris, Jr.
6824
6805
  While SPAM is most popular in Hawaii, it was actually invented in Minnesota. The state even serves as home to the SPAM museum!
6825
6806
  Glaciers, ice caps, and ice sheets hold nearly 69 percent of the world's freshwater.
@@ -6837,11 +6818,9 @@ The world's smallest reptile was first reported in 2021.
6837
6818
  Many feet bones don't harden until you're an adult.
6838
6819
  Some sea snakes can breathe through their skin.
6839
6820
  The heads on Easter Island have bodies.
6840
- The moon has moonquakes.
6841
6821
  Goosebumps are meant to ward off predators.
6842
6822
  There's no such thing as "pear cider."
6843
6823
  Pineapple works as a natural meat tenderizer.
6844
- Humans are the only animals that blush.
6845
6824
  The feeling of getting lost inside a mall is known as the Gruen transfer.
6846
6825
  The wood frog can hold its pee for up to eight months.
6847
6826
  The hottest spot on the planet is in Libya.
@@ -6858,7 +6837,6 @@ Marie Curie is the only person to earn a Nobel prize in two different sciences.
6858
6837
  Fingernails don't grow after you die.
6859
6838
  The English word with the most definitions is "set."
6860
6839
  Creedence Clearwater Revival has the most No. 2 Billboard hits-without ever hitting No. 1.
6861
- Pigeons can tell the difference between a painting by Monet and Picasso.
6862
6840
  The dot over the lower case "i" or "j" is known as a "tittle."
6863
6841
  Chewing gum boosts concentration.
6864
6842
  Superman didn't always fly.
@@ -7036,7 +7014,6 @@ Rubber bands last longer when refrigerated.
7036
7014
  Since 1896, the beginning of the modern Olympics, only Greece and Australia have participated in every Games.
7037
7015
  The average person has over 1,460 dreams a year.
7038
7016
  The band Duran Duran got their name from an astronaut in the 1968 Jane Fonda movie Barbarella.
7039
- The Earth weighs around 6,588,000,000,000,000,000,000,000 tons.
7040
7017
  The first toilet ever seen on television was on "Leave It To Beaver."
7041
7018
  The international telephone dialing code for Antarctica is 672.
7042
7019
  The name "Jeep" came from the abbreviation used in the army for the "general purpose" vehicle, G.P.
@@ -7055,7 +7032,6 @@ The only first lady to carry a loaded revolver: Eleanor Roosevelt.
7055
7032
  The only president awarded a patent: Abe Lincoln, for a system of buoying vessels over shoals.
7056
7033
  Mark Twain didn't graduate from elementary school.
7057
7034
  Jupiter is bigger than all the other planets combined.
7058
- All of the clocks in the movie Pulp Fiction are stuck on 4:20.
7059
7035
  Ingrown toenails are hereditary.
7060
7036
  In most advertisements, including in newspapers, the time displayed on a watch is 10:10.
7061
7037
  When the University of Nebraska Cornhuskers play football at home, the stadium becomes the state's third-largest city.
@@ -7181,7 +7157,6 @@ Only animal besides a human that can get sunburn: a pig.
7181
7157
  Proportional to their weight, men are stronger than horses.
7182
7158
  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."
7183
7159
  The parachute was invented by Leonardo da Vinci in 1515.
7184
- "Canada" is a Native American word meaning "big village."
7185
7160
  The symbol on the "pound" key (#) is called an octothorpe.
7186
7161
  A full 7% of the entire Irish barley crop goes to the production of Guinness beer.
7187
7162
  Tigers have striped skin, not just striped fur.
@@ -7200,7 +7175,6 @@ The biggest dog on record was an Old English Mastiff that weighed 343 pounds. He
7200
7175
  The time spent deleting spam email messages costs U.S. businesses $21.6 billion annually.
7201
7176
  More than 2,500 left-handed people are killed each year by using products that are made for right-handed people.
7202
7177
  Banging your head against a wall for one hour burns 150 calories.
7203
- In Switzerland, it is illegal to own just one guinea pig.
7204
7178
  The color orange was actually named after oranges.
7205
7179
  Snakes can predict earthquakes.
7206
7180
  Crows often hold grudges against specific people.
@@ -7226,7 +7200,6 @@ Most people fart around 14 to 23 times a day!
7226
7200
  There is a species of spider called the Hobo Spider.
7227
7201
  A lion's roar can be heard from 5 miles away.
7228
7202
  Saint Lucia is the only country in the world named after a woman.
7229
- The national animal of Scotland is a unicorn.
7230
7203
  The United States Navy used Xbox controllers for their periscopes.
7231
7204
  The word "burrito" means "little donkey" in Spanish.
7232
7205
  A baby octopus is about the size of a flea when it is born.
@@ -7245,7 +7218,6 @@ Human blood cells have different lifespans.
7245
7218
  A swarm of 20,000 bees followed a car for two days because their queen was stuck inside.
7246
7219
  Eating carrots can turn your skin orange.
7247
7220
  Bob Dylan's birth name was Robert Zimmerman.
7248
- A crocodile can't poke its tongue out.
7249
7221
  Sea otters hold hands when they sleep so they don't drift away from each other.
7250
7222
  A small child could swim through the veins of a blue whale.
7251
7223
  The word "y'all" dates back to at least 1631.
@@ -7298,4 +7270,75 @@ The giant stone heads on Easter Island have hidden bodies!
7298
7270
  Kleenex tissues were originally used as filters in gas masks.
7299
7271
  In 1998, Sony accidentally sold 700,000 camcorders that could see through people's clothes.
7300
7272
  During your lifetime, you will spend around seventy-nine days brushing your teeth.
7301
- Ronald McDonald is "Donald McDonald" in Japan because it makes pronunciation easier for the Japanese.
7273
+ Ronald McDonald is "Donald McDonald" in Japan because it makes pronunciation easier for the Japanese.
7274
+ Avocados are a fruit, not a vegetable.
7275
+ The Eiffel Tower can be 15 cm taller during the summer,
7276
+ Trypophobia is the fear of closely-packed holes.
7277
+ Allodoxaphobia is the fear of other people's opinions.
7278
+ Australia is wider than the moon.
7279
+ 'Mellifluous' is a sound that is pleasingly smooth and musical to hear.
7280
+ The Spice Girls were originally a band called Touch.
7281
+ Human teeth are the only part of the body that cannot heal themselves.
7282
+ It's illegal to own just one guinea pig in Switzerland.
7283
+ The Ancient Romans used to drop a piece of toast into their wine for good health
7284
+ The heart of a shrimp is located in its head
7285
+ Amy Poehler was only seven years older than Rachel McAdams when she took on the role of "cool mom" in Mean Girls.
7286
+ People are more creative in the shower.
7287
+ Baby rabbits are called kits.
7288
+ The unicorn is the national animal of Scotland.
7289
+ The first aeroplane flew on December 17, 1903.
7290
+ Venus is the only planet to spin clockwise.
7291
+ Nutmeg is a hallucinogen.
7292
+ A 73-year-old bottle of French Burgundy became the most expensive bottle of wine ever sold at auction in 2018, going for $558,000.
7293
+ Competitive art used to be an Olympic sport.
7294
+ A chef's hat has 100 pleats.
7295
+ In 2014, there was a Tinder match in Antarctica.
7296
+ The Spanish national anthem has no words.
7297
+ The Japanese word 'Kuchi zamishi' is the act of eating when you're not hungry because your mouth is lonely.
7298
+ The probability of a blue lobster existing is widely touted as being one in two million.
7299
+ There's only one letter that doesn't appear in any American state name.
7300
+ Louboutins' iconic red soles were inspired by Andy Warhol.
7301
+ A book called 'A la recherche du temps perdu' contains an estimated 9,609,000 characters, making it the longest book in the world.
7302
+ Google images was literally created after Jennifer Lopez wore that infamous dress at the 2000 Grammys.
7303
+ Big Ben's clock stopped at 10:07 p.m. on 27 May 2005,
7304
+ Walt Disney currently holds the most Academy Awards.
7305
+ There's a fruit that tastes like chocolate pudding.
7306
+ Queen Elizabeth II was a trained mechanic.
7307
+ M&Ms are named after the businessmen who created them.
7308
+ Pigeons can tell the difference between Picasso and Monet.
7309
+ The real name for a hashtag is an octothorpe.
7310
+ The actors who voiced Mickey and Minnie mouse got married in real life.
7311
+ You can hear a blue whale's heartbeat from over 2 miles away.
7312
+ The last letter added to the English alphabet was 'J'.
7313
+ There is actually a word for someone giving an opinion on something they know nothing about - an ultracrepidarian.
7314
+ The Chupa Chups logo was designed by Salvador Dalí.
7315
+ Ketchup was once sold as medicine
7316
+ The world's longest walking distance is 14,000 miles.
7317
+ The moon has moonquakes.
7318
+ Humans are the only animals that blush.
7319
+ All the clocks in Pulp Fiction are set to 4.20.
7320
+ Kim Kardashian has a 'glam' clause in her will.
7321
+ An ostrich's eye is bigger than its brain.
7322
+ A jiffy is an actual unit of time.
7323
+ You can't hum if you hold your nose.
7324
+ Vatican City is the smallest country in the world.
7325
+ Japan has over 200 flavors of Kit Kats.
7326
+ Kris Jenner has 12 grandchildren.
7327
+ A crocodile cannot stick its tongue out.
7328
+ Pigs can't look up into the sky.
7329
+ Kim Kardashian knows the alphabet in sign language.
7330
+ Everyone's tongue print is different.
7331
+ It would take 19 minutes to fall to the center of the Earth.
7332
+ The Night's Watch cloaks in Game of Thrones were made from Ikea rugs.
7333
+ The iCarly high school set was also used for Saved by the Bell and That's So Raven.
7334
+ People used to say "prunes" instead of "cheese" when getting their pictures taken.
7335
+ Blue whale tongues can weigh as much as an elephant.
7336
+ Queen Elizabeth II had a stand-in to make sure the sun wouldn't get in her eyes.
7337
+ There's an ant species unique to New York City.
7338
+ The Eiffel Tower was originally intended for Barcelona.
7339
+ There's only one Shell garage actually shaped like a Shell.
7340
+ The shortest commercial flight in the world is in Scotland.
7341
+ Dolphins have names for one another.
7342
+ The blob of toothpaste on a toothbrush has a name - a nurdle.
7343
+ One part of Istanbul is in Europe and the other is in Asia.
7344
+ 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-2021 Connor Sample
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,12 +1,17 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: randfacts
3
- Version: 0.20.2
3
+ Version: 0.22.0
4
4
  Summary: Package to generate random facts
5
- Home-page: https://github.com/TabulateJarl8/randfacts
6
- Author: Tabulate
5
+ Home-page: https://tabulate.tech/software/randfacts/
6
+ License: MIT
7
+ Author: TabulateJarl8
7
8
  Author-email: tabulatejarl8@gmail.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
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
10
15
  Classifier: Programming Language :: Python :: 3
11
16
  Classifier: Programming Language :: Python :: 3.6
12
17
  Classifier: Programming Language :: Python :: 3.7
@@ -14,14 +19,10 @@ Classifier: Programming Language :: Python :: 3.8
14
19
  Classifier: Programming Language :: Python :: 3.9
15
20
  Classifier: Programming Language :: Python :: 3.10
16
21
  Classifier: Programming Language :: Python :: 3.11
17
- Classifier: Natural Language :: English
18
- Classifier: License :: OSI Approved :: MIT License
19
- Classifier: Operating System :: OS Independent
20
- Classifier: Development Status :: 5 - Production/Stable
21
- Classifier: Intended Audience :: Developers
22
- Requires-Python: >=3.6
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Project-URL: Repository, https://github.com/TabulateJarl8/randfacts
23
25
  Description-Content-Type: text/markdown
24
- License-File: LICENSE.txt
25
26
 
26
27
  <p align="center">
27
28
  <img src="https://raw.githubusercontent.com/TabulateJarl8/randfacts/master/imgs/logo-embedded-font.svg" />
@@ -120,4 +121,3 @@ More help.
120
121
  $ python3 -m randfacts --help
121
122
  ```
122
123
 
123
-
@@ -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=qNQQ9W00vUjaF1Gma-sqWKGYQRbCegP-GrrDNpFvsY4,634851
5
+ randfacts/unsafe.txt,sha256=6CO4QTQ7YIqkDyyS9cbV1-eqs8B0TYxzDyab4lUGGHQ,10415
6
+ randfacts-0.22.0.dist-info/LICENSE,sha256=Pw9YWaR5pSAfnfuabUSytyJGj2Wy4G7Zw1EdldX9KGU,1088
7
+ randfacts-0.22.0.dist-info/METADATA,sha256=yzWaFBEbBO6Ytxgm-0mQ8dD0rC8qVi80v2C30I83RCM,4687
8
+ randfacts-0.22.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
9
+ randfacts-0.22.0.dist-info/entry_points.txt,sha256=YPadKZhBZjJaNq_Mfkaj7HJgs63rf3rl_7pj5Tf8WY8,65
10
+ randfacts-0.22.0.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ randfacts=randfacts.randfacts:_cli_entrypoint
3
+
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.20.2"
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=2uMr0JJK2SGyGBDmk-7d0eAxNyN5L7v1oPv1UaQ55Tg,296
4
- randfacts/randfacts.py,sha256=AcY65AdKtZhTvZkCEuTFmDE_kpHtjyr0LcKgVkGJDbI,1775
5
- randfacts/safe.txt,sha256=lztVfttjGNB-W66b8rNyEkgX2bHy7CPthGwf7ZSMxDQ,632180
6
- randfacts/unsafe.txt,sha256=fhnpoF9qHQf_nd3spkn3AEtDxuj5zMI1BFkNXWQ8c1A,10414
7
- randfacts-0.20.2.dist-info/LICENSE.txt,sha256=jxhCPqBHN7biBPbFOa4AHqFoT1P37hYZyA2MREV1VBM,1086
8
- randfacts-0.20.2.dist-info/METADATA,sha256=mKdMGw_gezR7uxZqEjAYnV0V07_zVIfDOCPtKcf7Wyo,4535
9
- randfacts-0.20.2.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
10
- randfacts-0.20.2.dist-info/top_level.txt,sha256=CtuA0wZECn98oIjL-EgzBRN804oPMLtAPPpM0KJbWIU,10
11
- randfacts-0.20.2.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- randfacts