Le robot poète
Project description
robot_poete - Le Robot Poète
Ce module permet de programmer le Robot Poète.
' ____ __ __ ____ __ __ '
' / __ \____ / /_ ____ / /_ / __ \____ _\_\ / /____ '
' / /_/ / __ \/ __ \/ __ \/ __/ / /_/ / __ \/ _ \/ __/ _ \ '
' / _, _/ /_/ / /_/ / /_/ / /_ / ____/ /_/ / __/ /_/ __/ '
'/_/ |_|\____/_.___/\____/\__/ /_/ \____/\___/\__/\___/ '
' '
Vous pouvez l'installer avec pip:
pip install robot_poete
Exemple d'usage:
# importation et initialisation de la biblioteque
from robot_poete import RP
rp = RP()
# chemin du dossier de rimes
pathDossier1 = rp.pathSongFolder(rp.path, 'dossier', 'sous_dossier')
# liste des pistes audio
liste1 = rp.listSong(pathDossier1)
# choix aléatoire d'une piste
song = rp.random(liste1)
# suppression de la piste dans la liste
rp.remove(liste1, song)
# lecture de la piste
rp.playSong(pathDossier1, song)
Ce code est sous licence MIT.
Copyright (c) 2020 Yoann VARENNE
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 Distributions
Built Distribution
Hashes for robot_poete-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adebad6b6ec40dbc7fbdfb940752139e890a2cacb09d6f2f4f1e5565f144ec96 |
|
MD5 | ca23bf0e5e2a97d4284f6a8d40247091 |
|
BLAKE2b-256 | b3546fab2a6559c20baa4026ca6ca5e98da110b39bd22ef4f3b1c6cc436d5cc3 |