Simple API Wrapper for the Navio API
Project description
Navio.py
Simple API wrapper for Navio, the ETS/ATS job logger.
Table of contents
Installation and setup
This module is compatible with Python v3+
You can install this module via PyPI:
$ pip install navio.py
Usage
To authenticate:
from navio import Auth
navio_auth = Auth(navio_token)
# Returns a status code
print(navio_auth.authorise())
Practical use of authentication:
from navio import Auth
navio_auth = Auth(navio_token)
auth_status_code = navio_auth.authorise()
if auth_status_code == 200:
# success
print("Authorised!")
else:
print(auth_status_code)
Non Authentication:
from navio import Navio
navio = Navio(navio_token)
# returns drivers information in json format
print(navio.drivers())
Available Methods (Auth):
authorise() # Authorise
Available Methods (Navio):
me() # Information about you (your company)
drivers() # Drivers information
add_driver() # Add driver
For more information, see our web docs here
Support
If you need help with anything, you should preferably contact BEAN#0001 on discord. If that is not possible, feel free to open a new issue. Note that if the issue is invalid, it may be closed.
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
navio.py-2.2.2.tar.gz
(15.6 kB
view details)