Python library for FunctionX
Project description
FunctionX Python SDK
Install
pip install fx-py-sdk
Use
from fxsdk.client.grpc_client import Client
if __name__ == '__main__':
chain_id = Client(url='localhost:9090').query_chain_id()
print('chain id:', chain_id)
Development
1. Clone the code to local
git clone https://github.com/functionx/fx-py-sdk.git
cd fx-py-sdk
2. Build the Python virtual environment for the current project
- Create the virtual directory venv
python -m venv venv
- Activating the Virtual Environment
source ./venv/bin/activate
Windows: venv\Scripts\activate
3. Installation Project Dependence
pip install -r requirements.txt
4. Compile Proto files as Python files
If does not have execution permission, run 'chmod +x ./gen-proto.sh`
# Pull external code
git submodule update --init --recursive --remote
./gen-proto.sh
5. Build Project
python -m build
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fx-py-sdk-0.6.5.tar.gz
(250.9 kB
view hashes)
Built Distribution
fx_py_sdk-0.6.5-py3-none-any.whl
(483.3 kB
view hashes)
Close
Hashes for fx_py_sdk-0.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96b9136e9e36a5406bd8bc668840c3b94f90dfb1aa4e5bec66b3aa2b9baef7b6 |
|
MD5 | a345db7fbd20c65f9dab7af61bef9c5c |
|
BLAKE2b-256 | be4653e2c73b6fcd5e8f79f38a02a7fd9f76ab06e18e702536019c52725b20d4 |