Skip to main content

Python client for interacting with Traccar GPS tracking API

Project description

Import

from external_services.traccar_api.api import TraccarApi

Initial

traccar = TraccarApi(URL, MAIL, PASS)

Login

current_user = traccar.login()

Bulks

server = traccar.get_server()
devices = traccar.get_devices()
devices_criteria = traccar.get_device(device_ids=[3, 38], device_unique_ids=["01442517SKYD066", "01433630SKYC6D3"])
users = traccar.get_users()
drivers = traccar.get_drivers()
groups = traccar.get_groups()

Singles

device = traccar.get_device(device_unique_ids=["01433630SKYC6D3"])
user = traccar.get_user(1)
driver = traccar.get_driver(301)

Permissions

permissions = traccar.get_current_user_permissions()
link_driver1_device1 = traccar.link_diver_device(driver_id=301, device_id=3)
link_driver2_device1 = traccar.link_diver_device(driver_id=302, device_id=3)
unlink_driver1_device1 = traccar.unlink_diver_device(driver_id=301, device_id=3)
unlink_driver2_device1 = traccar.unlink_diver_device(driver_id=302, device_id=3)

Errors

test_errors = traccar.test_error()

LogOut

traccar.logout()

Project details


Download files

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

Source Distribution

traccar_api-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traccar_api-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file traccar_api-0.2.0.tar.gz.

File metadata

  • Download URL: traccar_api-0.2.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for traccar_api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a0948fef988f0a50e88fb96d82db12aeacff611efb84ee50809de226ec7dd586
MD5 f586365fe73a93d28062bf96695d26ad
BLAKE2b-256 44c80db3f0abf7cce29781ebc670a3525a2098c5d2f94b466732c51b9c839caf

See more details on using hashes here.

File details

Details for the file traccar_api-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: traccar_api-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for traccar_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1727b5cd31677beb3e72e9df7cbdc49e45f9c165b9e3229011a5dbc6d080df5
MD5 2b6211d95b1b8bd94d2063771f1c47da
BLAKE2b-256 35854d0c9e0617e8f43b497d6a3b6249725bd6434f94723c06f194902d67fe70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page