Python client for Coherence API.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Coherence API Python Client

Run code online faster with Coherence API.

Coherence lets you deploy and run your code on a server with only two lines of code.

Read the Docs.

Install Easily with pip

Install the coherenceapi python package using pip.

$ pip install coherenceapi

Start with only Two Lines of Code

  1. Sign up for an API key.

  2. Create

import socket
from coherence import coherence

serverHostname = socket.gethostname())

myHostname = socket.gethostname()
print("My Hostname:", myHostname)
print("Server Hostname:", serverHostname)

Any lambda passed to is serialized, deployed, and run on Coherence API's servers.

Run Recurring jobs

It's easy to run jobs on a cron schedule, replacing whatever external scheduling system you have with only your code.

from coherence import coherence
from myEmailSender import sendReminder


# A cron expression to send a reminder every monday at midnight
schedule = "0 0 0 * * 1"

# Send an email reminder every monday at midnight.
job_id = coherence.run_recurring(schedule,
    lambda: sendReminder("")

All the Details are in the Docs

Read the Docs.