Skip to main content

Run Across America analysis tools

Project description

Run Across America

Python library to fetch and analyze team and user data from Run Across America.

Installation

pip install run-across-america

Usage

Available methods:

  • user_id(user_code: str): Exchanges your user code (from the signup email) for your user id.
  • user(user_id: str): Retrieves information about a user from their user_id.
  • teams(user_id: str): Retrieves all the teams a particular user is a member of.
  • goals(team_id: str): Retrieves information about the distance goal for a team.
  • members(team_id: str): Retrieves all the members of a team.
  • leaderboard(team_id: str): Retrieves the current leaderboard of a team.
  • feed(team_id: str): Retrieves all the activities of a team.

User ID

Exchanges your user code (from the signup email) for your user id. Options:

  • user_code: str = The alphanumeric code sent to a user after signup.

Example

>>> from run_across_america import RunAcrossAmerica
>>> client = RunAcrossAmerica()
>>> user_id: str = client.user_id("HELLO")

"f71f47b9-56b0-4bf9-99cd-fcb9b016d819"

User

Retrieves information about a user from their user_id. Options:

  • user_id: str = The GUID obtaining from exchanging the user code.

Example

>>> from run_across_america import RunAcrossAmerica, User
>>> client = RunAcrossAmerica()
>>> user: User = client.user("f71f47b9-56b0-4bf9-99cd-fcb9b016d819")

User(id='f71f47b9-56b0-4bf9-99cd-fcb9b016d819', age=None, created=datetime.datetime(2022, 1, 1, 12, 30, 0, 900000), email='test@example.com', first_name='Hello', gender=None, last_name='World', phone=None, icon=None, code='YYSHOEY6', timezone='America/Chicago', username='@hello-world', state='IL')

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

run-across-america-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

run_across_america-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file run-across-america-0.1.0.tar.gz.

File metadata

  • Download URL: run-across-america-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.7.9 Windows/10

File hashes

Hashes for run-across-america-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a4b8aebb28c12137f98dacc9204157c63d35c3bfe9ac574141cc101fdac4577
MD5 3f38e8eed1e62c7956df499f78d792a3
BLAKE2b-256 333ac27783f9889a24b4bb005a9f2152973b88eee274b51076f70402fb2097b6

See more details on using hashes here.

File details

Details for the file run_across_america-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for run_across_america-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b41209a0e5597146638529a6edba777c3b81b66289ed42d1cd1524a205a6f2bc
MD5 8448a3ce029f7a80f0a1a9b5a1a74f62
BLAKE2b-256 31dc4aceea3559bb64a8a3591ab920bc2501411d946ceab90602a556f848c0cf

See more details on using hashes here.

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