Skip to main content

Une API cliente pour les produits Scenari

Project description

Une API cliente pour les produits Scenari

scenaripy_api propose des fonctions d'API appelable en Python pour intéragir avec un serveur Scenari. Pour fonctionner, scenaripy_api nécessite l'installation d'un package client d'une application Scenari (comme scchainserver_6_4, scchainserverlite_6_4, scsuitestarter_6_4 ou ltisuite_2_0).

Compatibilité

Il est recommandé de toujours utiliser la dernière version de ce package. Elle est compatible avec tous les packages clients produits par Scenari 6.3 et 6.4.

Exemple d'utilisation

import scenaripy_api
import scchainserver_6_4.portal

# Création de l'objet portal
portal = scchainserver_6_4.portal.new_portal(overridden_conf_file="conf.json")

# Appel d'une méthode de l'API
scenaripy_api.create_or_update_user(portal, account="mon-compte-user", first_name="Prénom", last_name="Nom", roles=["main:reader"], other_props={"password" : "Mon-Password"})

Quelles actions sont possibles avec l'API

Fonctions génériques :

  • Lister les utilisateurs ou groupe (list_users_or_groups)
  • Créer ou éditer les propriétés d'un utilisateur ou groupe (create_or_update_user, create_or_update_group)
  • Associer un role à un utilisateur ou groupe (set_granted_roles)

Sur un portlet chain :

  • Créer ou éditer les propriétés d'un atelier (create_or_update_wsp)
  • Rechercher dans un atelier (wsp_search)
  • Télécharger ou uploader un item, d'une ressource binaire ou de ses métadonnées (wsp_get_item, wsp_get_res, wsp_get_res_meta, wsp_set_item, wsp_set_res, wsp_set_res_meta)
  • Télécharger ou uploader un scar (sous ensemble d'un atelier) ou scwsp (atelier complet) (wsp_export_scwsp, wsp_export_scar, wsp_import_scar)
  • Lancer une génération et télécharger du fichier généré (wsp_generate)

Sur une suite contenant un chain et un depot

  • Envoyer un scar depuis un portlet chain vers un portlet depot (wsp_send_scar)

Sur un portlet depot

  • Uploader une ressource dans un depot (write_depot_request)

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

scenaripy_api-6.5.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

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

scenaripy_api-6.5.3-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file scenaripy_api-6.5.3.tar.gz.

File metadata

  • Download URL: scenaripy_api-6.5.3.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for scenaripy_api-6.5.3.tar.gz
Algorithm Hash digest
SHA256 cf6202f9008080df5d4dadce7533a37cf88b79764f78a7b421d20b62f7797197
MD5 e64adf76709eb5ea63c6aa0252f3badb
BLAKE2b-256 02f53037b5f1667e5bc526ffd26987ef1147d64752faa7721ed88c135d08c09c

See more details on using hashes here.

File details

Details for the file scenaripy_api-6.5.3-py3-none-any.whl.

File metadata

  • Download URL: scenaripy_api-6.5.3-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for scenaripy_api-6.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 429baa50138559b5b50ceb992a249d86de66fc37f235e281f5830a48c7544f9d
MD5 e8b5f0ca96b603f6e0793e61890b6ccf
BLAKE2b-256 bbd2136c73b1de95d4235675a5bf3b9bb8d70ceac208f57196d5c98ad8a67382

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