{"id":37023058,"url":"https://github.com/lahahana/csv","last_synced_at":"2026-01-14T02:45:47.400Z","repository":{"id":57720920,"uuid":"85890822","full_name":"lahahana/csv","owner":"lahahana","description":"Java Annotation based CSV serialization\\deserialization tool. Especially useful for csv report generator application","archived":false,"fork":false,"pushed_at":"2017-09-12T13:55:18.000Z","size":103,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T20:39:54.745Z","etag":null,"topics":["annotation-csv","csv","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lahahana.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}},"created_at":"2017-03-23T00:49:03.000Z","updated_at":"2018-01-09T12:05:23.000Z","dependencies_parsed_at":"2022-09-02T11:01:51.613Z","dependency_job_id":null,"html_url":"https://github.com/lahahana/csv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lahahana/csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahahana%2Fcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahahana%2Fcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahahana%2Fcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahahana%2Fcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lahahana","download_url":"https://codeload.github.com/lahahana/csv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahahana%2Fcsv/sbom","scorecard":{"id":577231,"data":{"date":"2025-08-11","repo":{"name":"github.com/lahahana/csv","commit":"2114c193996ba37c0020aa02d53db1398410ee7f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: stream error: stream ID 1041; CANCEL; received from peer","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T18:10:12.306Z","repository_id":57720920,"created_at":"2025-08-20T18:10:12.306Z","updated_at":"2025-08-20T18:10:12.306Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["annotation-csv","csv","java"],"created_at":"2026-01-14T02:45:46.532Z","updated_at":"2026-01-14T02:45:47.233Z","avatar_url":"https://github.com/lahahana.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# csv\nJava Annotation based CSV serialization/deserialization tool.It provide batch style api for small scale data, also, provide streaming style api for large scale data.\n\n### # 这是一个根据Java Class Field进行CSV序列化/反序列化的工具，基于注解的形式，只需要在相关类上添加注解，就可以实现自定义的CSV序列化/反序列化方案\n\n通过调用`CsvSerializer.serialize(*)`来进行CSV序列化\n\n相关注解：\n* `@CsvIgnore` :此注解为标识性注解，`@Target({ElementType.FIELD})`, 表示该字段在序列化时会被忽略\n* `@CsvIgnoreProperties`：此注解`@Target({ElementType.TYPE})`，在类级别指定当前类所拥有字段的哪些在序列化时忽略\n* `@CsvProperty`：此注解`@Target({ElementType.TYPE})`，通过指定此注解的`header`，`order`,分别可以实现在序列化时指定指定的字段的csv header的值，字段的序列化顺序。最重要的一个属性是`serializationConvertor/deserializationConvertor`，如果需要对特定字段在序列化/反序列化时进行一些数据转换的操作，可以通过继承`com.alpha.csv.convertor.SerializationConvertor/DeserializationConvertor`接口,实现自定义的Convertor。\n\n**Demo：**\n    \n    @CsvIgnoreProperties({\"country\"})    \n    public class Address {\n    \n        private String country = \"CN\";\n    \n        @CsvIgnore\n        public String state = \"ZJ\";\n    \n        private String city = \"Hangzhou\";\n    \n    }\n\n    public class Person {\n    \n        @CsvProperty(header=\"Name\", order=1)\n        private String name = \"Lahahana\";\n\n        @CsvProperty(header=\"ID\", order=0)\n        private int id = 10001;\n    \n        @CsvProperty(header = \"Birthday\", order=2, convertor = TimeToDateConvertor.class)\n        public long birthday= System.currentTimeMillis();\n    \n        private Address address = new Address();\n    \n        public static void main(String []args) throws CsvException, IOException {\n            List persons = new ArrayList();\n            Person person = new Person();\n            for(int i=0;i\u003c10;i++)\n                list.add(person);    \n            FileWriter out = new FileWriter(\"result.csv\");\n            CsvSerializer serializer = new CsvSerializer.Builder(out).build();\n            serializer.serialize(persons, Person.class);\n            serializer.close();\n        }\n    }\n\n\n**Result:**  \n    ID,Name,Birthday,city  \n    10001,Lahahana,Tue Mar 28 21:14:59 GMT+08:00 2017,Hangzhou  \n    10001,Lahahana,Tue Mar 28 21:14:59 GMT+08:00 2017,Hangzhou  \n    \n**Maven Dependency:** \n   ```\n    \u003cdependency\u003e  \n        \u003cgroupId\u003ecom.github.lahahana\u003c/groupId\u003e  \n        \u003cartifactId\u003ecsv\u003c/artifactId\u003e  \n        \u003cversion\u003e2.0.1\u003c/version\u003e  \n    \u003c/dependency\u003e\n   ```\n   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahahana%2Fcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahahana%2Fcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahahana%2Fcsv/lists"}