Skip to main content

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)

Metadata

Release files for scenaripy-api 6.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scenaripy-api 6.5.3
File Size Uploaded Provenance Actions
scenaripy_api-6.5.3.tar.gz 18.8 kB Without provenance Details for scenaripy_api-6.5.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scenaripy-api 6.5.3
File Interpreter ABI Platform Actions
scenaripy_api-6.5.3-py3-none-any.whl Python 3 none any Details for scenaripy_api-6.5.3-py3-none-any.whl

Total release size: 37.2 kB

Release files / scenaripy_api-6.5.3.tar.gz

Download URL scenaripy_api-6.5.3.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cf6202f9008080df5d4dadce7533a37cf88b79764f78a7b421d20b62f7797197
BLAKE2b-256 checksum
How to use checksums
02f53037b5f1667e5bc526ffd26987ef1147d64752faa7721ed88c135d08c09c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / scenaripy_api-6.5.3-py3-none-any.whl

Download URL scenaripy_api-6.5.3-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
429baa50138559b5b50ceb992a249d86de66fc37f235e281f5830a48c7544f9d
BLAKE2b-256 checksum
How to use checksums
bbd2136c73b1de95d4235675a5bf3b9bb8d70ceac208f57196d5c98ad8a67382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for scenaripy-api 6.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page