-
Introduction
-
Requirements
-
Setup
-
Learning by example
-
Logging
-
Getting help
-
License
This bot provides user-friendly experience for visualization of last.fm library. It's compatible with Python versions 3.3+, Anaconda and PyPy.
In addition to the pure API implementation, this library features a number of high-level classes to make the maintaining easy and straightforward.
All needed packages are listed in requirements.txt or in environment.yml in case if you use Anaconda.
These requirements can be done with next commands:
In case of pure Python:
$ make install_reqsor with command:
$ pip install -r requirements.txtor with command if you use Anaconda:
$ conda env create -f environment.ymlWith next commands you clone repository, installing requirements, configuring entries in json, installing package to system and running bot.
$ git clone https://gitlab.com/romaroman/visulast
$ pip install -r requirements.txt
$ cp config.example.json config.json
$ python setup.py install
$ python visulast/run.pyWe believe that the best way to learn and understand this simple package is by example. So here
are some examples for you to review. Even if it's not your approach for learning, please take a
look at samplebot.py, it is de facto the base for most of the bots out there. Best of all,
the code for these examples are released to the public domain, so you can start by grabbing the
code and building on top of it.
This library uses the logging module. To set up logging to standard output, put:
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')at the beginning of your script.
You can also use logs in your application by calling logging.getLogger() and setting the log level you want:
logger = logging.getLogger()
logger.setLevel(logging.INFO)If you want DEBUG logs instead:
logger.setLevel(logging.DEBUG)You can get help in several ways:
-
Typing /help in
@visulast_botdialog. -
Reading documentation and commentaries to code.
-
Getting in touch with me by e-mail or something else.
-
Opening an issue or pull request.
-
Also by telegram nickname is
@plumberphd
You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3.
Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.