Programmation de Pouêt pour Mastodon

Programmation de Pouêt pour Mastodon.

1/ Répertoire de travail.

[~] ➔ mkdir MASTONDON
[~] ➔ cd MASTONDON/
[~/MASTONDON] ➔
[~/MASTONDON] ➔ sudo su
[sudo] password for util01:
root@station:/home/util01/MASTONDON#

2/ Installation de Virtualenv.

root@station:/home/util01/MASTONDON# pip install virtualenvwrapper
Downloading/unpacking virtualenvwrapper
  Downloading virtualenvwrapper-4.7.2.tar.gz (90kB): 90kB downloaded
...
Successfully installed virtualenvwrapper virtualenv-clone stevedore six pbr
Cleaning up...

3/ Répertoire de l’application.

[~/MASTONDON] ➔ mkdir toot

4/ Création de l’environnement virtuel pour ‘toot’.

[~/MASTONDON] ➔ virtualenv toot
New python executable in toot/bin/python
Installing setuptools, pip...done.

5/ Activation de Virtualenv.

[~/MASTONDON] ➔ source toot/bin/activate

6/ Installation de l’application ‘toot’.

[~/MASTONDON] ➔ pip install toot
Downloading/unpacking toot
...
Successfully installed toot requests future beautifulsoup4
Cleaning up...
[~/MASTONDON] ➔ type pip
pip est haché (/home/util01/MASTONDON/toot/bin/pip)

7/ Test.

[~/MASTONDON] ➔ toot
toot - a Mastodon CLI client
...
To get help for each command run:
  toot  --help

8/ Configuration de ‘toot’.

[~/MASTONDON] ➔ toot login
Choose an instance [mastodon.social]: minimes.hacklab.science
Registering application with minimes.hacklab.science
...
Log in to minimes.hacklab.science
Email: sam.hawkmoon@gmail.com
Password:
Authenticating...
...
Access token saved to: /home/util01/.config/toot/user.cfg
✓ Successfully logged in.

9/ Envoi d’un Pouêt.

[~/MASTONDON/toot/bin] ➔ toot post "Test de https://github.com/ihabunek/toot"
...
Toot posted: https://minimes.hacklab.science/@Satanik666/25360

10/ Désactivation de Virtualenv.

[~/MASTONDON/toot/bin] ➔ deactivate

11/ Lien.

https://github.com/ihabunek/toot

Comments are closed, but trackbacks and pingbacks are open.