{"id":24108160,"url":"https://github.com/basemax/persian-hex-system","last_synced_at":"2026-02-07T05:02:05.520Z","repository":{"id":271810658,"uuid":"914569540","full_name":"BaseMax/persian-hex-system","owner":"BaseMax","description":"The Persian Hex System is a cultural and technical project inspired by Arash Mohammadi. Its goal is to create a uniquely Persian system to replace the traditional hexadecimal (hex) numbering system, designed specifically to reflect Iranian culture and Persian language. This project provides tools and scripts in multiple programming languages.","archived":false,"fork":false,"pushed_at":"2025-01-10T11:38:51.000Z","size":6313,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T11:57:31.295Z","etag":null,"topics":["bash","bin","binary","c","computer","cpp","hex","hex-system","persian","php","py","python","ruby","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2025-01-09T21:19:23.000Z","updated_at":"2025-01-10T19:56:20.000Z","dependencies_parsed_at":"2025-01-10T03:19:00.259Z","dependency_job_id":"9f9d2f24-d6ea-4472-bd2e-449bd492586c","html_url":"https://github.com/BaseMax/persian-hex-system","commit_stats":null,"previous_names":["basemax/persian-hex-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/persian-hex-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fpersian-hex-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fpersian-hex-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fpersian-hex-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fpersian-hex-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/persian-hex-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fpersian-hex-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29186742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T03:35:06.566Z","status":"ssl_error","status_checked_at":"2026-02-07T03:34:57.604Z","response_time":63,"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":["bash","bin","binary","c","computer","cpp","hex","hex-system","persian","php","py","python","ruby","shell"],"created_at":"2025-01-10T23:26:03.070Z","updated_at":"2026-02-07T05:02:05.498Z","avatar_url":"https://github.com/BaseMax.png","language":"Python","readme":"# Persian Hex System\n\nThe **Persian Hex System** is a cultural and technical project inspired by Arash Mohammadi. Its goal is to create a uniquely Persian system to replace the traditional hexadecimal (hex) numbering system, designed specifically to reflect Iranian culture and Persian language. This project provides tools and scripts in multiple programming languages to work with the Persian Hex system.\n\n## Features\n\n- Multilingual support with implementations in **C**, **C++**, **Python**, **PHP**, **Ruby**, and **Bash**.\n- Ability to compile and run examples for Persian Hex conversion in a variety of environments.\n- JSON-based input/output testing to validate implementation correctness.\n\n## Languages\n\n- [x] C\n- [x] C++ (CPP)\n- [x] Python\n- [x] PHP\n- [x] Go\n- [x] Rust\n- [x] Ruby\n- [x] Bash\n- [x] Lua\n- [x] JavaScript\n- [x] TypeScript\n- [x] Java\n- [ ] Perl\n- [ ] Swift\n- [ ] Dart\n\n## Presentation Screenshots\n\n| First                              | Second                              | Third                              |\n|------------------------------------|-------------------------------------|------------------------------------|\n| ![Screenshot 1](images/1.jpg)     | ![Screenshot 2](images/2.jpg)      | ![Screenshot 3](images/3.jpg)     |\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/BaseMax/persian-hex-system.git\n   cd persian-hex-system\n   ```\n\n2. Install the required dependencies for your environment. Ensure you have compilers (e.g., GCC, G++) and interpreters for the supported languages installed.\n\n## Usage\n\n### Testing All Languages\n\nRun the test script to validate all implementations:\n\n```bash\npython3 test.py\n```\n\n### Testing a Specific Language\nSpecify a language to test its implementation:\n\n```bash\npython3 test.py \u003clanguage\u003e\n```\n\nFor example:\n\n```bash\npython3 test.py php\n```\n\n### Example Outputs\n\nYou can compile and execute individual implementations directly. For example:\n\n```bash\n./persian_hex_c\nor\n./persian_hex_cpp\n```\n\nProvide an input number to convert it into the Persian Hex format.\n\n## Examples\n\n### Running with Python\n\n```bash\npython3 examples/repl.py\n```\n\n### Running with Ruby\n\n```bash\nruby examples/repl.rb\n```\n\n### Running with PHP\n\n```bash\nphp examples/repl.php\n```\n\n### Running with Bash\n\n```bash\nbash examples/repl.sh\n```\n\n### Running with JavaScript\n\n```bash\nnode src/repl.js\n```\n\n### Running with TypeScript\n\n```\nts-node src/repl.ts\n```\n\n### Running with Java\n\n```\njavac src/repl.java\njava -cp src repl\n```\n\n### Compiling and Running C Code\n\n```bash\ngcc examples/repl.c libs/persian_hex.c -o persian_hex_c\n./persian_hex_c\n```\n\n### Compiling and Running C++ Code\n\n```bash\ng++ examples/repl.cpp libs/persian_hex.cpp -o persian_hex_cpp\n./persian_hex_cpp\n```\n\n### Testing JSON Data\n\nUse the `data.json` file for input/output reference.\n\n### Development\n\n- Add your script to the `examples` directory with the appropriate file extension.\n- Update `LANGUAGE_EXTENSIONS` in `test.py` if adding support for a new language.\n- Follow the JSON format in `data.json` for input-output validation.\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests to improve the project.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\nCopyright 2025 Max Base\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fpersian-hex-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fpersian-hex-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fpersian-hex-system/lists"}