Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Examples

Python SDK examples

The Python scripts in the current directory provides the examples of the infinity SDK API. Before running these scripts, please ensure that the correct version of infinity SDK is installed. If you are using the server version of Infinity, you can use the following command to install it

pip install infinity-sdk==0.5.2

To use Infinity locally as a Python module, install the Infinity Embedded SDK:

pip install infinity-embedded-sdk==0.5.2

Once the installation completes, run some simple examples:

python simple_example.py

HTTP examples

We provide several SHELL scripts in the /example/http directory, and you need to install curl to run these scripts. For Debian or Ubuntu users, use the following command:

sudo apt install curl

The HTTP APIs work only with the Infinity server. Ensure that an Infinity server is running properly before executing these scripts:

bash http/create_list_show_database.sh