Python Wrapper for Mountain Project public data API
Project description
This package is a wrapper for the Mountain Project public data API: https://www.mountainproject.com/data.
Install using: pip install MountainProjectPublicAPI
Required packages: json, requests
Available functions:
getUser(key, userId="", email="")
Return genral user information as JSON dictionary
args:
- key: your private key
- userId: Id of user to return
- email: email of user to return
return: genral user information as JSON dictionary
getTicks(key, userId="", email="", startPos=0)
Return up to 200 of the user's most recent ticks.
args:
- key: your private key
- userId: Id of user to return
- email: email of user to return
- startPos: The starting index of the list to return. Defaults to 0.
returns: Users ticks as JSON dictionary
getToDos(key, userId="", email="", startPos=0)
Return up to 200 of the user's TODOs
args:
- key: your private key
- userId: Id of user to return
- email: email of user to return
- startPos: The starting index of the list to return. Defaults to 0.
returns: User's TODOs as JSON dictionary
getRoutes(key, routeIDs)
Return details for up to 200 routes.
args:
- key: your private key
- routeIds: A comma-separated list of route IDs, up to 100
returns: details for up to 200 routes as JSON dictionary
getRoutesForLatLon(key, lat, lon, maxDistance=30, maxResults=50, minDiff="5.0", maxDiff="5.16")
Return routes for a given query
args:
- key: your private key
- lat - Latitude for a given area
- lon - Longitude for a given area
- maxDistance: Max distance, in miles, from lat, lon. Default: 30. Max: 200.
- maxResults: Max number of routes to return. Default: 50. Max: 500.
- minDiff: Min difficulty of routes to return, e.g. 5.6 or V0.
- maxDiff: Max difficulty of routes to return, e.g. 5.10a or V2.
returns: details for up to 200 routes as JSON dictionary
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
Built Distribution
File details
Details for the file MountainProjectPublicAPI-0.0.4.tar.gz
.
File metadata
- Download URL: MountainProjectPublicAPI-0.0.4.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fe386274df2ca7e8157f99cd232e053cd196d9224a6b197e69def59e251ff51 |
|
MD5 | 8563f96b3d656a4d28652630551ebf99 |
|
BLAKE2b-256 | fd9498c0cd3f2bccc922442c4b71b74a26dc3edc6b261ab664a8bcade99dfa4c |
Provenance
File details
Details for the file MountainProjectPublicAPI-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: MountainProjectPublicAPI-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1198eff9238e1641e6a409eb01134eba31b5b8a3cbe6f041b921d28ba4197ae0 |
|
MD5 | 766e803e5ac9fb723106a4413baa410e |
|
BLAKE2b-256 | 46402d8964573d3598ff74f50da6bbead69ab2a8382fbb6c768194206d9ca637 |