Skip to main content

Vira

Without Token - Way 1

from miochat.vira import ViraChat

phone = "09xxxxxxxxx"

vira = ViraChat()
vira.sendOtpCode(phone)
log = vira.login(phone, input("enter code: "))
print("your token:", log.token)
prompt = vira.sendPrompt("سلام")
print("ai:", prompt.message.content)

With Token - Way 2

from miochat.vira import ViraChat

token = ""

vira = ViraChat(token)
prompt = vira.sendPrompt("سلام")
print("ai:", prompt.message.content)

Gold

from miochat.gold import getGold

price_of_gold = getGold()
print(price_of_gold) # Str | None

Cryptos

from miochat.crypto import MioCrypto

miocrypto = MioCrypto()

# get crypto`s names
cryptos_names = miocrypto.getCryptos()
print(cryptos_names)

# get top 10 cryptos
top_10 = miocrypto.getTopCryptos()
print(top_10)

# get top 20 cryptos
top_20 = miocrypto.getTopCryptos(20)
print(top_20)

# get crypto by symbol
crypto_by_symbol = miocrypto.getCryptoBySymbol("btc") # or BTC
print(crypto_by_symbol)

News

from miochat.news import MioNews

mionews = MioNews()
news = mionews.getNews()

# title
print(news.title)

# description
print(news.description)

# link
print(news.link)

Font

from miochat.font import MioFont

miofont = MioFont()

# English Language
fonts = miofont.getFont("Hello World")
print(fonts)

# Farsi (Persian) Language
fonts = miofont.getFont("سلام دنیا", "fa")
print(fonts)

Metadata

Release files for miochat 2.1.3

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

Source distribution (sdist)

Source distribution for miochat 2.1.3
File Size Uploaded
miochat-2.1.3.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for miochat 2.1.3
File Interpreter ABI Platform
miochat-2.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / miochat-2.1.3.tar.gz

Download URL miochat-2.1.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47228251278cc164946d94322d62bf11fbbce90c5912d2c1e62798d94f11d970
BLAKE2b-256 checksum
How to use checksums
abe14e9cbdc4252819c7c2594186c093506aee269883a6b81d6dac913c141713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / miochat-2.1.3-py3-none-any.whl

Download URL miochat-2.1.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54cd82f14715c5c96f081e72afcc0a7aed67333da095665de5dcf04513cc3dea
BLAKE2b-256 checksum
How to use checksums
56086ee73cc75d2b1a4409ccd50dac196be2301492fdc2b42abffc0d9565a448
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

2.1.3 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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