Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (20 sloc) 746 Bytes

create a nanoservice

and expose any function using @nanoserv.expose:

# https://repl.it/@username/math

import nanoserv

@nanoserv.expose
def add(a, b, **kwargs):
    return a + b

nanoserv.run(dev=True)

call it from anywhere

Connect to username/math repl and call it's function add(8, 9)

from functorflow import ff

# Connect to repl at `username/math` 
math = ff.nanoserv.new(replit='username/math')

# use it
print(math.add(8, 9))
You can’t perform that action at this time.