Skip to main content

A package to interface with Trailforks.com

Project description

PyForks

PyForks Tests GitHub PyPI codecov

Python Trailforks Library (Unofficial) for interacting with Trailforks.com. Help support this project and more.

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: app.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 interest.

This package uses the Offical Trailforks API. This means that in order to use this package, you must have a valid Trailforks app_id and app_secret. See the API link to get your keys.

Installation & Documentation

Quick Start

Get Information on a region

from PyForks import Region
import pandas as pd

app_id = "id"
app_secret = "secret"

r = Region(app_id=app_id, app_secret=app_secret)
if r.is_valid_region("west-lake-marion-park"):
  region_info_df = r.get_region_info("west-lake-marion-park")
  ridecount_df = r.get_region_ridecounts("west-lake-marion-park")

Contribute

Send all the pull requests you want!

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

PyForks-0.0.19.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

PyForks-0.0.19-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file PyForks-0.0.19.tar.gz.

File metadata

  • Download URL: PyForks-0.0.19.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for PyForks-0.0.19.tar.gz
Algorithm Hash digest
SHA256 2f07afec893109d2ac081da7fbcb06cfc0e0b823ac97f2bdb65c344ca978fa05
MD5 9554d0f03730745101fb0a5329d6d258
BLAKE2b-256 c1b149da283ba79d3d7e5db8fb9041b47007221dda9a0125f0882f2a5a22b8af

See more details on using hashes here.

Provenance

File details

Details for the file PyForks-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: PyForks-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for PyForks-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 9a3a91f2be57ab0c63e2f4fbd3a0bc8a9ee2d17b11950a1afbbad4a527317a72
MD5 66902819b29e8a4331aeedf8b337fdbb
BLAKE2b-256 67bfe3d3b1550d492381c7a10bffc11a036a9139f0eb6f97ecd7f3281438babd

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page