Skip to main content

Simple API Wrapper for the TruckersFM API

Project description

TruckersFM.py

Simple API wrapper for TruckersFM, the popular simulating radio station.

Table of contents

Installation and setup

This module is compatible with Python v3+

You can install this module via PyPI:

$ pip install truckersfm.py

Usage

from truckersfm import TruckersFM

truckersfm = TruckersFM()

# Returns the song currently playing
print(truckersfm.currentSong())

# Fetches current song title
print(truckersfm.currentSongTitle()) 

# Fetches current song artist
print(truckersfm.currentSongArtist()) 

Without calling a function eachtime:

currentSong = truckersfm.currentSong()

Available Methods:

currentSong()                # Fetches current song
currentSongTitle()           # Fetches current song title
currentSongArtist()          # Fetches current song artist
currentPresenter()           # Fetches current presenter
currentPresenterName()       # Fetches current presenter's name
currentShow()                # Fetches current show
currentShowTitle()           # Fetches current show title                    

Support

If you need help with anything, you should preferably contact BEAN#0001 on discord. If that is not possible, feel free to open a new issue. Note that if the issue is invalid, it may be closed.

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

truckersfm.py-2.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file truckersfm.py-2.0.1.tar.gz.

File metadata

  • Download URL: truckersfm.py-2.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for truckersfm.py-2.0.1.tar.gz
Algorithm Hash digest
SHA256 3f94d85408477694a7767409198cd3a82fe4d94b0e2cf6437d099f64651184b8
MD5 bab7fef76afe4e2f92644289846a5872
BLAKE2b-256 a9d298c653b154ec936a4487d5667f1b5f007b870f14f96931ca4c1a6a7dc940

See more details on using hashes here.

Supported by

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