{"id":22788834,"url":"https://github.com/shateq/inicere","last_synced_at":"2025-07-27T16:34:29.348Z","repository":{"id":140836822,"uuid":"451406634","full_name":"shateq/inicere","owner":"shateq","description":"Currently rewritten... Hard working","archived":false,"fork":false,"pushed_at":"2022-11-24T18:50:21.000Z","size":291,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-30T16:25:23.025Z","etag":null,"topics":["config","java","toml"],"latest_commit_sha":null,"homepage":"","language":"Java","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/shateq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2022-01-24T09:53:45.000Z","updated_at":"2022-11-22T15:43:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"06284abe-0950-4d60-83e7-276a7f19c59e","html_url":"https://github.com/shateq/inicere","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shateq/inicere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shateq%2Finicere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shateq%2Finicere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shateq%2Finicere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shateq%2Finicere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shateq","download_url":"https://codeload.github.com/shateq/inicere/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shateq%2Finicere/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267387055,"owners_count":24079167,"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-07-27T02:00:11.917Z","response_time":82,"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":["config","java","toml"],"created_at":"2024-12-12T01:37:02.583Z","updated_at":"2025-07-27T16:34:29.314Z","avatar_url":"https://github.com/shateq.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experimental concept - Inicere\n\nLightweight, practical library for working with TOML files.\nGoal: Lightweight work multiple files using simple (with event handler)\n\n\u003cdetails open \u003e\n  \u003csummary\u003e\u003ch2\u003e\n    Table of Contents\n  \u003c/h2\u003e\u003c/summary\u003e\n\n1. [Start](#getting-started)\n2. [Examples](#examples)\n3. [Develop](#develop)\n4. [License](#license)\n\n\u003c/details\u003e\n\n\u003chr\u003e\n\n## Getting started\n\n- Explore javadocs: https://shateq.github.io/inicere/\n- Check out [Wiki](https://github.com/shateq/inicere/wiki)\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eAdd as a dependency\u003c/strong\u003e\u003c/summary\u003e\n\n**Gradle**\n\n```groovy\nrepositories {\n    maven { url \"https://jitpack.io\" }\n}\n\ndependencies {\n    implementation(\"cf.shateq:inicere-core:(Version tag)\")\n}\n```\n\n\u003c/details\u003e\n\n## Examples\n\n[Examples](/examples) project\n\n\u003cdetails\u003e\n\u003csummary\u003eInicere instance\u003c/summary\u003e\n\n```java\nclass A {\n    @Element(\"object\")\n    public boolean good = false;\n\n    public void initialize() {\n        AnyName object = new AnyName();\n        // Key-value store\n        Inicere inicere = new Inicere(Path.of(\"fileName.toml\")); // Simple way\n\n        inicere.set(\"some.key\", 3.14);\n        inicere.get(\"some.key\"); // 3.14\n\n        // Reflection, requires you to bind an object\n        Inicere binding = new Inicere.Phi()\n                .setFile(Path.of(\"file-name.toml\"))\n                .setObject(object)\n                .build(); // Hard way\n\n        binding.set(\"object\", true);\n        object.good; // true\n    }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eClass serialization\u003c/summary\u003e\n\n```java\nclass B {\n     void func() {\n        Inicere paths = new Inicere(Path.of(\"file-name.toml\"));\n        paths.bind(new DefaultFile());\n        paths.bound().key$to$integer; // 2\n\n        paths.set(\"key.to.integer\", 4);\n        paths.bound().key$to$integer; // 4\n\n        Inicere sections = new Inicere(new AsAFile());\n\n        sections.set(\"version\", \"1.0.1\");\n        sections.get(\"version\"); // \"1.0.1\"\n    }\n\n    @DataSection\n    class DefaultFile {\n        public boolean bool = false;\n        public int key$to$integer = 2;\n        // This field won't be processed\n        transient String weatherOutside = \"appealing\";\n    }\n\n    @DataSection(\"as-a-file.toml\")\n    class AsAFile {\n        String version = \"1.0.0\";\n        double pi = 3.14;\n    }\n}\n```\n\u003c/details\u003e\n\n## Develop\n\nGradle guides, modules\n\n## License\n\nLicensed under MIT. Check [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshateq%2Finicere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshateq%2Finicere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshateq%2Finicere/lists"}