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

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay