Skip to content

Instantly share code, notes, and snippets.

@unpublished{LightTag,
AUTHOR = {Perry, Tal },
TITLE = {{LightTag}: A platform for managing text annotation projects
YEAR = {2018},
Note = {To appear}
}
@talolard
talolard / ltsession.py
Last active October 17, 2019 08:14
Wrapper for working with LightTag API using the requests library
import requests
from functools import partial
class LTSession(requests.Session):
def __init__(self, workspace:str,user:str,pwd:str,host:str=None):
"""[summary]
Initializes a LightTag API session object
Arguments:
workspace {str} -- [The name of your workspace]
user {str} -- [Your LightTag Username]
pwd {str} -- [Your LightTag password]