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.1.0.tar.gz (4.8 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.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traccar_api-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 7aba09447525432c6f35a52b3a9927e503884ab8fa3293b260d6c42cf17b055a
MD5 02ac969f577b2b73bf82aec7276b34ba
BLAKE2b-256 5fa4e39104e2c113886e5348c5325ddbcc8f7bfa4c969f2d3d8043fb96d9d80d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: traccar_api-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a45734d855b527082a7c12f7003a3ba4d5a877eaa6785f29cd51d078c57be02
MD5 45d3afa7b206bacc93744e8c753f7b62
BLAKE2b-256 c11c188fa9312b38c967fe20901b27ea2c696d61577af55002533ec52e98cc5c

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