{"id":24994165,"url":"https://github.com/argyle-engineering/fluentcst","last_synced_at":"2026-02-16T18:33:40.701Z","repository":{"id":121950768,"uuid":"607736959","full_name":"argyle-engineering/fluentcst","owner":"argyle-engineering","description":"An ergonomic way to build Python Concrete Syntax Trees.","archived":false,"fork":false,"pushed_at":"2025-02-03T19:11:15.000Z","size":245,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T10:58:24.914Z","etag":null,"topics":["ast","codegen","libcst","python"],"latest_commit_sha":null,"homepage":"","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/argyle-engineering.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-28T15:21:32.000Z","updated_at":"2024-11-27T10:32:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce04421a-c3d2-4f02-baca-08513b11bac8","html_url":"https://github.com/argyle-engineering/fluentcst","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/argyle-engineering/fluentcst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyle-engineering%2Ffluentcst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyle-engineering%2Ffluentcst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyle-engineering%2Ffluentcst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyle-engineering%2Ffluentcst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/argyle-engineering","download_url":"https://codeload.github.com/argyle-engineering/fluentcst/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/argyle-engineering%2Ffluentcst/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274244036,"owners_count":25248156,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"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":["ast","codegen","libcst","python"],"created_at":"2025-02-04T14:39:41.064Z","updated_at":"2026-02-16T18:33:35.665Z","avatar_url":"https://github.com/argyle-engineering.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluentcst\n\nAn ergonomic interface for [libCST](https://github.com/Instagram/LibCST):\n\n```py\nimport fluentcst as fcst\n\nmodule = fcst.Module()\nmodule.require_import(\"BaseModel\", from_=\"pydantic\")\nmodule.add(\n    fcst.ClassDef(\"MyModel\")\n    .base(\"BaseModel\")\n    .field(version=\"1.2.3\")\n    .field(status={\"code\": \"200\", \"message\": \"OK\"})\n    .field(items=[fcst.Call(\"Item\", name=\"i1\", value=\"v1\")])\n)\nprint(module.to_code())\n```\n\nthat builds valid Python code:\n\n```py\nfrom pydantic import BaseModel\n\nclass MyModel(BaseModel):\n    version = \"1.2.3\"\n    status = {\"code\": \"200\", \"message\": \"OK\"}\n    items = [Item(name = \"i1\", value = \"v1\")]\n```\n\nHighly Work in Progress. Expect interface to break, a lot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyle-engineering%2Ffluentcst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fargyle-engineering%2Ffluentcst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fargyle-engineering%2Ffluentcst/lists"}