{"id":22744339,"url":"https://github.com/rohaquinlop/faststring","last_synced_at":"2025-10-06T00:55:12.326Z","repository":{"id":266599876,"uuid":"898297799","full_name":"rohaquinlop/faststring","owner":"rohaquinlop","description":"Python library for mutable string manipulation.","archived":false,"fork":false,"pushed_at":"2024-12-06T03:24:34.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T08:38:30.595Z","etag":null,"topics":["python","python-string-maupulation","python-strings","python-strings-utility"],"latest_commit_sha":null,"homepage":"","language":"C","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/rohaquinlop.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}},"created_at":"2024-12-04T06:29:37.000Z","updated_at":"2025-07-24T12:55:38.000Z","dependencies_parsed_at":"2025-06-02T01:05:35.212Z","dependency_job_id":"63b063a1-79ea-4d89-8d4f-a8f8781199c3","html_url":"https://github.com/rohaquinlop/faststring","commit_stats":null,"previous_names":["rohaquinlop/faststring"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohaquinlop/faststring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohaquinlop%2Ffaststring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohaquinlop%2Ffaststring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohaquinlop%2Ffaststring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohaquinlop%2Ffaststring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohaquinlop","download_url":"https://codeload.github.com/rohaquinlop/faststring/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohaquinlop%2Ffaststring/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542671,"owners_count":26004061,"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","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python","python-string-maupulation","python-strings","python-strings-utility"],"created_at":"2024-12-11T01:45:24.137Z","updated_at":"2025-10-06T00:55:12.286Z","avatar_url":"https://github.com/rohaquinlop.png","language":"C","readme":"# faststring\n\n`faststring` is a high-performance Python library designed to enhance string manipulation operations. It provides a `MString` class that offers efficient string concatenation, modification, slicing, and other common string operations, with the added benefit of mutable strings.\n\n## Features\n\n- **Mutable Strings**: Unlike native Python strings, which are immutable, `MString` allows you to modify strings in place.\n- **Efficient Concatenation**: Append strings without the overhead of creating new string objects.\n- **Index Modification**: Modify characters at specific indices with ease.\n- **Slicing**: Extract and modify slices of strings efficiently.\n- **Contains Check**: Quickly check if a substring is present.\n- **Find Substrings**: Locate substrings within the string.\n- **Clear Strings**: Reset the string content efficiently.\n- **Multiplication**: Multiply the string by an integer using the `*` operator.\n\n## Installation\n\nYou can install FastString using `pip`:\n\n```sh\npip install faststring\n```\n\n## Usage\n\nHere's a quick example to get you started:\n\n```python\nfrom faststring import MString\n\n# Create a new MString object\ns = MString(\"Hello, \")\n\n# Append a string\ns += \"world!\"\n\n# Or use the append method\ns.append(\" How are you?\")\n\n# Modify a character at a specific index\ns[7] = \"W\"\n\n# Modify a slice of the string\ns[0:2] = \"Hi\"\ns[0:5] = \"Hi\"\ns[0:2] = \"Hello\"\n\n# Extract a slice of the string\nprint(s[0:6])  # Output: Hello,\n\n# Check if a substring is present\nprint(\"World\" in s)  # Output: True\n\n# Find the index of a substring\nprint(s.find(\"World\"))  # Output: 7\n\n# Clear the string\ns.clear()\n\n# Output the final string\nprint(s)  # Output: \"\"\n\n# You can also use the MString object as a regular string\nprint(len(s))  # Output: 0\n\n# You can also convert the MString object to a regular string\ns = s.to_string()\n\nms = MString(\"Hello\")\n\n# Multiply the string by an integer\nms *= 3\nprint(ms)  # Output: HelloHelloHello\n\n# Reverse the string\nms.reverse()\nprint(ms)  # Output: olleHolleHolleH\n\n# Replace a substring with another string\nms.replace(\"olleH\", \"Hi\")\nprint(ms)  # Output: HiHiHi\n```\n\n## Mutable Strings\n\nOne of the key features of `faststring` is the ability to modify strings in place. This can be particularly useful when dealing with large strings or when you need to perform multiple string manipulation operations in sequence.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nIf you have any questions or suggestions, feel free to reach out to me at [rohaquinlop301@gmail.com](mailto:rohaquinlop301@gmail.com) or [LinkedIn](https://www.linkedin.com/in/robin-hafid/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohaquinlop%2Ffaststring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohaquinlop%2Ffaststring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohaquinlop%2Ffaststring/lists"}