{"id":22683951,"url":"https://github.com/malondaclement/datalake","last_synced_at":"2026-05-16T17:35:48.061Z","repository":{"id":104102384,"uuid":"497021409","full_name":"MalondaClement/DataLake","owner":"MalondaClement","description":"DataLake project 💾","archived":false,"fork":false,"pushed_at":"2022-11-06T13:35:28.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T10:19:55.660Z","etag":null,"topics":["datalake","mysql","python3"],"latest_commit_sha":null,"homepage":"https://github.com/MalondaClement/DataLake/wiki","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/MalondaClement.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}},"created_at":"2022-05-27T14:09:56.000Z","updated_at":"2022-09-06T13:16:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f741afb-ddd4-48fb-b441-693bfe3559b6","html_url":"https://github.com/MalondaClement/DataLake","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MalondaClement/DataLake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalondaClement%2FDataLake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalondaClement%2FDataLake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalondaClement%2FDataLake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalondaClement%2FDataLake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalondaClement","download_url":"https://codeload.github.com/MalondaClement/DataLake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalondaClement%2FDataLake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33111963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["datalake","mysql","python3"],"created_at":"2024-12-09T21:15:11.176Z","updated_at":"2026-05-16T17:35:48.044Z","avatar_url":"https://github.com/MalondaClement.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataLake\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54) ![MySQL](https://img.shields.io/badge/mysql-%2300f.svg?style=for-the-badge\u0026logo=mysql\u0026logoColor=white)\n\n-----\n\n## 1. Database schema\n\n![Database Schema](img/database_schema.png)\n\n**Fig. 1** - _Database Schema_\n\n\n## 2. How to use this project\n### 2.1 Init the database\n\n```\npython3 main.py init\n```\n\n### 2.2 Insert data in the database\n```\npython3 main.py insert\n```\n#### 2.2.1 Insert classification dataset\nDataset tree:\n* root\n    * images\n        * label_1\n            * image1.jpg\n            * image2.jpg\n            * ...\n        * label_2\n            * image1.jpg\n            * image2.jpg\n            * ...\n        * label_3\n            * ...\n    * labels.csv\n\nlabels.csv columns name `image`, `label`\n\n#### 2.2.2 Insert detection dataset\n##### 2.2.2.a XML format\nDataset tree:\n* root\n    * images\n        * image1.jpg\n        * image2.jpg\n        * ...\n    * labels\n        * label1.xlm\n        * label2.xlm\n        * ...\n\n```xml\n\u003cannotation\u003e\n\t\u003cfilename\u003e000005.jpg\u003c/filename\u003e\n\t\u003csize\u003e\n\t\t\u003cwidth\u003e500\u003c/width\u003e\n\t\t\u003cheight\u003e375\u003c/height\u003e\n\t\t\u003cdepth\u003e3\u003c/depth\u003e\n\t\u003c/size\u003e\n\t\u003cobject\u003e\n\t\t\u003cname\u003echair\u003c/name\u003e\n\t\t\u003cbndbox\u003e\n\t\t\t\u003cxmin\u003e263\u003c/xmin\u003e\n\t\t\t\u003cymin\u003e211\u003c/ymin\u003e\n\t\t\t\u003cxmax\u003e324\u003c/xmax\u003e\n\t\t\t\u003cymax\u003e339\u003c/ymax\u003e\n\t\t\u003c/bndbox\u003e\n\t\u003c/object\u003e\n\t\u003cobject\u003e\n\t\t\u003cname\u003echair\u003c/name\u003e\n\t\t\u003cbndbox\u003e\n\t\t\t\u003cxmin\u003e165\u003c/xmin\u003e\n\t\t\t\u003cymin\u003e264\u003c/ymin\u003e\n\t\t\t\u003cxmax\u003e253\u003c/xmax\u003e\n\t\t\t\u003cymax\u003e372\u003c/ymax\u003e\n\t\t\u003c/bndbox\u003e\n\t\u003c/object\u003e\n\t\u003cobject\u003e\n\t\t\u003cname\u003echair\u003c/name\u003e\n\t\t\u003cbndbox\u003e\n\t\t\t\u003cxmin\u003e5\u003c/xmin\u003e\n\t\t\t\u003cymin\u003e244\u003c/ymin\u003e\n\t\t\t\u003cxmax\u003e67\u003c/xmax\u003e\n\t\t\t\u003cymax\u003e374\u003c/ymax\u003e\n\t\t\u003c/bndbox\u003e\n\t\u003c/object\u003e\n\t\u003cobject\u003e\n\t\t\u003cname\u003echair\u003c/name\u003e\n\t\t\u003cbndbox\u003e\n\t\t\t\u003cxmin\u003e241\u003c/xmin\u003e\n\t\t\t\u003cymin\u003e194\u003c/ymin\u003e\n\t\t\t\u003cxmax\u003e295\u003c/xmax\u003e\n\t\t\t\u003cymax\u003e299\u003c/ymax\u003e\n\t\t\u003c/bndbox\u003e\n\t\u003c/object\u003e\n\t\u003cobject\u003e\n\t\t\u003cname\u003echair\u003c/name\u003e\n\t\t\u003cbndbox\u003e\n\t\t\t\u003cxmin\u003e277\u003c/xmin\u003e\n\t\t\t\u003cymin\u003e186\u003c/ymin\u003e\n\t\t\t\u003cxmax\u003e312\u003c/xmax\u003e\n\t\t\t\u003cymax\u003e220\u003c/ymax\u003e\n\t\t\u003c/bndbox\u003e\n\t\u003c/object\u003e\n\u003c/annotation\u003e\n```\n\n##### 2.2.2.b CSV format\nDataset tree:\n* root\n    * images\n        * image1.jpg\n        * image2.jpg\n        * ...\n    * labels.csv\n\nlabels.csv columns name `image`, `label`, `xmin`, `ymin`, `xmax`, `ymax`\n\n### 2.3 Create a new dataset from the data in the database\n```\npython3 main.py create\n```\n\nThe description of the new dataset is a json file :\n\n```json\n{\n    \"type\": \"[classif|detection|segmentation]\",\n    \"path\": \"/path/to/the/root/directory\",\n    \"classes\": {\n        \"label_1\": [\"other_label_1\", \"other_label_1\"],\n        \"label_2\": [],\n        \"label_3\": [\"other_label_3\"]\n    }\n}\n```\n\n### 2.4 List label names or datasets\n```\npython3 main.py list\n```\n\n### 2.5 Clear all the database\n```\npython3 main.py clear\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalondaclement%2Fdatalake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalondaclement%2Fdatalake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalondaclement%2Fdatalake/lists"}