Skip to main content

UseMod

Project description

UseMod

UseMod est un simple module pour python qui permet plus de simpliciter dans des module ou plus de modernité

Table des Matières

  1. Introduction
  2. Installation
  3. Utilisation
  4. Fonctionnalités
  5. Contribuer
  6. Auteurs
  7. Licence

Introduction

Dans use Module vous pourez y trouver :

  • Un accès simple et rapide vers DropBox
  • Un accès simple et rapide vers GitHub
  • Un Showinfo plus modern

Installation

Instructions pour installer et configurer le projet. Indiquez les prérequis et les étapes d'installation.

#executer la commende pip :
pip install UseMod

Utilisation

  1. DropBox
  2. GitHub
  3. Showinfo

DropBox

Importer le Module

import UseMod

Token

Token = UseMod.NewToken()

Le refresh Token (non obligatoire)

Token.helps() # Pour obtenir un refresh token

Nouveau Token a chaque lancement du projet python

TOKEN = Token.AutomateTOKEN(Ton_refreshToken, Ton_AppKey, Ton_app secret

Fichier

File = UseMod.Dropbox(ton_TOKEN)

Créer un nouveau fichier

File.new_file(Contenu_du_fichier, accès_Dropbox_vers_le_fichier)

Créer un nouveau dossier

File.new_folder(accès_Dropbox_vers_le_dossier) #
Créer un nouveau contenu de fichier

Depuis un fichier

File.new_content().withfile(chemin_du_fichier, chemin_du_fichier_Dropbox)

Depuis une variable

File.new_content().withvar(Contenu_du_fichier, chemin_du_fichier_Dropbox)

Suprimer un fichier/dossier

File.del_content(chemin_du_fichier_Dropbox)
Obtenir le contenu d'un fichier

Dans un fichier

File.download().infile(chemin_du_fichier, chemin_du_fichier_Dropbox)

Dans une variable

Tavariable = File.download().invar(chemin_du_fichier_Dropbox)

ShowInfo

Afficher une erreur

UseMod.Message("error", Un_Nom, Un_message, un_Style : dark, light, ourien)

Afficher une info

UseMod.Message("info", Un_Nom, Un_message, un_Style : dark, light, ourien)

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

usemod-1.0.2.tar.gz (64.6 kB view details)

Uploaded Source

Built Distribution

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

UseMod-1.0.2-py3-none-any.whl (62.9 kB view details)

Uploaded Python 3

File details

Details for the file usemod-1.0.2.tar.gz.

File metadata

  • Download URL: usemod-1.0.2.tar.gz
  • Upload date:
  • Size: 64.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for usemod-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5e5e766abb7ff373879cb6cc96ba4f5a53aea2788db97dab6cb91d08682a557b
MD5 01f705968c7e6568768a4f0962fe3360
BLAKE2b-256 df9af10ec94f9da6f2c5b67b5b6c51617c51bbf8238cbf5e75e283c75700cd8f

See more details on using hashes here.

File details

Details for the file UseMod-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: UseMod-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 62.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for UseMod-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 197b287142bd5c7df3b75801b7a6a4a860f8d5f74babb85f53bef016149d2a66
MD5 626a9107a5be92501272f40709c835fc
BLAKE2b-256 efe0ceed6350fd0acd0d5e422633c9e597edfbf89c1332f3d4c70d296597b0fb

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