GithubHelp home page GithubHelp logo

pysync / sady Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.75 MB

python audio stream and async play from sound cloud|雲の音楽検索と遊びのおもちゃ

Home Page: https://dungntnew.github.io/2017/09/sady-terminal-python-music

Python 93.49% Shell 6.51%
mac-osx mplayer python linux-users commandline-tool music

sady's Introduction

Preview

>> sady track -> to enjoy (๑˃̵ᴗ˂̵) 

Quick Install

$ curl "https://raw.githubusercontent.com/dungntnew/sady/master/install.sh?v=1.0" | sh 

This script use for Macosx only. For ubuntu or other linux users please use manual install. current issues: zsh: command not found: just after installed in current termial session => open other termial tab to reload ~/.bash_profile or: source ~/.bash_profile to take effect.

Dependences

  • python >= 3.3 (asyncio requires Python 3.3 or later)
  • mplayer (music player commandline version)

Manual Initialization

Install dependences if need (MacOSX).

( For other linux - window users , to install mplayer and python3 please type:$ [google('how to install %s' % pkg for pkg in dependences)] )

# install mplayer via homebrew
$ brew install mplayer

# install python3 
$ brew install python3

Clone & Install sady

(For all linux users & Macosx users)

# clone repo to your local directory
$ SADY_HOME_DIR=~/.sady
$ git clone [email protected]:dungntnew/sady.git $SADY_HOME_DIR
$ cd $SADY_HOME_DIR

# create python env & install dependence python packages
$ virtualenv -p python3 ./env && source ./env/bin/activate
$ pip install -r requirements.txt

Add sady commandline to your bashrc (~/.bash_profile)

(For all linux users & Macosx users)

$ echo "export SADY_HOME_DIR=$SADY_HOME_DIR" >> ~/.bash_profile
$ echo "alias sady='cd $SADY_HOME_DIR && ./env/bin/python3 ./__init__.py'" >> ~/.bash_profile
$ source ~/.bash_profile

Run -> to enjoy (๑˃̵ᴗ˂̵)

$ sady -q "Lets it go Idina Menzel" 

Usage

cmd mod

command description
any search and play any track by name, keywords, etc..
exit to quit sady
search search track by name, keywords, singer, etc..
select select one track index to play (auto sync)
sync sync track to play in local with track index (no param -> all)
list list all tracks in playlist (alias: ll, top)
next next tracks page
prev prev tracks page

playing mod:

( ref: player --help or man player to see help)

command description
q to quit mplayer - back to sady cmd
space to pause - replay track

sady's People

Contributors

pysync avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.