fakedata-python 1.0.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.
- fakedata/__init__.py +6 -0
- fakedata/core.py +15 -0
- fakedata/helpers/animal.json +228 -0
- fakedata/helpers/animefact.json +1658 -0
- fakedata/helpers/animequote.json +304 -0
- fakedata/helpers/cardtype.json +16 -0
- fakedata/helpers/catfact.json +140 -0
- fakedata/helpers/dogfact.json +439 -0
- fakedata/helpers/domain.json +1571 -0
- fakedata/helpers/email.json +3756 -0
- fakedata/helpers/fact.json +2506 -0
- fakedata/helpers/first.json +4950 -0
- fakedata/helpers/fortune.json +365 -0
- fakedata/helpers/joke.json +2404 -0
- fakedata/helpers/last.json +10200 -0
- fakedata/helpers/middle.json +3901 -0
- fakedata/helpers/occupation.json +981 -0
- fakedata/helpers/pickup.json +13450 -0
- fakedata/helpers/pokemon.json +12002 -0
- fakedata/helpers/quote.json +16268 -0
- fakedata/helpers/shortformstate.json +52 -0
- fakedata/helpers/state.json +54 -0
- fakedata/helpers/states.json +23912 -0
- fakedata/helpers/street.json +10988 -0
- fakedata/modules/__init__.py +1 -0
- fakedata/modules/animals.py +19 -0
- fakedata/modules/anime.py +37 -0
- fakedata/modules/data.py +179 -0
- fakedata/modules/fun.py +61 -0
- fakedata/test_python.py +29 -0
- fakedata_python-1.0.0.dist-info/METADATA +134 -0
- fakedata_python-1.0.0.dist-info/RECORD +34 -0
- fakedata_python-1.0.0.dist-info/WHEEL +5 -0
- fakedata_python-1.0.0.dist-info/top_level.txt +1 -0
fakedata/__init__.py
ADDED
fakedata/core.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import json
|
|
2
|
+
import os
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
# Base directory for helpers
|
|
6
|
+
HELPER_DIR = Path(__file__).parent / "helpers"
|
|
7
|
+
|
|
8
|
+
def load_data(filename):
|
|
9
|
+
"""Safely loads a JSON file from the helpers directory."""
|
|
10
|
+
file_path = HELPER_DIR / filename
|
|
11
|
+
if not file_path.exists():
|
|
12
|
+
raise FileNotFoundError(f"Data file not found: {filename}")
|
|
13
|
+
|
|
14
|
+
with open(file_path, "r", encoding="utf-8") as f:
|
|
15
|
+
return json.load(f)
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
{
|
|
2
|
+
"animals": [
|
|
3
|
+
"Aardvark",
|
|
4
|
+
"Albatross",
|
|
5
|
+
"Alligator",
|
|
6
|
+
"Alpaca",
|
|
7
|
+
"Ant",
|
|
8
|
+
"Anteater",
|
|
9
|
+
"Antelope",
|
|
10
|
+
"Ape",
|
|
11
|
+
"Armadillo",
|
|
12
|
+
"Donkey",
|
|
13
|
+
"Baboon",
|
|
14
|
+
"Badger",
|
|
15
|
+
"Barracuda",
|
|
16
|
+
"Bat",
|
|
17
|
+
"Bear",
|
|
18
|
+
"Beaver",
|
|
19
|
+
"Bee",
|
|
20
|
+
"Bison",
|
|
21
|
+
"Boar",
|
|
22
|
+
"Buffalo",
|
|
23
|
+
"Butterfly",
|
|
24
|
+
"Camel",
|
|
25
|
+
"Capybara",
|
|
26
|
+
"Caribou",
|
|
27
|
+
"Cassowary",
|
|
28
|
+
"Cat",
|
|
29
|
+
"Caterpillar",
|
|
30
|
+
"Cattle",
|
|
31
|
+
"Chamois",
|
|
32
|
+
"Cheetah",
|
|
33
|
+
"Chicken",
|
|
34
|
+
"Chimpanzee",
|
|
35
|
+
"Chinchilla",
|
|
36
|
+
"Chough",
|
|
37
|
+
"Clam",
|
|
38
|
+
"Cobra",
|
|
39
|
+
"Cockroach",
|
|
40
|
+
"Cod",
|
|
41
|
+
"Cormorant",
|
|
42
|
+
"Coyote",
|
|
43
|
+
"Crab",
|
|
44
|
+
"Crane",
|
|
45
|
+
"Crocodile",
|
|
46
|
+
"Crow",
|
|
47
|
+
"Curlew",
|
|
48
|
+
"Deer",
|
|
49
|
+
"Dinosaur",
|
|
50
|
+
"Dog",
|
|
51
|
+
"Dogfish",
|
|
52
|
+
"Dolphin",
|
|
53
|
+
"Dotterel",
|
|
54
|
+
"Dove",
|
|
55
|
+
"Dragonfly",
|
|
56
|
+
"Duck",
|
|
57
|
+
"Dugong",
|
|
58
|
+
"Dunlin",
|
|
59
|
+
"Eagle",
|
|
60
|
+
"Echidna",
|
|
61
|
+
"Eel",
|
|
62
|
+
"Eland",
|
|
63
|
+
"Elephant",
|
|
64
|
+
"Elk",
|
|
65
|
+
"Emu",
|
|
66
|
+
"Falcon",
|
|
67
|
+
"Ferret",
|
|
68
|
+
"Finch",
|
|
69
|
+
"Fish",
|
|
70
|
+
"Flamingo",
|
|
71
|
+
"Fly",
|
|
72
|
+
"Fox",
|
|
73
|
+
"Frog",
|
|
74
|
+
"Gaur",
|
|
75
|
+
"Gazelle",
|
|
76
|
+
"Gerbil",
|
|
77
|
+
"Giraffe",
|
|
78
|
+
"Gnat",
|
|
79
|
+
"Gnu",
|
|
80
|
+
"Goat",
|
|
81
|
+
"Goldfinch",
|
|
82
|
+
"Goldfish",
|
|
83
|
+
"Goose",
|
|
84
|
+
"Gorilla",
|
|
85
|
+
"Goshawk",
|
|
86
|
+
"Grasshopper",
|
|
87
|
+
"Grouse",
|
|
88
|
+
"Guanaco",
|
|
89
|
+
"Gull",
|
|
90
|
+
"Hamster",
|
|
91
|
+
"Hare",
|
|
92
|
+
"Hawk",
|
|
93
|
+
"Hedgehog",
|
|
94
|
+
"Heron",
|
|
95
|
+
"Herring",
|
|
96
|
+
"Hippopotamus",
|
|
97
|
+
"Hornet",
|
|
98
|
+
"Horse",
|
|
99
|
+
"Human",
|
|
100
|
+
"Hummingbird",
|
|
101
|
+
"Hyena",
|
|
102
|
+
"Ibex",
|
|
103
|
+
"Ibis",
|
|
104
|
+
"Jackal",
|
|
105
|
+
"Jaguar",
|
|
106
|
+
"Jay",
|
|
107
|
+
"Jellyfish",
|
|
108
|
+
"Kangaroo",
|
|
109
|
+
"Kingfisher",
|
|
110
|
+
"Koala",
|
|
111
|
+
"Kookabura",
|
|
112
|
+
"Kouprey",
|
|
113
|
+
"Kudu",
|
|
114
|
+
"Lapwing",
|
|
115
|
+
"Lark",
|
|
116
|
+
"Lemur",
|
|
117
|
+
"Leopard",
|
|
118
|
+
"Lion",
|
|
119
|
+
"Llama",
|
|
120
|
+
"Lobster",
|
|
121
|
+
"Locust",
|
|
122
|
+
"Loris",
|
|
123
|
+
"Louse",
|
|
124
|
+
"Lyrebird",
|
|
125
|
+
"Magpie",
|
|
126
|
+
"Mallard",
|
|
127
|
+
"Manatee",
|
|
128
|
+
"Mandrill",
|
|
129
|
+
"Mantis",
|
|
130
|
+
"Marten",
|
|
131
|
+
"Meerkat",
|
|
132
|
+
"Mink",
|
|
133
|
+
"Mole",
|
|
134
|
+
"Mongoose",
|
|
135
|
+
"Monkey",
|
|
136
|
+
"Moose",
|
|
137
|
+
"Mosquito",
|
|
138
|
+
"Mouse",
|
|
139
|
+
"Mule",
|
|
140
|
+
"Narwhal",
|
|
141
|
+
"Newt",
|
|
142
|
+
"Nightingale",
|
|
143
|
+
"Octopus",
|
|
144
|
+
"Okapi",
|
|
145
|
+
"Opossum",
|
|
146
|
+
"Oryx",
|
|
147
|
+
"Ostrich",
|
|
148
|
+
"Otter",
|
|
149
|
+
"Owl",
|
|
150
|
+
"Oyster",
|
|
151
|
+
"Panther",
|
|
152
|
+
"Parrot",
|
|
153
|
+
"Partridge",
|
|
154
|
+
"Peafowl",
|
|
155
|
+
"Pelican",
|
|
156
|
+
"Penguin",
|
|
157
|
+
"Pheasant",
|
|
158
|
+
"Pig",
|
|
159
|
+
"Pigeon",
|
|
160
|
+
"Pony",
|
|
161
|
+
"Porcupine",
|
|
162
|
+
"Porpoise",
|
|
163
|
+
"Quail",
|
|
164
|
+
"Quelea",
|
|
165
|
+
"Quetzal",
|
|
166
|
+
"Rabbit",
|
|
167
|
+
"Raccoon",
|
|
168
|
+
"Rail",
|
|
169
|
+
"Ram",
|
|
170
|
+
"Rat",
|
|
171
|
+
"Raven",
|
|
172
|
+
"Red deer",
|
|
173
|
+
"Red panda",
|
|
174
|
+
"Reindeer",
|
|
175
|
+
"Rhinoceros",
|
|
176
|
+
"Rook",
|
|
177
|
+
"Salamander",
|
|
178
|
+
"Salmon",
|
|
179
|
+
"Sand Dollar",
|
|
180
|
+
"Sandpiper",
|
|
181
|
+
"Sardine",
|
|
182
|
+
"Scorpion",
|
|
183
|
+
"Seahorse",
|
|
184
|
+
"Seal",
|
|
185
|
+
"Shark",
|
|
186
|
+
"Sheep",
|
|
187
|
+
"Shrew",
|
|
188
|
+
"Skunk",
|
|
189
|
+
"Snail",
|
|
190
|
+
"Snake",
|
|
191
|
+
"Sparrow",
|
|
192
|
+
"Spider",
|
|
193
|
+
"Spoonbill",
|
|
194
|
+
"Squid",
|
|
195
|
+
"Squirrel",
|
|
196
|
+
"Starling",
|
|
197
|
+
"Stingray",
|
|
198
|
+
"Stinkbug",
|
|
199
|
+
"Stork",
|
|
200
|
+
"Swallow",
|
|
201
|
+
"Swan",
|
|
202
|
+
"Tapir",
|
|
203
|
+
"Tarsier",
|
|
204
|
+
"Termite",
|
|
205
|
+
"Tiger",
|
|
206
|
+
"Toad",
|
|
207
|
+
"Trout",
|
|
208
|
+
"Turkey",
|
|
209
|
+
"Turtle",
|
|
210
|
+
"Viper",
|
|
211
|
+
"Vulture",
|
|
212
|
+
"Wallaby",
|
|
213
|
+
"Walrus",
|
|
214
|
+
"Wasp",
|
|
215
|
+
"Weasel",
|
|
216
|
+
"Whale",
|
|
217
|
+
"Wildcat",
|
|
218
|
+
"Wolf",
|
|
219
|
+
"Wolverine",
|
|
220
|
+
"Wombat",
|
|
221
|
+
"Woodcock",
|
|
222
|
+
"Woodpecker",
|
|
223
|
+
"Worm",
|
|
224
|
+
"Wren",
|
|
225
|
+
"Yak",
|
|
226
|
+
"Zebra"
|
|
227
|
+
]
|
|
228
|
+
}
|