Skip to content

Silverdoses/pytraccar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTraccar

Build Status

Overview

Python interface to interact with Traccar REST API.

Installation

Tested with Python 2.7, Python 3.4, Python 3.5, Python 3.6 and Python 3.7

Installation from source (requires git):

$ git clone https://github.com/Legacier/pytraccar.git
$ cd pytraccar
$ python setup.py install

Usage example

For more info, please refer to the Traccar API Reference.

Development setup

For testing purpouses, check these variables in file test_api_calls.py and set them with your traccar server values.

Your Traccar's server URL (default: localhost)

test_url = 'http://127.0.0.1:8082'

Email and password from a standard user or admin. (default: admin)

username, correct_password = 'admin', 'admin'

Standard user token. Required for all tests with limited user permissions.

user_token = 'YOUR_TOKEN_HERE'

Admin user token. Required for all tests with admin permissions

admin_token = 'YOUR_TOKEN_HERE'

Then, run pytest to start testing.

$ python -m pytest

Development status

Tested

  • /session
  • /users
  • /devices
  • /notifications
  • /geofences

Contributing

  1. Fork it (https://github.com/Silverdoses/pytraccar/fork)
  2. Create your feature branch (git checkout -b feature/yourbranch)
  3. Commit your changes (git commit -am 'info here')
  4. Push to the branch (git push origin feature/yourbranch)
  5. Create a new Pull Request

Credits

PyTraccar is built on top of code developed from/by:

About

Python interface to interact with Traccar REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages