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
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()
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
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.
Source Distribution
truckersfm.py-2.0.0.tar.gz
(3.5 kB
view details)
File details
Details for the file truckersfm.py-2.0.0.tar.gz.
File metadata
- Download URL: truckersfm.py-2.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
028c12aab6ff2dae017556cdf514a95a9388372017ad967acab867d443fd6edf
|
|
| MD5 |
8cdcd5c37322007c20ac55bc42e16f68
|
|
| BLAKE2b-256 |
9898ae38666a154c46163c475368eb0c4f5ed767a4f47d2ff2ac38f34d15afd7
|