Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.06 KB

File metadata and controls

39 lines (30 loc) · 1.06 KB

AnyLog API

The AnyLog API enables seamless interaction with AnyLog or EdgeLake nodes to manage distributed data seamlessly. This README provides setup instructions and sample usage for initializing a node, inserting data, and querying data.

The code supports both asynchronous requests using aiohttp library, and synchronous using standard requests library.

~~## Requirements

  1. An AnyLog or EdgeLake setup
  2. python>=3.6 with pip

Install pip package

  1. download repository
cd $HOME/ ; git clone https://github.com/AnyLog-co/AnyLog-API ; cd $HOME/AnyLog-API/
  1. prepare python3
python3 -m pip install --upgrade pip wheel setuptools
```~~

3. Create pip package 
```shell
python setup.py sdist bdist_wheel
  1. On a different venv install AnyLog
# create venv
cd $HOME
python3 -m venv venv 

# Install AnyLog-API 
python3 -m pip install $HOME/AnyLog-API/dist/anylog_api-0.0.0-py2.py3-none-any.whl 
  1. Use AnyLog-API based on examples