معرفی شرکت ها


conflux-web3-1.1.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Python SDK for Conflux network
ویژگی مقدار
سیستم عامل -
نام فایل conflux-web3-1.1.0
نام conflux-web3
نسخه کتابخانه 1.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Conflux-Dev
ایمیل نویسنده wenda.zhang@confluxnetwork.org
آدرس صفحه اصلی https://github.com/conflux-chain/python-conflux-sdk
آدرس اینترنتی https://pypi.org/project/conflux-web3/
مجوز -
# Introduction [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/conflux-chain/python-conflux-sdk/dev?urlpath=tree/docs/en/examples/01-quickstart.ipynb) [![Documentation Status](https://readthedocs.org/projects/python-conflux-sdk/badge/?version=latest)](https://python-conflux-sdk.readthedocs.io/en/latest/?badge=latest) [![gitlocalized ](https://gitlocalize.com/repo/8175/whole_project/badge.svg)](https://gitlocalize.com/repo/8175/whole_project?utm_source=badge) [![codecov](https://codecov.io/github/Conflux-Chain/python-conflux-sdk/branch/dev/graph/badge.svg?token=GZ62V9QW0A)](https://codecov.io/github/Conflux-Chain/python-conflux-sdk) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/conflux-web3) [README](https://python-conflux-sdk.readthedocs.io/en/latest/README.html) | [中文文档](https://python-conflux-sdk.readthedocs.io/zh_CN/latest/README.html) - [Introduction](#introduction) - [Overview](#overview) - [Quickstart](#quickstart) - [Documentations](#documentations) - [Run Code Examples Online!](#run-code-examples-online) - [Localization](#localization) ## Overview Python-conflux-sdk helps to interact with Conflux network using python. It is built over [web3.py](https://github.com/ethereum/web3.py) and most of its APIs are consistent with [web3.py](https://github.com/ethereum/web3.py). ## Quickstart Requirements: python version >= 3.7 ```bash $ pip3 install conflux-web3 ``` ```python from conflux_web3 import Web3 w3 = Web3(Web3.HTTPProvider("https://test.confluxrpc.com")) acct = w3.account.from_key("0xxxxxxxxxxxxxx") w3.cfx.default_account = acct w3.cfx.contract(name="Faucet").claimCfx().transact().executed() w3.cfx.send_transaction({ 'to': w3.address.zero_address(), 'value': 10**18, }).executed() ``` Or you can also use API as you do in `web3.py`: ``` python # modified from https://web3py.readthedocs.io/en/stable/middleware.html#signing from conflux_web3 import Web3 w3 = Web3("https://test.confluxrpc.com") from conflux_web3.middleware import construct_sign_and_send_raw_middleware from cfx_account import Account acct = Account.create('KEYSMASH FJAFJKLDSKF7JKFDJ 1530') w3.middleware_onion.add(construct_sign_and_send_raw_middleware(acct)) w3.cfx.default_account = acct.address transaction = { 'to': w3.address.zero_address(), 'value': 22, } w3.cfx.send_transaction(transaction) ``` ## Documentations More detailed code examples are provided in the [documentation](https://python-conflux-sdk.readthedocs.io/en/latest/README.html). ### Run Code Examples Online! All code examples can be run online in [mybinder](https://mybinder.org/). You can click `🚀` -> `Binder` on the top bar to activate the running environment. All dependencies wil be installed and the example can be run immediately. ### Localization Currently this documentation supports: * English version * Chinese version And welcome to provide translation in [GitLocalize](https://gitlocalize.com/repo/8175).


نیازمندی

مقدار نام
==6.2.0 web3
>=1.0.0 cfx-address
>=1.0.0 cfx-account
>=1.0.0 cfx-utils
<6,>=5.0.0 docker
<7,>=6.2.5 pytest
- typing-extensions
- pytest-cov
==0.8.0a2 ipfshttpclient
<23.0,>=22.1.0 black
==0.11.3 jupyter-book
- wheel
==0.11.3 jupyter-book
- wheel
==0.8.0a2 ipfshttpclient
<23.0,>=22.1.0 black
<6,>=5.0.0 docker
<7,>=6.2.5 pytest
- typing-extensions
- pytest-cov
==0.8.0a2 ipfshttpclient


نحوه نصب


نصب پکیج whl conflux-web3-1.1.0:

    pip install conflux-web3-1.1.0.whl


نصب پکیج tar.gz conflux-web3-1.1.0:

    pip install conflux-web3-1.1.0.tar.gz