Skip to main content

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)

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

miochat-1.0.8.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

miochat-1.0.8-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file miochat-1.0.8.tar.gz.

File metadata

  • Download URL: miochat-1.0.8.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for miochat-1.0.8.tar.gz
Algorithm Hash digest
SHA256 e50994f5b426bc84aadca8b92dd13877ed4ab439fdcc902f8b215bc3c1136e1f
MD5 154eaddae598f22e9bdebf624ccdb8ce
BLAKE2b-256 b0db27ca6a40c78cfb6b40abea1b8b8b6fa3c21a177435321fd8d6dc27a2c29c

See more details on using hashes here.

File details

Details for the file miochat-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: miochat-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for miochat-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 347fead11aecfd6ed2e0b977a37a35e3139c7b00793a5087802706466b68e052
MD5 926bcb637b2b2bb163efe8c5ee3e7796
BLAKE2b-256 31bc10dd2814cd64471900ac6debc93f699d50e4ad48265190e96c719b94e752

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