Skip to main content

UZ API wrapper

Project description

Unofficial UZ API SDK

This project is a light-weight wrapper around some API endpoints from UZ booking system. It uses the same interface as the frontend of the booking system, so you can use a session from browser's cookies and work on behalf of your account.

Quick start


pip install UZ-SDK


from datetime import time, datetime, timedelta

from uz_sdk import TicketFinder, BookingSession

# search tickets from Ternopil to Kyiv for 4 days ahead
tf = TicketFinder(
    2218300,  # from id
    2200001,  # to id + timedelta(3),
    time(hour=0, minute=0),

# add a filter from preset, skip this to search every type of places
tf.basic_filters(allowed_types=('П', 'К', 'С1'))

# get available trains
data = tf.find()


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
UZ_SDK-0.0.3-py3-none-any.whl (3.5 kB) Copy SHA256 hash SHA256 Wheel py3
UZ SDK-0.0.3.tar.gz (3.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page