marianna13 / tracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

On the server side:

Clone: git clone https://github.com/marianna13/tracker.git.

Start the server with uvicorn

cd tracker && uvicorn main:app --reload

On the client side:

from tracker import Tracker

client = Tracker('http://127.0.0.1:8000')
client.add(item='s3://commoncrawl/crawl-data/CC-MAIN-2023-23', status='processing')

# Check if item exists in the tracker:

print(client.get_item('s3://commoncrawl/crawl-data/CC-MAIN-2023-23')) # True

# Get random item:

item = client.get_random_item()

# Update status:

client.update(item=item['id']', status='processing')

About


Languages

Language:Python 100.0%