{"id":23158724,"url":"https://github.com/greendelta/olca-simapro-csv","last_synced_at":"2026-01-04T07:35:03.234Z","repository":{"id":46018984,"uuid":"415244144","full_name":"GreenDelta/olca-simapro-csv","owner":"GreenDelta","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-17T13:07:04.000Z","size":206,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-17T16:22:52.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GreenDelta.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}},"created_at":"2021-10-09T08:04:11.000Z","updated_at":"2024-09-17T13:07:08.000Z","dependencies_parsed_at":"2023-09-26T02:31:53.192Z","dependency_job_id":null,"html_url":"https://github.com/GreenDelta/olca-simapro-csv","commit_stats":{"total_commits":109,"total_committers":4,"mean_commits":27.25,"dds":0.4128440366972477,"last_synced_commit":"c11e40e7722f2ecaf62e813eebcc8d0793c8c3ff"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-simapro-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-simapro-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-simapro-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GreenDelta%2Folca-simapro-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GreenDelta","download_url":"https://codeload.github.com/GreenDelta/olca-simapro-csv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230189813,"owners_count":18187370,"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","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":"2024-12-17T22:27:17.655Z","updated_at":"2026-01-04T07:35:02.192Z","avatar_url":"https://github.com/GreenDelta.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# olca-simapro-csv\n\n`olca-simapro-csv` is an API for reading and writing the [SimaPro CSV format](./format.md).\n\n## Usage\n\nInclude this dependency in your project:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.openlca\u003c/groupId\u003e\n  \u003cartifactId\u003eolca-simapro-csv\u003c/artifactId\u003e\n  \u003cversion\u003e3.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nYou can directly read a CSV data set from a file:\n\n```java\nvar dataSet = SimaProCsv.read(file);\n```\n\nAlternatively, you can read the content of a file block by block. This is useful\nwhen you have large files that do not fit into memory:\n\n```java\nSimaProCsv.read(file, block -\u003e {\n  if (block.isProcessBlock()) {\n    var process = block.asProcessBlock();\n    // ...\n  } else if (block.isUnitBlock()) {\n    var unitBlock = block.asUnitBlock();\n    // ...\n  }\n});\n```\n\nA data set can be written to a file:\n\n```java\ndataset.write(file);\n```\n\nThere is also a more low-level API to write data sets to a `CsvBuffer`:\n\n```\nCsvDataSet ds = ...\ntry (var writer = new FileWriter(file, SimaProCsv.defaultCharset())) {\n  ds.write(new CsvBuffer(writer, ds.header()));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-simapro-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreendelta%2Folca-simapro-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreendelta%2Folca-simapro-csv/lists"}