buzzsprout-manager-0.0.3
توضیحات
A python wrapper for the Buzzsprout API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | buzzsprout-manager-0.0.3 |
| نام | buzzsprout-manager |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Colten Dean |
| ایمیل نویسنده | coltenrdean@gmail.com |
| آدرس صفحه اصلی | https://github.com/deancolten/buzzsprout-manager |
| آدرس اینترنتی | https://pypi.org/project/buzzsprout-manager/ |
| مجوز | - |
# 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
```python
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
```python
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:
```python
['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']
```
نیازمندی
| مقدار | نام |
|---|---|
| - | requests-toolbelt |
نحوه نصب
نصب پکیج whl buzzsprout-manager-0.0.3:
pip install buzzsprout-manager-0.0.3.whl
نصب پکیج tar.gz buzzsprout-manager-0.0.3:
pip install buzzsprout-manager-0.0.3.tar.gz