A python wrapper for the Buzzsprout API
Project description
Buzzsprout-Manager
Summary
Buzzsprout Manager is a (somewhat) complete python wrapper for the Buzzsprout Podcast Hosting API. It currently supports most of the functionality of buzzsprout's web UI, including uploading/creating new episodes, retrieving information from existing episodes, as well as updating information or changing an episode's private status.
Getting Started
Installation
pip install buzzsprout-manager
Basic Usage
from bsm import Manager
ID = 'My Podcast ID'
TOKEN = 'My API Token'
manager = Manager(ID, TOKEN) # Init
episodes = manager.get_all_episodes() # Get all episodes as EpisodeGroup object
my_episode = episodes[0] # Get Episode object
print(my_episode.title) # "My Podcast Title"
manager.update_episode( # Update given episode with kwarg attributes
my_episode,
**{'title': "Updated Title", 'description': "*descriptive text*"}
)
manager.get_all_episodes()[0].title # "Updated Title"
bsm.Episode
ep = manager.get_all_episodes()[0] # Manager returns a single bsm.Episode object
ep.title # 'The Podcast Title'
ep.get_date() # Returns the episode's published date as datetime.datetime object
ep.get_all_data() # Returns a {} of all episode attributes
ep.get_existing_data() # Returns a {} of all episode attributes that aren't 'None'
The following members can be retrieved and/ or modified:
['id',
'title',
'audio_url',
'artwork_url',
'description',
'summary',
'artist',
'tags',
'published_at',
'duration',
'hq',
'magic_mastering',
'guid',
'inactive_at',
'episode_number',
'season_number',
'explicit',
'private',
'total_plays']
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
Built Distribution
Close
Hashes for buzzsprout_manager-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae83973337992a2c8439632443fbdf1d2555227565f615f2a6fd87b93b6c118 |
|
MD5 | a1d6f9aa1652005cc234a66658e6c0c6 |
|
BLAKE2b-256 | 3c3ba18525127661eee849879baa4e6aa96719784f479cc6553d7ff59a03fc10 |