Registry / analytics / ncore
library0.9.815pypypiunverified

Высокопроизводительная асинхронная библиотека для работы с MTProto (Telegram API) на Python. Версия 0.9.815, поддержка Python 3.10+. Активно развивается.

pip install ncore
INSTALL
IMPORT
SIG · NCORE
N
ncore
analyticspythonv0.9.815
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from ncore import Client
from ncore import NClient

Минимальный пример подключения к Telegram API

import os from ncore import NClient api_id = int(os.environ.get("API_ID", "12345")) api_hash = os.environ.get("API_HASH", "") client = NClient(api_id, api_hash) async def main(): await client.start() me = await client.get_me() print(me) await client.close() if __name__ == "__main__": import asyncio asyncio.run(main())
Debug
Known issues
breakingNClient импортируется напрямую из ncore, а не из ncore.client.
fix
from ncore import NClient
affects: all
gotchaAPI_ID обязателен как int, а не str.
fix
api_id = int(os.environ.get('API_ID'))
affects: all
deprecatedМетод start() теперь принимает ключевые аргументы, не позиционные
fix
await client.start(phone=my_phone)
affects: >=0.9.0
Upgrade
Version history
0.9.815latest on PyPI · released Mar 17, 2026
Audit
Dependencies
aiohttprequiredHTTP client for API calls
cryptgoptionalMTProto crypto (optional for performance)
Agent activity
29 hits · last 30 days
node
24
Amazon
1
OpenAI (training)
1
Resources
ncore — pip install ncore · libregistry