Skip to main content

ICON Service for python

Project description

ICON Service

ICON Service manage state of ICON node including ICX, SCOREs using LevelDB.

Before processing transactions, ICON Service check for syntax errors, balances, etc.

Installation

This chapter will explain how to install icon service engine on your system.

Requirements

ICON SCORE development and execution requires following environments.

  • OS: MacOS, Linux
    • Windows are not supported yet.
  • Python
    • Make Virtual Env for Python 3.6.5+ (recommended version, 3.7 is not supported)
    • check your python version
      $ python3 -V
      
    • IDE: Pycharm is recommended.

Libraries

name description github
LevelDB ICON SCORE uses levelDB to store its states. LevelDB GitHub
libsecp256k ICON SCORE uses secp256k to sign and validate a digital signature. secp256k GitHub

Setup on MacOS

#install levelDB
$ brew install leveldb

# Create a working directory
$ mkdir work
$ cd work

# setup the python virtualenv development environment
$ virtualenv -p python3 venv
$ source venv/bin/activate

# Install the ICON SCORE dev tools
(venv) $ pip install iconservice

Setup on Linux

# Install levelDB
$ sudo apt-get install libleveldb1 libleveldb-dev
# Install libSecp256k
$ sudo apt-get install libsecp256k1-dev

# Create a working directory
$ mkdir work
$ cd work

# Setup the python virtualenv development environment
$ virtualenv -p python3 venv
$ source venv/bin/activate

# Install the ICON SCORE dev tools
(venv) $ pip install iconservice

Building source code

First, clone this project. Then go to the project folder and create a user environment and run build script.

$ virtualenv -p python3 venv  # Create a virtual environment.
$ source venv/bin/activate    # Enter the virtual environment.
(venv)$ ./build.sh            # run build script
(venv)$ ls dist/              # check result wheel file
iconservice-x.x.x-py3-none-any.whl

Reference

License

This project follows the Apache 2.0 License. Please refer to LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iconservice-1.2.3.tar.gz (76.4 kB view details)

Uploaded Source

Built Distribution

iconservice-1.2.3-py3-none-any.whl (117.4 kB view details)

Uploaded Python 3

File details

Details for the file iconservice-1.2.3.tar.gz.

File metadata

  • Download URL: iconservice-1.2.3.tar.gz
  • Upload date:
  • Size: 76.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for iconservice-1.2.3.tar.gz
Algorithm Hash digest
SHA256 f17e8b4220dd8141a2488fbec59c7bd0820ce2ab253465c0b1b2909da892c4bf
MD5 a67cd996e86e3e698718c61664f069e7
BLAKE2b-256 16ebfb3224a96326a6be698134beb6226d209e93c7f6d8a65e03c3fb27428b9b

See more details on using hashes here.

File details

Details for the file iconservice-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: iconservice-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 117.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for iconservice-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 406bc10f7639009b5c24705cec0dc4e69b9c5868da01922af29b38f3a21029d9
MD5 e3c98f54ab7f53ebb96c65682412429a
BLAKE2b-256 ebf28458555da9582e31e475a51ab285073860ecb315cf8607f3ee269570e9b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page