Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/p/r/proofofexistence-HEAD/api.py   proofofexistence(Download)
from base import JsonAPIHandler
from doc import DigestStoreHandler
from config import MIN_SATOSHIS_PAYMENT
 
class ExternalRegisterHandler(DigestStoreHandler):
 
    ret["pay_address"] = pay_address
    ret["price"] = MIN_SATOSHIS_PAYMENT
    return ret
 

src/p/r/proofofexistence-HEAD/admin.py   proofofexistence(Download)
from base import JsonAPIHandler
from secrets import SECRET_ADMIN_PATH
from config import MIN_SATOSHIS_PAYMENT
 
class BootstrapHandler(JsonAPIHandler):
    if satoshis <= 0:  # outgoing payment
      return "*ok*"
    if satoshis < MIN_SATOSHIS_PAYMENT: # not enough
      return "*ok*"
 

src/p/r/proofofexistence-HEAD/doc.py   proofofexistence(Download)
from base import JsonAPIHandler
 
from config import MIN_SATOSHIS_PAYMENT