{"id":35570954,"url":"https://github.com/twil3akine/keta","last_synced_at":"2026-01-15T03:45:12.891Z","repository":{"id":332409210,"uuid":"1127303375","full_name":"Twil3akine/keta","owner":"Twil3akine","description":"A lightweight, zero-dependency Rust crate for digit operations (decomposition, sum, reverse, radix support), designed for competitive programming.","archived":false,"fork":false,"pushed_at":"2026-01-05T13:30:28.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-13T19:45:56.404Z","etag":null,"topics":["algorithm","atcoder","competitive-programming","digits","math","rust","zero-dependency"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/keta","language":"Rust","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/Twil3akine.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-03T15:56:28.000Z","updated_at":"2026-01-05T13:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Twil3akine/keta","commit_stats":null,"previous_names":["twil3akine/keta"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Twil3akine/keta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twil3akine%2Fketa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twil3akine%2Fketa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twil3akine%2Fketa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twil3akine%2Fketa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Twil3akine","download_url":"https://codeload.github.com/Twil3akine/keta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Twil3akine%2Fketa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"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":["algorithm","atcoder","competitive-programming","digits","math","rust","zero-dependency"],"created_at":"2026-01-04T17:15:56.975Z","updated_at":"2026-01-15T03:45:12.879Z","avatar_url":"https://github.com/Twil3akine.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keta\n\nA lightweight, zero-dependency Rust crate for digit operations, designed for competitive programming (AtCoder, etc.).\n\n[![Crates.io](https://img.shields.io/crates/v/keta.svg)](https://crates.io/crates/keta)\n[![Documentation](https://docs.rs/keta/badge.svg)](https://docs.rs/keta)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- **Zero Dependencies**: Depends only on `std`. Fast compile times.\n- **Digit Manipulation**: Easily decompose numbers into digits (`digits()`), sum them (`digit_sum()`), or reverse them (`reverse()`).\n- **Radix Support**: Handle binary, octal, hexadecimal, or any base-N operations (`digits_radix(2)`).\n- **Useful Utilities**: Product of digits (`digit_product()`), check digit existence (`contains_digit()`), or rearrange digits (`make_max()`, `make_min()`).\n- **Competitive Programming Ready**: Optimized for speed, perfect for problems involving digit sums, palindromes, or base conversion.\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nketa = \"0.3.3\"\n```\n\n## Usage\n\n```rust\nuse keta::Keta;\n\nfn main() {\n    // 1. Decomposition (Decimal \u0026 Radix)\n    let n = 12345;\n    assert_eq!(n.digits(), vec![1, 2, 3, 4, 5]);\n    assert_eq!(6.digits_radix(2), vec![1, 1, 0]); // 6 in binary is 110\n\n    // 2. Aggregation (Sum \u0026 Product)\n    assert_eq!(n.digit_sum(), 15);        // 1+2+3+4+5 = 15\n    assert_eq!(123.digit_product(), 6);   // 1*2*3 = 6\n    assert_eq!(6.digit_sum_radix(2), 2);  // 1+1+0 = 2\n\n    // 3. Rearrangement \u0026 Properties\n    assert_eq!(2026.make_max(), 6220);\n    assert_eq!(2026.make_min(), 226);\n    assert!(12345.contains_digit(3));\n    assert!(12321.is_palindrome());\n    assert_eq!(n.reverse(), 54321);\n}\n\n```\n\n## License\n\nThis project is licensed under the [MIT LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwil3akine%2Fketa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwil3akine%2Fketa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwil3akine%2Fketa/lists"}