{"id":44595168,"url":"https://github.com/jcwang587/geddes","last_synced_at":"2026-04-17T21:02:02.480Z","repository":{"id":333595236,"uuid":"1137890954","full_name":"jcwang587/geddes","owner":"jcwang587","description":"A Rust XRD pattern parser with Python and Node.js bindings","archived":false,"fork":false,"pushed_at":"2026-04-03T20:43:19.000Z","size":354,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-03T22:31:46.482Z","etag":null,"topics":["nodejs","parser","python","reader","rust","xrd"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jcwang587.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-20T01:21:32.000Z","updated_at":"2026-04-03T20:43:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jcwang587/geddes","commit_stats":null,"previous_names":["jcwang587/geddes"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jcwang587/geddes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcwang587%2Fgeddes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcwang587%2Fgeddes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcwang587%2Fgeddes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcwang587%2Fgeddes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcwang587","download_url":"https://codeload.github.com/jcwang587/geddes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcwang587%2Fgeddes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31945987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["nodejs","parser","python","reader","rust","xrd"],"created_at":"2026-02-14T08:13:27.048Z","updated_at":"2026-04-17T21:02:02.475Z","avatar_url":"https://github.com/jcwang587.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geddes\n\n[![Crates.io](https://img.shields.io/crates/v/geddes)](https://crates.io/crates/geddes)\n[![PyPI](https://img.shields.io/pypi/v/geddes)](https://pypi.org/project/geddes/)\n[![npm](https://img.shields.io/npm/v/%40jcwang587%2Fgeddes)](https://www.npmjs.com/package/@jcwang587/geddes)\n\n\nA Rust XRD pattern parser with Python and Node.js bindings. Supports:\n- `.raw` (GSAS text or Bruker binary)\n- `.rasx` (Rigaku Zip archive)\n- `.xrdml` (Panalytical XML)\n- `.xy` / `.xye` (Space-separated ASCII)\n- `.csv` (Comma-separated values)\n\n## Rust Usage\n\nLoad from a file path:\n\n```rust\nuse geddes::read;\n\nfn main() {\n    let pattern = read(\"tests/data/xy/sample.xy\").unwrap();\n    println!(\"{} {}\", pattern.x.len(), pattern.y.len());\n}\n```\n\nLoad from in-memory bytes (filename is used to infer the format):\n\n```rust\nuse std::fs;\n\nuse geddes::read_bytes;\n\nfn main() {\n    let data = fs::read(\"tests/data/xy/sample.xy\").unwrap();\n    let pattern = read_bytes(\u0026data, \"sample.xy\").unwrap();\n    println!(\"{} {}\", pattern.x.len(), pattern.y.len());\n}\n```\n\n## Python Usage\n\nLoad from a file path:\n\n```python\nimport geddes\n\npattern = geddes.read(\"tests/data/xy/sample.xy\")\nprint(len(pattern.x), len(pattern.y))\n```\n\nLoad from in-memory bytes (filename is used to infer the format):\n\n```python\nimport geddes\n\nwith open(\"tests/data/xy/sample.xy\", \"rb\") as f:\n    data = f.read()\n\npattern = geddes.read_bytes(data, \"sample.xy\")\nprint(len(pattern.x), len(pattern.y))\n```\n\n## Node.js Usage\n\nLoad from a file path:\n\n```javascript\nconst geddes = require('@jcwang587/geddes')\n\nconst pattern = geddes.read('tests/data/xy/sample.xy')\nconsole.log(pattern.x.length, pattern.y.length)\n```\n\nLoad from in-memory bytes (filename is used to infer the format):\n\n```javascript\nconst fs = require('node:fs')\nconst geddes = require('@jcwang587/geddes')\n\nconst bytes = fs.readFileSync('tests/data/xy/sample.xy')\nconst pattern = geddes.readBytes(bytes, 'sample.xy')\nconsole.log(pattern.x.length, pattern.y.length)\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcwang587%2Fgeddes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcwang587%2Fgeddes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcwang587%2Fgeddes/lists"}