{"id":24635087,"url":"https://github.com/baselhusam/streamlit_arabic_support_wrapper","last_synced_at":"2025-05-08T20:57:58.335Z","repository":{"id":237685586,"uuid":"794946075","full_name":"baselhusam/streamlit_arabic_support_wrapper","owner":"baselhusam","description":"A simple component to perfectly align Arabic text in Streamlit Apps.","archived":false,"fork":false,"pushed_at":"2024-06-04T20:02:30.000Z","size":3998,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-08T20:57:50.379Z","etag":null,"topics":["streamlit-component","streamlit-components"],"latest_commit_sha":null,"homepage":"https://arabic-support.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baselhusam.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":"2024-05-02T09:23:49.000Z","updated_at":"2025-02-06T11:04:20.000Z","dependencies_parsed_at":"2024-05-03T01:00:59.268Z","dependency_job_id":"39435d67-0802-48ca-a489-0afa8e5aa8fe","html_url":"https://github.com/baselhusam/streamlit_arabic_support_wrapper","commit_stats":null,"previous_names":["baselhusam/streamlit_arabic_support_wrapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselhusam%2Fstreamlit_arabic_support_wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselhusam%2Fstreamlit_arabic_support_wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselhusam%2Fstreamlit_arabic_support_wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baselhusam%2Fstreamlit_arabic_support_wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baselhusam","download_url":"https://codeload.github.com/baselhusam/streamlit_arabic_support_wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253149568,"owners_count":21861719,"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","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":["streamlit-component","streamlit-components"],"created_at":"2025-01-25T09:14:22.950Z","updated_at":"2025-05-08T20:57:58.303Z","avatar_url":"https://github.com/baselhusam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamlit Arabic Support Wrapper\r\n\r\nThis Python package provides tools to support the alignment and proper display of Arabic text in Streamlit applications. It enhances the visual layout of Arabic content by adjusting the directionality and alignment of text and UI components.\r\n\r\n[![APP DEMO](assets/demo.gif)]\r\n\r\n## Features\r\n\r\n- **Arabic Text Alignment**: Ensures that Arabic text in Streamlit components such as markdown, input fields, and alerts is correctly aligned from right to left.\r\n- **Support for Multiple Components**: Can apply Arabic text alignment to specific Streamlit components or all supported components at once.\r\n- **Easy Integration**: Easily integrate with existing Streamlit applications to improve the display of Arabic text.\r\n\r\n## Installation\r\n\r\nYou can install the package using pip:\r\n\r\n```bash\r\npip install streamlit-arabic-support-wrapper\r\n```\r\n\r\nVisit the Official Package Site in PyPI [here](https://pypi.org/project/streamlit-arabic-support-wrapper/) \r\n\r\n## Usage\r\nFirst, import the support_arabic_text function from the package and use it in your Streamlit application. Here's an example of how to use it:\r\n\r\n```python\r\nimport streamlit as st\r\nfrom arabic_support import support_arabic_text\r\n\r\n# Support Arabic text alignment in all components\r\nsupport_arabic_text(all=True)\r\n\r\n# Application Title\r\nst.title(\"تجربة دعم اللغة العربية\")\r\n\r\n# Demonstrating different supported components\r\nst.write(\"هذا التطبيق يوضح كيفية دعم اللغة العربية في Streamlit.\")\r\n```\r\n\r\nOr, You can check the following web application for the Package information as example: [Streamlit Arabic Support Wrapper Example App](https://arabic-support.streamlit.app/)\r\n\r\n## Supported Components\r\n\r\n- **Text displays**: **`st.write`**, **`st.markdown`**\r\n- **Input widgets**: **`st.text_input`**, **`st.text_area`**, **`st.selectbox`**, **`st.multiselect`**\r\n- **Alerts**: **`st.warning`**, **`st.success`**, **`st.error`**\r\n\r\n\r\nYou can enable support for specific components by passing a list of component names to **`support_arabic_text`**, or use **`all=True`** to support all available components.\r\n\r\n## Example\r\nHere's a code snippet to support specific components:\r\n\r\n```python\r\nimport streamlit as st\r\nfrom arabic_support import support_arabic_text\r\n\r\nsupport_arabic_text(components=[\"input\", \"selectbox\", \"alert\"])\r\n```\r\nThis will apply Arabic text alignment to input fields, select boxes, and alert messages.\r\n\r\n## Author\r\n\r\n**Basel Husam**\r\n\r\nFeel free to contact me at baselmathar@gmail.com.\r\n\r\n\r\n## License\r\nThis project is licensed under the Apache License 2.0 - see the LICENSE file for details.\r\n\r\n## Contributions\r\nContributions are welcome! Please create an issue or pull request on GitHub if you have suggestions or contributions.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaselhusam%2Fstreamlit_arabic_support_wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaselhusam%2Fstreamlit_arabic_support_wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaselhusam%2Fstreamlit_arabic_support_wrapper/lists"}