Skip to main content

Be My AI

Console

bm login -l ru "your_email@domain.tld "1yourpassword3"
bm -l ru recognize "path/to/photo.jpg"
Example
# building
uv build

# installing
pip install .\dist\bemyai-1.0.1-py3-none-any.whl

# I'm already logged in

# Recognizing...
bm -l ru recognize -ni E:\aribook1_b.jpg
На фотографии изображена обложка книги с изображением Арианы Гранде. В верхней части обложки написано "100% НЕОФИЦИАЛЬНО" на фоне розового прямоугольника. Ниже следует текст:

Ариана — не просто очередная эстрадная принцесса, она —
одна из крупнейших мировых звезд
и самая популярная женщина в Инстаграме.

Далее идет желтый прямоугольник с текстом:

Любой альбом и любой сингл всегда занимает верхние строки в чартах,
Ариана является иконой стиля, достойной защитницей прав женщин,
добровольцем, актрисой и выжившей жертвой теракта.
В своей жизни она ставит на первое место семью, включая
семерых спасенных ею собак!

С помощью четырех октав Ариана, вероятно, может считаться пушкой
в мире поп-музыке.
И если кто-то думает
что способен приблизиться
к ее коронованной особе,
то пусть еще раз послушает
песню Арианы Гранде
Thank You, Next!

В нижней части обложки на розовом фоне написано "100% ИДОЛ". Также присутствует штрих-код с ISBN номером 978-5-04-114282-3 и ссылка на веб-сайт www.vk.com/eskmo_kids.

# You can ask GPT about this image in the chat
# Type Q for exit
# Or pass `-ni` to return the response and exit
# in this case, you can ask a question with an ask command
# e.g.
# bm ask "Your question"

Python

import sys
import asyncio
from bemyai import BeMyAI
from loguru import logger
logger.remove()
logger.add(sys.stderr, format="{message}", level="INFO")

async def main():
    # you can specify another language,
    # for example, Russian
    
    # get token
    bm = BeMyAI(response_language="en")
    result = await bm.login(
        "test@example.com",
        "yourpassword"
    )
    # and save result.token for future requests
    
    # authorization by token
    bm = BeMyAI("your_token", response_language="en")
    
    # recognize photo
    sid, chat_id = await bm.take_photo("pic.jpg")
    for i in range(2):
        async for bm_response in bm.receive_messages(sid):
            message = bm_response
            if message.user:
                continue
            print( message.data )
            if i == 0:
                # We ask a question
                sid, chat_id, _message = await bm.send_text_message(
                    chat_id,
                    "Describe it in more detail"
                )

if __name__ == "__main__":
    asyncio.run(main())
    
Example output

I saved the python example, specified my token and the Russian language, specified the path to the image and got this result:

dl folder already exists
get app user config from internet
recognizing new photo: JPEG, 1215x2160, RGB
create new chat
resizing image
image processed: jpeg, 1125x2000
requested upload image config
get app user config from cache
Starting upload image to Amazon
Uploaded successfully
removeing processed image
upload image finished
Got new message
Got new message
На фотографии изображена книга с названием "Ариана Гранде. Главная книга фаната". На обложке множество фотографий Арианы Гранде в разных образах. В верхнем левом углу написано "100% неофициально". В нижнем правом углу обложки есть маркировка "18+".
Got new message
Got new message
На обложке книги изображено семь различных фотографий певицы Арианы Гранде. Она показана в разных нарядах и прическах, в том числе с её знаменитым высоким хвостом. На одной из фотографий она в большом белом банте на голове. На другой - в черном топе и с кепкой. Есть изображение, где она поет в микрофон, закрыв глаза и подняв голову вверх. Цвета обложки - розовый, белый и черный. На обложке также присутствуют розовые и белые геометрические элементы, а также надписи розового цвета.

E:\bemyai>

Metadata

Release files for bemyai 1.0.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 bemyai 1.0.3
File Size Uploaded Provenance
bemyai-1.0.3.tar.gz 64.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 77.5 kB

Release files / bemyai-1.0.3.tar.gz

Download URL bemyai-1.0.3.tar.gz
Size 64.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3b49a563bd4a7a1173c19b20e0b1af0edc1a23387d463582e0e48a45a246f792
BLAKE2b-256 checksum
How to use checksums
df16cc6eabc6db4fd6c4bc70823e976450a32d26f3859b8798c35a081a927af2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bemyai-1.0.3-py3-none-any.whl

Download URL bemyai-1.0.3-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
375832bc20fb4431bc16206fd35ed6716b9c40820e3841e02166210eada00cf0
BLAKE2b-256 checksum
How to use checksums
da9ad62f5711ee17f73bfcc8f849203bc23acb1907f84b104e270b1dc042e3e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.25 {"installer":{"name":"uv","version":"0.11.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for bemyai 1.0.3

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.

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