{"id":24313911,"url":"https://github.com/ranfdev/gtk-rs-dev-tools","last_synced_at":"2026-04-18T18:32:19.285Z","repository":{"id":272836042,"uuid":"917909307","full_name":"ranfdev/gtk-rs-dev-tools","owner":"ranfdev","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-16T22:10:02.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-31T14:43:59.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/ranfdev.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":"2025-01-16T21:46:12.000Z","updated_at":"2025-01-16T22:10:04.000Z","dependencies_parsed_at":"2025-01-16T22:52:58.282Z","dependency_job_id":null,"html_url":"https://github.com/ranfdev/gtk-rs-dev-tools","commit_stats":null,"previous_names":["ranfdev/gtk-rs-dev-tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ranfdev/gtk-rs-dev-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgtk-rs-dev-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgtk-rs-dev-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgtk-rs-dev-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgtk-rs-dev-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranfdev","download_url":"https://codeload.github.com/ranfdev/gtk-rs-dev-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranfdev%2Fgtk-rs-dev-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31979907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"last_error":"SSL_read: 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":[],"created_at":"2025-01-17T09:14:47.989Z","updated_at":"2026-04-18T18:32:19.249Z","avatar_url":"https://github.com/ranfdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust GObject Generator\n\nA Python script to generate Rust code for GTK/GObject-based widgets with support for properties, signals, and template UI files.\n\n## Features\n\n- Generates Rust code for custom GTK widgets\n- Supports properties with various types (string, int, float, bool, object)\n- Handles signals with parameters and return types\n- Integrates with GTK template UI files\n- Supports template children and callbacks\n- Generates proper parent class hierarchy\n- Includes libadwaita support\n- Produces well-documented Rust code\n\n## Usage\n\n1. Install dependencies:\n   ```bash\n   sudo dnf install python3-gobject gtk4-devel\n   ```\n\n2. Run the generator:\n\n### Basic Example\n```bash\n./main.py MyWidget gtk::Widget \\\n    --properties \"label:string\" \"count:i32\" \\\n    --signals \"clicked\" \"value-changed(new_value:i32)\" \\\n    --template my_widget.ui \\\n    --template-children \"button:gtk::Button\" \\\n    --template-callbacks \"on_button_clicked\" \\\n    output_dir/\n```\n\n### Example with Nullable Properties\n```bash\n./main.py MyDialog gtk::Dialog \\\n    --properties \"title:string?\" \"width:i32\" \"height:i32\" \\\n    --signals \"closed\" \"response(response_type:i32) -\u003e bool\" \\\n    --template dialog.ui \\\n    --template-children \"header:gtk::HeaderBar\" \"content:gtk::Box\" \\\n    output_dir/\n```\n\n### Example with Custom Types\n```bash\n./main.py MyCustomWidget gtk::Widget \\\n    --properties \"custom_data:MyCustomType?\" \"enabled:bool\" \\\n    --signals \"data-changed(new_data:MyCustomType)\" \\\n    --imports \"crate::my_custom_type::MyCustomType\" \\\n    output_dir/\n```\n\n### Example with Complex Signals\n```bash\n./main.py MyComplexWidget gtk::Widget \\\n    --properties \"value:f64\" \"description:string?\" \\\n    --signals \"value-changed(new_value:f64, old_value:f64)\" \\\n              \"activated(user_data:glib::Object) -\u003e bool\" \\\n    output_dir/\n```\n\n## Command Line Arguments\n\n| Argument             | Description                                      |\n|----------------------|--------------------------------------------------|\n| `class_name`         | Name of the widget class (PascalCase)           |\n| `parent_class`       | Parent class (e.g. `gtk::Widget`)               |\n| `--properties`       | List of properties in `name:type` format        |\n| `--signals`          | List of signals with optional parameters        |\n| `--template`         | Path to template UI file                        |\n| `--template-children`| List of template children in `name:type` format |\n| `--template-callbacks| List of template callback methods              |\n| `--imports`          | Additional Rust imports                         |\n| `path`               | Output directory for generated files            |\n\n## License\n\nMIT License - See LICENSE file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fgtk-rs-dev-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franfdev%2Fgtk-rs-dev-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franfdev%2Fgtk-rs-dev-tools/lists"}