Skip to main content

The unicode_symbols package is designed to simplify the use of Unicode characters in Python projects. Whether you need emojis for chat applications, symbols for documentation, mathematical symbols for calculations, currency symbols for finance apps, or miscellaneous icons for fun, this package has you covered.

Project description

PyPI Python

Symjoy

symjoy is a comprehensive Python package providing easy access to Unicode characters, including emojis, symbols, arrows, mathematical symbols, currency signs, and miscellaneous icons. Perfect for chat apps, games, educational tools, financial apps, or any Python project requiring Unicode characters.

Version 2.x introduces a clean, discoverable API while maintaining backward compatibility with version 1.x.

Installation

Install from PyPI:

pip install symjoy

Usage

1. Quick Start (v2 API)

from symjoy import emoji, symbols, arrows, math, currency, misc, search

print(emoji.get("smile"))      # 😄
print(symbols.get("heart"))    # ♥
print(arrows.get("right"))     # →
print(math.get("pi"))          # π
print(currency.get("rupee"))   # ₹
print(misc.get("sun"))         # ☀

print(emoji.random())          # random emoji

2. Category APIs

Each category exposes the same interface:

get(name)      -> str | None
random()       -> str
list()         -> list[str]
items()        -> dict[str, str]
Example
from symjoy import emoji

emoji.list()
emoji.items()

3. Global Search

Search across all categories:

from symjoy import search

results = search("heart")

Expected results:

[
  {
    "name": "heart",
    "char": "♥",
    "category": "symbols",
    "unicode": "U+2665"
  }
]

4. Backward Compatibility (v1.x)

Version 2.x still supports v1-style access:

from symjoy import emojis
print(emojis["smile"])

⚠️ This usage is deprecated and will be removed in symjoy 3.0.0.

5. Helper APIs (v2.1+)

Each category now supports metadata helpers:

from symjoy import emoji

emoji.exists("smile")   # True / False

emoji.info("smile")
# {
#   "name": "smile",
#   "char": "😄",
#   "category": "emoji",
#   "unicode": "U+1F604"
# }

These helpers are available for: emoji, math, arrows, currency, misc, and symbols.

6. Github Link

If any issue with the package you can contact here:

The source code is available on GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

symjoy-2.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

symjoy-2.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file symjoy-2.1.0.tar.gz.

File metadata

  • Download URL: symjoy-2.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for symjoy-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5efea63ed182544ede3dd3c19412b56f31f48b44dfe169ca4417f6ae6be5e0e9
MD5 e1d1c0fd46da2f3a3801b30ebc82e619
BLAKE2b-256 89dff69ddec14e899df48ca6121d4609c102eb1fd0d54d52fee7172382766db6

See more details on using hashes here.

File details

Details for the file symjoy-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: symjoy-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for symjoy-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 617416799278ef70935bc7027920fa6a6260fe2fc7d13b92b986fc5c9f88f506
MD5 53bf20ffd077dfb828966e4a027945e7
BLAKE2b-256 c1ca3f446149cb8680f296115f9dbf529eb3c3d19fa4e783fc0bb68643be0f55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page