fakedata-python 1.0.0__tar.gz

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.
Files changed (38) hide show
  1. fakedata_python-1.0.0/PKG-INFO +134 -0
  2. fakedata_python-1.0.0/README.md +122 -0
  3. fakedata_python-1.0.0/fakedata/__init__.py +6 -0
  4. fakedata_python-1.0.0/fakedata/core.py +15 -0
  5. fakedata_python-1.0.0/fakedata/helpers/animal.json +228 -0
  6. fakedata_python-1.0.0/fakedata/helpers/animefact.json +1658 -0
  7. fakedata_python-1.0.0/fakedata/helpers/animequote.json +304 -0
  8. fakedata_python-1.0.0/fakedata/helpers/cardtype.json +16 -0
  9. fakedata_python-1.0.0/fakedata/helpers/catfact.json +140 -0
  10. fakedata_python-1.0.0/fakedata/helpers/dogfact.json +439 -0
  11. fakedata_python-1.0.0/fakedata/helpers/domain.json +1571 -0
  12. fakedata_python-1.0.0/fakedata/helpers/email.json +3756 -0
  13. fakedata_python-1.0.0/fakedata/helpers/fact.json +2506 -0
  14. fakedata_python-1.0.0/fakedata/helpers/first.json +4950 -0
  15. fakedata_python-1.0.0/fakedata/helpers/fortune.json +365 -0
  16. fakedata_python-1.0.0/fakedata/helpers/joke.json +2404 -0
  17. fakedata_python-1.0.0/fakedata/helpers/last.json +10200 -0
  18. fakedata_python-1.0.0/fakedata/helpers/middle.json +3901 -0
  19. fakedata_python-1.0.0/fakedata/helpers/occupation.json +981 -0
  20. fakedata_python-1.0.0/fakedata/helpers/pickup.json +13450 -0
  21. fakedata_python-1.0.0/fakedata/helpers/pokemon.json +12002 -0
  22. fakedata_python-1.0.0/fakedata/helpers/quote.json +16268 -0
  23. fakedata_python-1.0.0/fakedata/helpers/shortformstate.json +52 -0
  24. fakedata_python-1.0.0/fakedata/helpers/state.json +54 -0
  25. fakedata_python-1.0.0/fakedata/helpers/states.json +23912 -0
  26. fakedata_python-1.0.0/fakedata/helpers/street.json +10988 -0
  27. fakedata_python-1.0.0/fakedata/modules/__init__.py +1 -0
  28. fakedata_python-1.0.0/fakedata/modules/animals.py +19 -0
  29. fakedata_python-1.0.0/fakedata/modules/anime.py +37 -0
  30. fakedata_python-1.0.0/fakedata/modules/data.py +179 -0
  31. fakedata_python-1.0.0/fakedata/modules/fun.py +61 -0
  32. fakedata_python-1.0.0/fakedata/test_python.py +29 -0
  33. fakedata_python-1.0.0/fakedata_python.egg-info/PKG-INFO +134 -0
  34. fakedata_python-1.0.0/fakedata_python.egg-info/SOURCES.txt +36 -0
  35. fakedata_python-1.0.0/fakedata_python.egg-info/dependency_links.txt +1 -0
  36. fakedata_python-1.0.0/fakedata_python.egg-info/top_level.txt +1 -0
  37. fakedata_python-1.0.0/pyproject.toml +28 -0
  38. fakedata_python-1.0.0/setup.cfg +4 -0
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.4
2
+ Name: fakedata-python
3
+ Version: 1.0.0
4
+ Summary: A versatile mock data and entertainment content generator ported to Python.
5
+ Author-email: abhay557 <abhaycormourya@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/abhay557/fakedata
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown
12
+
13
+ # fakedata (Python)
14
+
15
+ [![Python Version](https://img.shields.io/badge/python-3.7%2B-blue.svg)](https://www.python.org/)
16
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
17
+
18
+ A high-performance, **zero-dependency** mock data generation engine ported to Python. Designed for testing, prototyping, and local development.
19
+
20
+ Whether you're building a backend prototype, seeding a database with thousands of records, or developing complex data-driven tests, `fakedata` provides a structured API for generating high-quality synthetic data across multiple domains.
21
+
22
+ ---
23
+
24
+ ## Key Features
25
+
26
+ - **Zero External Dependencies**: Uses only Python standard libraries (`json`, `random`, `pathlib`).
27
+ - **Modular Architecture**: Separate namespaces for data, entertainment, anime, and biology.
28
+ - **Rich Datasets**: Bundled with comprehensive JSON assets (Pokemon, Users, Industry-standard resumes).
29
+ - **Type Hinting**: Built-in support for IDE intellisense.
30
+ - **Fast Execution**: Optimized for generating large datasets with minimal overhead.
31
+
32
+ ---
33
+
34
+ ## Installation
35
+
36
+ Install the package locally:
37
+
38
+ ```bash
39
+ pip install .
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Quick Start
45
+
46
+ ```python
47
+ import fakedata
48
+
49
+ # 1. Generate a comprehensive user profile
50
+ user_profile = fakedata.data.user()
51
+ print(f"Identity: {user_profile['fullName']} | City: {user_profile['address']['city']}")
52
+
53
+ # 2. Fetch specialized entertainment data
54
+ pokemon = fakedata.fun.pokemon()
55
+ random_joke = fakedata.fun.joke()
56
+
57
+ # 3. Filter specific anime content
58
+ naruto_quotes = fakedata.anime.quotes_by_show('Naruto')
59
+ ```
60
+
61
+ ---
62
+
63
+ ## API Documentation
64
+
65
+ ### Data Module (`fakedata.data`)
66
+ Focused on professional-grade mock data for PII and enterprise simulations.
67
+
68
+ | Method | Return Type | Description |
69
+ | :--- | :--- | :--- |
70
+ | `user()` | `dict` | Generates a full profile (Personal Details, Address, Job, Bank Info). |
71
+ | `users(count)` | `list` | Returns a list of `n` unique user profiles. |
72
+ | `creditcard()` | `dict` | Generates realistic credit card data (Number, Expiry, CVV). |
73
+ | `resume(count)` | `list` | Mock professional resumes with skills, experience, and education. |
74
+ | `get_password(len)`| `dict` | Secure random password generator (default length: 8). |
75
+ | `get_email()` | `dict` | Randomly generated email address. |
76
+ | `get_city()` | `dict` | Global city name. |
77
+
78
+ ### Fun (`fakedata.fun`)
79
+ Dynamic content for gaming and entertainment applications.
80
+
81
+ | Method | Return Type | Description |
82
+ | :--- | :--- | :--- |
83
+ | `pokemon()` | `dict` | Returns a random Pokemon with full stats, types, and abilities. |
84
+ | `pokemon_by_type(t)`| `dict` | Filters Pokemon by specific type (e.g., 'Fire', 'Water'). |
85
+ | `joke()` | `dict` | Randomly selected joke across various categories. |
86
+ | `fact()` | `dict` | General knowledge facts for engagement. |
87
+ | `fortune()` | `dict` | Philosophical or funny fortune cookies. |
88
+
89
+ ### Anime Module (`fakedata.anime`)
90
+ Curated datasets for anime-themed projects.
91
+
92
+ | Method | Return Type | Description |
93
+ | :--- | :--- | :--- |
94
+ | `quote()` | `dict` | Iconic quotes with character and show attribution. |
95
+ | `quotes_by_show(s)` | `dict` | All available quotes from a specific anime title. |
96
+ | `fact()` | `dict` | Specialized trivia regarding anime history and trivia. |
97
+
98
+ ### Animals Module (`fakedata.animals`)
99
+ Simple biological data and interesting facts.
100
+
101
+ | Method | Return Type | Description |
102
+ | :--- | :--- | :--- |
103
+ | `random_animal()` | `dict` | Returns a random animal profile. |
104
+ | `dog_fact()` | `dict` | Canine-specific trivia and biological facts. |
105
+ | `cat_fact()` | `dict` | Feline-specific trivia and statistics. |
106
+
107
+ ---
108
+
109
+ ## Testing
110
+
111
+ To run the local test suite:
112
+
113
+ ```bash
114
+ python test_python.py
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Development & Contributions
120
+
121
+ Contributions are welcome! If you'd like to add new datasets or modules, please follow these steps:
122
+
123
+ 1. Clone the repository.
124
+ 2. Implement your changes in `fakedata/modules/`.
125
+ 3. Add relevant tests in `tests/`.
126
+ 4. Submit a Pull Request.
127
+
128
+ ---
129
+
130
+ ## License
131
+
132
+ Distributed under the **MIT License**. See `LICENSE` for more information.
133
+
134
+ **Maintainer**: [abhay557](https://github.com/abhay557)
@@ -0,0 +1,122 @@
1
+ # fakedata (Python)
2
+
3
+ [![Python Version](https://img.shields.io/badge/python-3.7%2B-blue.svg)](https://www.python.org/)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ A high-performance, **zero-dependency** mock data generation engine ported to Python. Designed for testing, prototyping, and local development.
7
+
8
+ Whether you're building a backend prototype, seeding a database with thousands of records, or developing complex data-driven tests, `fakedata` provides a structured API for generating high-quality synthetic data across multiple domains.
9
+
10
+ ---
11
+
12
+ ## Key Features
13
+
14
+ - **Zero External Dependencies**: Uses only Python standard libraries (`json`, `random`, `pathlib`).
15
+ - **Modular Architecture**: Separate namespaces for data, entertainment, anime, and biology.
16
+ - **Rich Datasets**: Bundled with comprehensive JSON assets (Pokemon, Users, Industry-standard resumes).
17
+ - **Type Hinting**: Built-in support for IDE intellisense.
18
+ - **Fast Execution**: Optimized for generating large datasets with minimal overhead.
19
+
20
+ ---
21
+
22
+ ## Installation
23
+
24
+ Install the package locally:
25
+
26
+ ```bash
27
+ pip install .
28
+ ```
29
+
30
+ ---
31
+
32
+ ## Quick Start
33
+
34
+ ```python
35
+ import fakedata
36
+
37
+ # 1. Generate a comprehensive user profile
38
+ user_profile = fakedata.data.user()
39
+ print(f"Identity: {user_profile['fullName']} | City: {user_profile['address']['city']}")
40
+
41
+ # 2. Fetch specialized entertainment data
42
+ pokemon = fakedata.fun.pokemon()
43
+ random_joke = fakedata.fun.joke()
44
+
45
+ # 3. Filter specific anime content
46
+ naruto_quotes = fakedata.anime.quotes_by_show('Naruto')
47
+ ```
48
+
49
+ ---
50
+
51
+ ## API Documentation
52
+
53
+ ### Data Module (`fakedata.data`)
54
+ Focused on professional-grade mock data for PII and enterprise simulations.
55
+
56
+ | Method | Return Type | Description |
57
+ | :--- | :--- | :--- |
58
+ | `user()` | `dict` | Generates a full profile (Personal Details, Address, Job, Bank Info). |
59
+ | `users(count)` | `list` | Returns a list of `n` unique user profiles. |
60
+ | `creditcard()` | `dict` | Generates realistic credit card data (Number, Expiry, CVV). |
61
+ | `resume(count)` | `list` | Mock professional resumes with skills, experience, and education. |
62
+ | `get_password(len)`| `dict` | Secure random password generator (default length: 8). |
63
+ | `get_email()` | `dict` | Randomly generated email address. |
64
+ | `get_city()` | `dict` | Global city name. |
65
+
66
+ ### Fun (`fakedata.fun`)
67
+ Dynamic content for gaming and entertainment applications.
68
+
69
+ | Method | Return Type | Description |
70
+ | :--- | :--- | :--- |
71
+ | `pokemon()` | `dict` | Returns a random Pokemon with full stats, types, and abilities. |
72
+ | `pokemon_by_type(t)`| `dict` | Filters Pokemon by specific type (e.g., 'Fire', 'Water'). |
73
+ | `joke()` | `dict` | Randomly selected joke across various categories. |
74
+ | `fact()` | `dict` | General knowledge facts for engagement. |
75
+ | `fortune()` | `dict` | Philosophical or funny fortune cookies. |
76
+
77
+ ### Anime Module (`fakedata.anime`)
78
+ Curated datasets for anime-themed projects.
79
+
80
+ | Method | Return Type | Description |
81
+ | :--- | :--- | :--- |
82
+ | `quote()` | `dict` | Iconic quotes with character and show attribution. |
83
+ | `quotes_by_show(s)` | `dict` | All available quotes from a specific anime title. |
84
+ | `fact()` | `dict` | Specialized trivia regarding anime history and trivia. |
85
+
86
+ ### Animals Module (`fakedata.animals`)
87
+ Simple biological data and interesting facts.
88
+
89
+ | Method | Return Type | Description |
90
+ | :--- | :--- | :--- |
91
+ | `random_animal()` | `dict` | Returns a random animal profile. |
92
+ | `dog_fact()` | `dict` | Canine-specific trivia and biological facts. |
93
+ | `cat_fact()` | `dict` | Feline-specific trivia and statistics. |
94
+
95
+ ---
96
+
97
+ ## Testing
98
+
99
+ To run the local test suite:
100
+
101
+ ```bash
102
+ python test_python.py
103
+ ```
104
+
105
+ ---
106
+
107
+ ## Development & Contributions
108
+
109
+ Contributions are welcome! If you'd like to add new datasets or modules, please follow these steps:
110
+
111
+ 1. Clone the repository.
112
+ 2. Implement your changes in `fakedata/modules/`.
113
+ 3. Add relevant tests in `tests/`.
114
+ 4. Submit a Pull Request.
115
+
116
+ ---
117
+
118
+ ## License
119
+
120
+ Distributed under the **MIT License**. See `LICENSE` for more information.
121
+
122
+ **Maintainer**: [abhay557](https://github.com/abhay557)
@@ -0,0 +1,6 @@
1
+ from .modules import data, fun, anime, animals
2
+
3
+ __version__ = "1.0.0"
4
+ __author__ = "abhay557"
5
+
6
+ __all__ = ["data", "fun", "anime", "animals"]
@@ -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
+ }