{"id":20751939,"url":"https://github.com/frankhaugen/class-from-dataset","last_synced_at":"2026-05-26T20:03:35.707Z","repository":{"id":116265401,"uuid":"141036203","full_name":"frankhaugen/class-from-dataset","owner":"frankhaugen","description":"A simple tool to use a dataset, (e.g. CSV), to generate a .class file with a class","archived":false,"fork":false,"pushed_at":"2026-05-02T03:44:40.000Z","size":13603,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-02T05:32:24.001Z","etag":null,"topics":["c-sharp","class-generator","csv","quality-of-life","tool","utility"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/frankhaugen.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":"2018-07-15T14:57:15.000Z","updated_at":"2026-05-02T03:44:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"0115c8fe-4373-4d90-91f6-d96808cf5048","html_url":"https://github.com/frankhaugen/class-from-dataset","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/frankhaugen/class-from-dataset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankhaugen%2Fclass-from-dataset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankhaugen%2Fclass-from-dataset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankhaugen%2Fclass-from-dataset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankhaugen%2Fclass-from-dataset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankhaugen","download_url":"https://codeload.github.com/frankhaugen/class-from-dataset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankhaugen%2Fclass-from-dataset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33536673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"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":["c-sharp","class-generator","csv","quality-of-life","tool","utility"],"created_at":"2024-11-17T08:39:06.892Z","updated_at":"2026-05-26T20:03:35.685Z","avatar_url":"https://github.com/frankhaugen.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## class-from-dataset\nA simple tool to use a dataset, (e.g. CSV), to generate a .class file with properties based on the header.\n\nThe idea is that sometimes you have data with so many columns that it takes way to long to create it manually.\n\nThis tool creates the class and a starting point of properties, so the programmer can start working with the data imediatly  \n### Basic functionality\nFeed tha program with a dataset it recognizes with headers and some data, (min. 5 lines of data), and it will create a class after doing a \"best guess\" for which datatype it should use for the diffrent columns, (if it's less than 60% certain, it will deem it a string by default)\n\nIt also checks the method names for \"illigal words\", (like \"var\"), and uppercases the first letter\n\n### Usage\nIt uses the csv -file \"input.csv\", which must have headers and at least 5 lines of data, and creates a class with properies in the \"output.txt\"-file, (se below for example output)\n\n### Testing Dataset\nWhile testing, this program uses an astronomical dataset, because it has coloumns of varying types of data.\n\n### Sample input (headers)\n\u003eid,hip,hd,hr,gl,bf,proper,ra,dec,dist,pmra,pmdec,rv,mag,absmag,spect,ci,x,y,z,vx,vy,vz,rarad,decrad,pmrarad,pmdecrad,bayer,flam,con,comp,comp_primary,base,lum,var,var_min,var_max\n\n### Sample output\n```csharp\nclass \n{\n\tpublic int Id { get; set; }\n\tpublic int Hip { get; set; }\n\tpublic int Hd { get; set; }\n\tpublic string Hr { get; set; }\n\tpublic string Gl { get; set; }\n\tpublic string Bf { get; set; }\n\tpublic string Proper { get; set; }\n\tpublic decimal Ra { get; set; }\n\tpublic decimal Dec { get; set; }\n\tpublic decimal Dist { get; set; }\n\tpublic decimal Pmra { get; set; }\n\tpublic decimal Pmdec { get; set; }\n\tpublic decimal Rv { get; set; }\n\tpublic decimal Mag { get; set; }\n\tpublic decimal Absmag { get; set; }\n\tpublic string Spect { get; set; }\n\tpublic decimal Ci { get; set; }\n\tpublic decimal X { get; set; }\n\tpublic decimal Y { get; set; }\n\tpublic decimal Z { get; set; }\n\tpublic decimal Vx { get; set; }\n\tpublic decimal Vy { get; set; }\n\tpublic decimal Vz { get; set; }\n\tpublic decimal Rarad { get; set; }\n\tpublic decimal Decrad { get; set; }\n\tpublic decimal Pmrarad { get; set; }\n\tpublic decimal Pmdecrad { get; set; }\n\tpublic string Bayer { get; set; }\n\tpublic string Flam { get; set; }\n\tpublic string Con { get; set; }\n\tpublic int Comp { get; set; }\n\tpublic int Comp_primary { get; set; }\n\tpublic string Base_ { get; set; }\n\tpublic decimal Lum { get; set; }\n\tpublic string Var_ { get; set; }\n\tpublic string Var_min { get; set; }\n\tpublic string Var_max { get; set; }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankhaugen%2Fclass-from-dataset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankhaugen%2Fclass-from-dataset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankhaugen%2Fclass-from-dataset/lists"}