Skip to main content

LuxLIB est une librairie Python permettant la mise à jour automatique depuis un serveur. Mais aussi de pouvoir mettre à jour son serveur depuis le client.

Project description

LuxLIB

LuxLIB est une librairie Python permettant la mise à jour automatique depuis un serveur. Mais aussi de pouvoir mettre à jour son serveur depuis le client.

Installation

Pour installer LuxLIB, il faudra utiliser pip.

pip install luxlib

Utilisation

import luxlib

# Pour le télécharger
#Initialisation de la classe
downloader = luxlib.Downloader("LIEN (ip ou url)", "NAME_FOLDER_CLIENT", custom_java=True or False, logger=True or False, sftp=True or False, user="USERNAME SFTP", password="PASSWORD SFTP", main_dir="DIRECTORY SERVER")

#Affichage du récapitulatif
downloader.get_recap()

# Démarrage de la mise à jour
downloader.update()

# Pour la mise à jour serveur
# Initialisation de la classe
updater = luxlib.Updater("IP", "USERNAME", "PASSWORD", dir='CLIENT', dir_server='SERVER', logger=True or False)

License

MIT

Project details


Download files

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

Source Distribution

luxlib-0.0.4.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

luxlib-0.0.4-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

Supported by

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