{"id":30737551,"url":"https://github.com/grazen0/proyecto-bd","last_synced_at":"2025-10-13T19:40:04.233Z","repository":{"id":301409745,"uuid":"1009173832","full_name":"Grazen0/proyecto-bd","owner":"Grazen0","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-30T02:46:49.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-03T21:31:15.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Grazen0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-26T17:38:27.000Z","updated_at":"2025-06-30T02:46:53.000Z","dependencies_parsed_at":"2025-06-26T18:52:06.895Z","dependency_job_id":null,"html_url":"https://github.com/Grazen0/proyecto-bd","commit_stats":null,"previous_names":["grazen0/proyecto-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Grazen0/proyecto-bd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grazen0%2Fproyecto-bd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grazen0%2Fproyecto-bd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grazen0%2Fproyecto-bd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grazen0%2Fproyecto-bd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Grazen0","download_url":"https://codeload.github.com/Grazen0/proyecto-bd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Grazen0%2Fproyecto-bd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016930,"owners_count":26085889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-03T21:17:50.774Z","updated_at":"2025-10-13T19:40:04.194Z","avatar_url":"https://github.com/Grazen0.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Proyecto BD\n\n\u003e [!NOTE]\n\u003e La data generada con los scripts, como es muy grande para subirla a GitHub, se encuentra en este [link de Drive](https://drive.google.com/drive/folders/160GlLABwiquvY-NyMvyWOhCZ1Y0HsvAt?usp=sharing). Habiendo descargado la data, el directorio local `data` debería verse así:\n\u003e\n\u003e ```\n\u003e data\n\u003e ├── manual/\n\u003e │   ├── 01-rarities.csv\n\u003e │   └── 02-element_types.csv\n\u003e └── generated/\n\u003e     ├── 1k/\n\u003e     │   └── ...\n\u003e     ├── 10k/\n\u003e     │   └── ...\n\u003e     ├── 100k/\n\u003e     │   └── ...\n\u003e     └── 1000k/\n\u003e         └── ...\n\u003e ...\n\u003e ```\n\nEste repo tiene una configuración de Docker Compose para iniciar un contenedor de PostgreSQL con un volumen configurado de `data/` a `/data`. Se puede iniciar con este comando:\n\n```bash\ndocker compose up -d\n```\n\nLa creación inicial, generación de datos y carga de los datos se hace con los scripts en `src/`. Porsiaca, incluimos un script `run_all.sh` que corre todo en orden.\n\nEl repo también incluye un `shell.nix` para reproducir el entorno de Python y PostgreSQL necesario para correr los scripts.\n\nTLDR: Al final, esta secuencia de comandos debería funcionar:\n\n```bash\nnix-shell\ndocker compose up -d\n./run_all.sh\n```\n\nPERO si descargas la data del [link de Drive de arriba](https://drive.google.com/drive/folders/160GlLABwiquvY-NyMvyWOhCZ1Y0HsvAt?usp=sharing), puedes simplemente correr los scripts 1 y 3:\n\n```bash\npython src/1_init.py\npython src/3_populate.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrazen0%2Fproyecto-bd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrazen0%2Fproyecto-bd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrazen0%2Fproyecto-bd/lists"}