DEV Community

EgorMajj
EgorMajj

Posted on

1

Aptos Python SDK

Aptos предоставляет легко поддерживаемый официальный Python SDK. Он доступен на PyPi с исходным кодом в репозитории Aptos-core на github. Большая часть функциональности Python SDK является зеркальным отражением Typescript SDK. Основное назначение Python SDK - помочь разработчикам Python быстро освоить Aptos и служить дополнением к учебникам по Aptos.

Python SDK может быть установлен через pip, из исходников или встроен:

pip3 install aptos-sdk
Enter fullscreen mode Exit fullscreen mode

aptos-sdk будет установлен в каталог пакетов локального сайта. Например, на MacOS вы найдете aptos-sdk в каталоге ~/Library/Python/3.8/lib/python/site-packages/aptos_sdk.

Установка из источника

Для установки из источника:

git clone https://github.com/aptos-labs/aptos-core
cd aptos-core/ecosystem/python/sdk
python3 setup.py install --user
Enter fullscreen mode Exit fullscreen mode

Установка путем встраивания

Чтобы встроить Python SDK в существующий проект Python:

cd /path/to/python/project
cp -r /path/to/aptos-core/ecosystem/python/sdk/aptos-sdk aptos-sdk
Enter fullscreen mode Exit fullscreen mode

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay