MioChat Module
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
miochat-2.1.3.tar.gz
(6.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file miochat-2.1.3.tar.gz.
File metadata
- Download URL: miochat-2.1.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47228251278cc164946d94322d62bf11fbbce90c5912d2c1e62798d94f11d970
|
|
| MD5 |
2f1aec93f30b14b5d95679e0677660d9
|
|
| BLAKE2b-256 |
abe14e9cbdc4252819c7c2594186c093506aee269883a6b81d6dac913c141713
|
File details
Details for the file miochat-2.1.3-py3-none-any.whl.
File metadata
- Download URL: miochat-2.1.3-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54cd82f14715c5c96f081e72afcc0a7aed67333da095665de5dcf04513cc3dea
|
|
| MD5 |
1869ab70322c314810697fc11a02e165
|
|
| BLAKE2b-256 |
56086ee73cc75d2b1a4409ccd50dac196be2301492fdc2b42abffc0d9565a448
|