A package to interface with Trailforks.com
Project description
PyForks
Python Trailforks Library for interacting with Trailforks.com
About
PyForks has been designed to help me automate much of the manual data aggregation I was doing in order to build metrics for my local city and state trail systems. For example: wlmt.mn-mtb.com. The end goal of this project is the ability to make it much easier to pull data down that people are interested in and analyze it in a way that non-technical individuals can digest and understand impact in hopes of additional funding and intrest.
Installation & Documentation
- Install:
pip install pyforks
- Documentation: PyForks.mn-mtb.com
Quick Start
Currently, PyForks can interact with Users and Regions to obtain data that either requires Authentication or No Authentication. Functions that require Auth contain tha @authorization
decorator which, can be seen in the Documentation.
Get Information on a User
from PyForks.trailforks_user import TrailforksUser
from pprint import pprint
# Get Basic information about a user
tf = TrailforksUser()
user_info = tf.get_user_info("mnmtb")
pprint(user_info)
# Get the User's Gear
tf.username = "<your_username>"
tf.password = "<your_password>"
tf.login()
user_gear = tf.get_user_gear("mnmtb")
pprint(user_gear)
Contribute
Send all the pull requests you want!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.