Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robot_poete-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file robot_poete-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: robot_poete-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

File hashes

Hashes for robot_poete-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 adebad6b6ec40dbc7fbdfb940752139e890a2cacb09d6f2f4f1e5565f144ec96
MD5 ca23bf0e5e2a97d4284f6a8d40247091
BLAKE2b-256 b3546fab2a6559c20baa4026ca6ca5e98da110b39bd22ef4f3b1c6cc436d5cc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page