{"id":34553662,"url":"https://github.com/ross-spencer/eyeglass","last_synced_at":"2026-05-27T00:32:22.488Z","repository":{"id":5385639,"uuid":"6573753","full_name":"ross-spencer/eyeglass","owner":"ross-spencer","description":"Sample file format for teaching the principles  file format development in the digital preservation community","archived":false,"fork":false,"pushed_at":"2025-03-10T14:44:43.000Z","size":31,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T19:37:41.453Z","etag":null,"topics":["code4lib","digipres","file-formats","kaitai","pedagogy","pronom"],"latest_commit_sha":null,"homepage":"https://exponentialdecay.co.uk/blog/genesis-of-a-file-format/","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/ross-spencer.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":"2012-11-07T03:45:08.000Z","updated_at":"2023-10-26T23:15:36.000Z","dependencies_parsed_at":"2022-09-20T02:55:53.301Z","dependency_job_id":"d3afa58a-8500-43cb-b2a8-c4472da3c41f","html_url":"https://github.com/ross-spencer/eyeglass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ross-spencer/eyeglass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Feyeglass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Feyeglass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Feyeglass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Feyeglass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ross-spencer","download_url":"https://codeload.github.com/ross-spencer/eyeglass/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ross-spencer%2Feyeglass/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33545458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["code4lib","digipres","file-formats","kaitai","pedagogy","pronom"],"created_at":"2025-12-24T08:21:41.405Z","updated_at":"2026-05-27T00:32:22.187Z","avatar_url":"https://github.com/ross-spencer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eyeglass\n\nSample 'file format' specification and applications for understanding issues in\ndigital preservation. The format stores the information required for an eyeglass\nprescription for a single patient.\n\n## Specification\n\n    Eyeglass Format Specification 1.0\n    ---\n    Magic number    - 14 bytes  - String\n    Version         - 1 bytes   - Unsigned Char\n    Big-endian      - 1 byte    - Bool\n    Date/time       - 19 bytes  - String #YYYY-MM-DDTHH:MM:SS\n    Expansion room  - 88 bytes  - Undefined\n    Sphere          - 8 bytes   - R: Float   L: Float\n    Cylinder        - 8 bytes   - R: Float   L: Float\n    Axis            - 8 bytes   - R: Integer L: Integer\n    Prism           - 8 bytes   - R: Float   L: Float\n    Base            - 8 bytes   - R: Float   L: Float\n    Distance acuity - 8 bytes   - R: Float   L: Float\n    Near acuity     - 8 bytes   - R: Integer L: Integer\n    Purpose         - 140 bytes - String\n    Observation     - 255 bytes - String\n    Next checkup    - 4 bytes   - Float\n    End of file     - 4 bytes   - String\n\nThe *‘magic number’* identifying the file format will be as follows:\n\n    '\\xBB\\x0D\\x0A\\x65\\x79\\x65\\x67\\x6C\\x61\\x73\\x73\\x1A\\x0A\\xAB'\n\nThe *‘end of file’* sequence terminating the stream will be as follows:\n\n    '\\xBB\\x65\\x6f\\x66'\n\n## Further reading\n\n* [exponentialdecay.co.uk/blog/genesis-of-a-file-format][expo-1].\n* [exponentialdecay.co.uk/blog/shattering-the-eyeglass][expo-2].\n\n[expo-1]: http://exponentialdecay.co.uk/blog/genesis-of-a-file-format/\n[expo-2]: https://exponentialdecay.co.uk/blog/shattering-the-eyeglass/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross-spencer%2Feyeglass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fross-spencer%2Feyeglass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fross-spencer%2Feyeglass/lists"}