{"id":23940179,"url":"https://github.com/alane-pimenta/Fluent.CodeGen","last_synced_at":"2025-09-11T22:31:30.220Z","repository":{"id":245009638,"uuid":"708434105","full_name":"alane-pimenta/Fluent.CodeGen","owner":"alane-pimenta","description":"C# source generator using Fluent API","archived":false,"fork":false,"pushed_at":"2024-07-15T20:14:44.000Z","size":175,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-02T00:51:13.215Z","etag":null,"topics":["code-generation","csharp","dotnet","dotnet-core","fluent","fluent-api","source-generator","source-generators"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alane-pimenta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-22T14:56:21.000Z","updated_at":"2024-07-18T23:18:35.000Z","dependencies_parsed_at":"2024-07-12T20:18:41.820Z","dependency_job_id":null,"html_url":"https://github.com/alane-pimenta/Fluent.CodeGen","commit_stats":null,"previous_names":["alanep0922/fluent.codegen"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alane-pimenta%2FFluent.CodeGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alane-pimenta%2FFluent.CodeGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alane-pimenta%2FFluent.CodeGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alane-pimenta%2FFluent.CodeGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alane-pimenta","download_url":"https://codeload.github.com/alane-pimenta/Fluent.CodeGen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232666187,"owners_count":18557991,"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":["code-generation","csharp","dotnet","dotnet-core","fluent","fluent-api","source-generator","source-generators"],"created_at":"2025-01-06T03:12:07.773Z","updated_at":"2025-01-06T03:12:09.195Z","avatar_url":"https://github.com/alane-pimenta.png","language":"C#","readme":"# Fluent.CodeGen\n\nThis library provides a fluent api that is responsible for generating C# human readable source code. It can generate Class, Method, Constructor, Fields, Properties, Enum and so on.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"resources/header.png\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"nuget\" src=\"https://img.shields.io/nuget/dt/Fluent.CodeGen.svg\"\u003e\n    \u003ca href=\"https://app.codacy.com?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade\"\u003e\n        \u003cimg src=\"https://app.codacy.com/project/badge/Grade/557bd5392ade4dcc89cd810df48ba103\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://app.codacy.com?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_coverage\"\u003e\n        \u003cimg src=\"https://app.codacy.com/project/badge/Coverage/557bd5392ade4dcc89cd810df48ba103\"/\u003e\n    \u003c/a\u003e\n    \u003cimg alt=\"nuget version\" src=\"https://img.shields.io/nuget/v/Fluent.CodeGen.svg\"\u003e\n\u003c/p\u003e\n\n\n## Installation\n\nIn order to install the library you must run:\n\n```sh\ndotnet add package Fluent.CodeGen\n```\n\n## Examples\n\nMany examples can be found on [unit tests](https://github.com/Alanep0922/Fluent.CodeGen/tree/main/Fluent.CodeGen.Tests)\n\n```csharp\nvar fieldTest = new FieldGen(\"string\", \"test\")\n    .Public()\n    .Static();\n\nvar fieldAmount = new FieldGen(\"int\", \"amount\")\n    .Assign(\"10\");\n\nvar classGen = new ClassGen(name: \"Program\");\n\nvar generatedCode = classGen\n    .Using(\"System\")\n    .Namespace(\"My.Test\")\n    .Public()\n    .WithField(fieldTest)\n    .WithField(fieldAmount)\n    .Constructor(ctor =\u003e ctor.Public())\n    .GenerateCode();\n```\n\nThe generated code will be:\n\n```csharp\nusing System;\n\nnamespace My.Test\n{\n    public class Program\n    {\n        public static string test;\n        int amount = 10;\n\n        public Program()\n        {\n        }\n\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falane-pimenta%2FFluent.CodeGen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falane-pimenta%2FFluent.CodeGen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falane-pimenta%2FFluent.CodeGen/lists"}