Code Monkey home page Code Monkey logo

herepy's Introduction

HerePy

https://pepy.tech/badge/herepy https://img.shields.io/conda/vn/conda-forge/herepy?logo=conda-forge https://requires.io/github/abdullahselek/HerePy/requirements.svg?branch=master
Linux Windows
https://travis-ci.org/abdullahselek/HerePy.svg?branch=master https://ci.appveyor.com/api/projects/status/wlxrx5h8e8xyhvq2?svg=true

Introduction

This library provides a pure Python interface for the HERE API. It works with Python versions 3.x.

HERE provides location based services. HERE exposes a rest APIs and this library is intended to make it even easier for Python programmers to use.

Installing

You can install herepy using Python Package Index:

$ pip install herepy

Install with conda from the Anaconda conda-forge channel:

$ conda install -c conda-forge herepy

Install from its source repository on GitHub:

$ pip install -e git+https://github.com/abdullahselek/HerePy#egg=herepy

Getting the code

The code is hosted at https://github.com/abdullahselek/HerePy

Check out the latest development version anonymously with:

$ git clone git://github.com/abdullahselek/HerePy.git
$ cd HerePy

To install dependencies, run either:

$ pip install -r requirements.testing.txt
$ pip install -r requirements.txt

To install the minimal dependencies for production use (i.e., what is installed with pip install herepy) run:

$ pip install -r requirements.txt

Running Tests

The test suite can be run against a single Python version which requires pip install pytest and optionally pip install pytest-cov (these are included if you have installed dependencies from requirements.testing.txt)

To run the unit tests with a single Python version:

$ py.test -v

to also run code coverage:

$ py.test --cov=herepy

To run the unit tests against a set of Python versions:

$ tox

Models

The library utilizes models to represent various data structures returned by herepy:

* herepy.GeocoderResponse
* herepy.GeocoderReverseResponse
* herepy.RoutingResponse
* herepy.RoutingResponseV8
* herepy.RoutingMatrixResponse
* herepy.GeocoderAutoCompleteResponse
* herepy.PlacesResponse
* herepy.PublicTransitResponse
* herepy.RmeResponse
* herepy.TrafficIncidentResponse
* herepy.DestinationWeatherResponse
* herepy.EVChargingStationsResponse
* herepy.WaypointSequenceResponse
* herepy.TrafficFlowResponse
* herepy.TrafficFlowAvailabilityResponse
* herepy.IsolineRoutingResponse

API Clients

Available API clients in herepy:

* herepy.DestinationWeatherApi
* herepy.EVChargingStationsApi
* herepy.FleetTelematicsApi
* herepy.GeocoderApi
* herepy.GeocoderAutoCompleteApi
* herepy.GeocoderReverseApi
* herepy.PlacesApi
* herepy.PublicTransitApi
* herepy.RmeApi
* herepy.RoutingApi
* herepy.TrafficApi
* herepy.IsolineRoutingApi
* herepy.MapTileApi
* herepy.VectorTileApi
* herepy.MapImageApi

Documentation

View the latest herepy documentation at https://herepy.abdullahselek.com/. You can view HERE's API documentation at: https://developer.here.com/documentation.

Using

The library provides a Python wrapper around the HERE APIs with different data models. To get started, check out the examples in the examples/ folder or read the documentation at https://herepy.abdullahselek.com/. All API clients need an API key which you can get from HERE Developer Portal.

License

MIT License

Copyright (c) 2017 Abdullah Selek

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.