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](# 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

truckersmp = 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()

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-1.0.0.4.tar.gz (3.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for truckersfm.py-1.0.0.4.tar.gz
Algorithm Hash digest
SHA256 67f88086811c43ad547c133817eba184e646fbc26fa7ec25574574de5afd95bd
MD5 523e4f844a3c60462bbdccb01aaf4c84
BLAKE2b-256 bca8447b2ae317694c8b0f8646820c5a51d2ce0d916dce2c141891c640ac39ca

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