Skip to main content

Streamlit Arabic Support Wrapper

This 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.

[APP DEMO]

Features

  • Arabic Text Alignment: Ensures that Arabic text in Streamlit components such as markdown, input fields, and alerts is correctly aligned from right to left.
  • Support for Multiple Components: Can apply Arabic text alignment to specific Streamlit components or all supported components at once.
  • Easy Integration: Easily integrate with existing Streamlit applications to improve the display of Arabic text.

Installation

You can install the package using pip:

pip install streamlit-arabic-support-wrapper

Visit the Official Package Site in PyPI here

Usage

First, 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:

import streamlit as st
from arabic_support import support_arabic_text

# Support Arabic text alignment in all components
support_arabic_text(all=True)

# Application Title
st.title("تجربة دعم اللغة العربية")

# Demonstrating different supported components
st.write("هذا التطبيق يوضح كيفية دعم اللغة العربية في Streamlit.")

Or, You can check the following web application for the Package information as example: Streamlit Arabic Support Wrapper Example App

Supported Components

  • Text displays: st.write, st.markdown
  • Input widgets: st.text_input, st.text_area, st.selectbox, st.multiselect
  • Alerts: st.warning, st.success, st.error

You 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.

Example

Here's a code snippet to support specific components:

import streamlit as st
from arabic_support import support_arabic_text

support_arabic_text(components=["input", "selectbox", "alert"])

This will apply Arabic text alignment to input fields, select boxes, and alert messages.

Author

Basel Husam

Feel free to contact me at baselmathar@gmail.com.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Contributions

Contributions are welcome! Please create an issue or pull request on GitHub if you have suggestions or contributions.

Metadata

Release files for streamlit-arabic-support-wrapper 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamlit-arabic-support-wrapper 1.1
File Size Uploaded Provenance Actions
streamlit_arabic_support_wrapper-1.1.tar.gz 7.6 kB Without provenance Details for streamlit_arabic_support_wrapper-1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-arabic-support-wrapper 1.1
File Interpreter ABI Platform Actions
streamlit_arabic_support_wrapper-1.1-py3-none-any.whl Python 3 none any Details for streamlit_arabic_support_wrapper-1.1-py3-none-any.whl

Total release size: 16.0 kB

Release files / streamlit_arabic_support_wrapper-1.1.tar.gz

Download URL streamlit_arabic_support_wrapper-1.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1238295a1d9e75986bceea5f090e23b29fa66276c5322e747ffecc776d36d3ab
BLAKE2b-256 checksum
How to use checksums
c8cc80fb1f0d2b78a9a37ecbfbf52ebc1da2702c939874ceaa75c0bde1042cac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Release files / streamlit_arabic_support_wrapper-1.1-py3-none-any.whl

Download URL streamlit_arabic_support_wrapper-1.1-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e835269575775218225c12ae0be0e58c051ba55182246fbca59740c09cf87a87
BLAKE2b-256 checksum
How to use checksums
f5c7e46c04781219f7cd34eaa37184744ef2f71889c2a3efd5e4d2b23dd00fcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.13

Security for streamlit-arabic-support-wrapper 1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page