Package: mixcloud-python
mixcloud-python===============A Python wrapper around the Mixcloud APIIt allows you to create Python objects of Mixcloud resources such as User, Categories, Tags etc.All Mixcloud resources are converted from JSON to Python objects.For more info check* www.mixcloud.com/developers/documentation/Installation------------To install mixcloud-python: ::pip install mixcloud-pythonUsage-----To use mixcloud-python, you must first create a `Client` instance,import mixcloudclient = mixcloud.Client()user = client.get_user('Kasa007')user.nameResources-----Here is a list of classes and their methods.**User**client.get_user('Kasa007') # Pass a userInstance :Example of available Instance of a user object:client = mixcloud.Client()user = client.get_user('Kasa007')user.usernameuser.cityuser.urlCheck Mixcloud documentation for all available user fields**Categories**deep_house_categorie = client.get_categories('deep-house') # Pass a CategorieInstance :Example of available Instance of a Categories object:client = mixcloud.Client()deep_house_categorie = client.get_categories('deep-house')deep_house_categorie.urldeep_house_categorie.slugdeep_house_categorie.formatCheck Mixcloud documentation for all available categories fields**Tags**deep_house_categorie = client.get_tag('funk') # Pass a tagInstance :Example of available Instance of a Categories object:client = mixcloud.Client()funk_tag = client.get_tag('funk')funk_tag.urlfunk_tag.namefunk_tag.keyCheck Mixcloud documentation for all available Tags fields**Popular**popular_songs = client.get_popular(limit=2) # Pass a limit optionalInstance :Example of available Instance of a Popular object:client = mixcloud.Client()popular_songs = client.get_popular(limit=2)popular_songs.data[0].namepopular_songs.data[0].urlpopular_songs.data[0].tags[0].namepopular_songs.data[0].tags[0].urlCheck Mixcloud documentation for all available Popular fields**Hot**popular_songs = client.get_hot(limit=2) # Pass a limit optionalInstance :Example of available Instance of a Popular object:client = mixcloud.Client()hot_songs = client.get_hot(limit=2)hot_songs.data[0].namehot_songs.data[0].urlhot_songs.data[0].tags[0].namehot_songs.data[0].tags[0].urlCheck Mixcloud documentation for all available Hot fields**New**popular_songs = client.get_new(limit=2) # Pass a limit optionalInstance :Example of available Instance of a Popular object:client = mixcloud.Client()new_songs = client.get_new(limit=2)new_songs.data[0].namenew_songs.data[0].urlnew_songs.data[0].tags[0].namenew_songs.data[0].tags[0].urlGet next page:new_songs.next_paging()Get pervious page:new_songs.previous_paging()Check Mixcloud documentation for all available New fields**Search**popular_songs = client.search('kasa007', 'user') # Pass type and queryInstance :Example of available Instance of a Popular object:client = mixcloud.Client()search_user = client.search('kasa007', 'user')search_user.data[0].namesearch_user.data[0].urlCheck Mixcloud documentation for all available Search fieldsCreate Object from resource------------Let's say you want to make a python object of the city London, and the url is https://api.mixcloud.com/discover/city:london/Example of creating an object out of this url:client = mixcloud.Client()discover_london = client.get_url('https://api.mixcloud.com/discover/city:london/')discover_london.urldiscover_london.namediscover_london.keyRequirements^^^^^^^^^^^^#. Python 2.7+ or  Python 3 +#. `Requests 2.7.0+ <http://docs.python-requests.org/en/master//>`_#. `Six 1.4.1+ <https://pythonhosted.org/six/>`_Running the test-----------------Run test:python mixcloud/tests.pyAuthors-------`mixcloud-python` was written by `Said Ali <said.ali@msn.com>`_.