{"id":15395147,"url":"https://github.com/orhun/parseit","last_synced_at":"2025-04-16T00:06:32.191Z","repository":{"id":57407465,"uuid":"479735971","full_name":"orhun/parseit","owner":"orhun","description":"A simple text file parsing library powered by regex and glob patterns","archived":false,"fork":false,"pushed_at":"2024-05-29T20:50:53.000Z","size":56,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T00:06:02.542Z","etag":null,"topics":["glob-pattern","parser-library","parsing","regex","rust","text-file-parser","text-parser"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/orhun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","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},"funding":{"github":"orhun","patreon":"orhunp"}},"created_at":"2022-04-09T13:34:33.000Z","updated_at":"2024-05-29T20:50:57.000Z","dependencies_parsed_at":"2023-11-19T09:38:37.526Z","dependency_job_id":null,"html_url":"https://github.com/orhun/parseit","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"1f9ac5108c17a05df7a2163454e3681356c7f373"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fparseit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fparseit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fparseit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Fparseit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orhun","download_url":"https://codeload.github.com/orhun/parseit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173084,"owners_count":21224483,"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":["glob-pattern","parser-library","parsing","regex","rust","text-file-parser","text-parser"],"created_at":"2024-10-01T15:26:10.687Z","updated_at":"2025-04-16T00:06:32.156Z","avatar_url":"https://github.com/orhun.png","language":"Rust","readme":"# parseit\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/orhun/parseit/ci.yml)](https://github.com/orhun/parseit/actions)\n[![Crates.io](https://img.shields.io/crates/v/parseit)](https://crates.io/crates/parseit)\n[![docs.rs](https://img.shields.io/docsrs/parseit)](https://docs.rs/parseit/latest)\n[![Codecov](https://img.shields.io/codecov/c/gh/orhun/parseit)](https://app.codecov.io/gh/orhun/parseit)\n\nSimple text file parsing library powered by [regex](https://en.wikipedia.org/wiki/Regular_expression) and [glob patterns](\u003chttps://en.wikipedia.org/wiki/Glob_(programming)\u003e).\n\n```rs\n// Create a parser to parse sections in Cargo.toml (and optionally Cargo.lock)\nlet parser = Parser::new(\u0026[\"Cargo.*\"], \u0026[\"Cargo.toml\"], r#\"^\\[(.*)\\]$\\n\"#).unwrap();\n\n// Parse the files in the manifest directory.\nlet documents = parser\n    .parse(\u0026PathBuf::from(env!(\"CARGO_MANIFEST_DIR\")))\n    .unwrap();\n\n// Print results.\nfor document in documents {\n    println!(\"Path: {}\", document.path.to_string_lossy());\n    for paragraph in document.paragraphs {\n        println!(\"Title: {}\", paragraph.title);\n        println!(\"Contents: {}\", paragraph.contents);\n        println!();\n    }\n}\n```\n\n## Examples\n\nSee [examples](./examples/).\n\n## Cargo Features\n\n- `gzip`: support reading gzip (`.gz`) files\n\n## License\n\nLicensed under either of [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) or [The MIT License](http://opensource.org/licenses/MIT) at your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache 2.0 License, shall be dual licensed as above, without any additional terms or conditions.\n\n## Copyright\n\nCopyright © 2022-2024, [Orhun Parmaksız](mailto:orhunparmaksiz@gmail.com)\n","funding_links":["https://github.com/sponsors/orhun","https://patreon.com/orhunp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fparseit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forhun%2Fparseit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Fparseit/lists"}