Datasets:

Modalities:
Image
Text
Size:
< 1K
Libraries:
Datasets
License:
File size: 1,194 Bytes
8186505
 
 
 
 
 
 
 
 
 
e93a307
8186505
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import json
import os

# Ruta de la carpeta donde se guardarán los archivos JSON
folder_path = "./data/key"

# Verificar si la carpeta existe, de lo contrario, crearla
if not os.path.exists(folder_path):
    os.makedirs(folder_path)

for i in range(500, 600):
    data = {
        "name": "",
        "firstSurname": "",
        "secondSurname": "",
        "fullAddress" : "",
        "address": {
            "street" : "",
            "colony": "",
            "city": "",
            "state": "",
            "zipCode": ""
        },
        "folio": "",
        "claveElector": "",
        "curp": "",
        "state": "",
        "municipality": "",
        "section": "",
        "locality": "",
        "emission": "",
        "vigencia": "",
        "dateOfBirth": "",
        "age": "",
        "gender": "",
        "registry_year": "",
        "type": "INSTITUTO NACIONAL ELECTORAL",
        "modelType": "DEF"
    }

    file_name = f"{i}.json"
    file_path = os.path.join(folder_path, file_name)

    with open(file_path, 'w') as f:
        json.dump(data, f, indent=4)

    print(f"Archivo {file_name} creado en {folder_path}.")

print("Creación de archivos JSON completada.")