Skip to main content

trifusionviz

Installation via Pypi.org

$ pip3 install trifusionviz

Utilisation en ligne de commande

L'installation fournit la commande tfv

$ tfv -h
usage: tfv [-h] [-nb] [-al] [-ft [FORMAT]] [-fo [FONCTIONORDRE]]
           [liste] [fichier]

Application facilitant l'utilisation de trifusionviz

positional arguments:
  liste                 liste Python avec guillemets
  fichier               nom du fichier de sortie. Mettre "pipe" pour une sortie console.

optional arguments:
  -h, --help            show this help message and exit
  -nb, --noirblanc      Noir et Blanc
  -al, --appels         sortie des appels
  -ft [FORMAT], --format [FORMAT]
                        format fichier, par défaut : pdf
  -fo [FONCTIONORDRE], --fonctionordre [FONCTIONORDRE]
                        par défaut : lambda x, y: x < y

Exemples :

  • $ tfv "[1, 4, 3, 2]" test -ft png créera un fichier test.png

  • $ tfv -nb -al "[1, 4, 3, 2]" test créera deux fichiers en noir et blanc : test.pdf et test_appels.pdf

  • $ tfv "[1, 4, 10, 2]" test -fo "lambda x, y: str(x) < str(y)" créera un fichier : test.pdf

Remarques :

  • Sans argument, tfv produit une erreur.

  • Avec une liste pour seul argument, par exemple $ tfv "[1, 5, 2]", cela produit dans le répertoire courant un fichier Digraph.gv.pdf.

  • la sortie pipe (en nom de fichier) produira une sortie console au format souhaité permettant le pipe avec un autre programme.

  • tfv n'implémente pas pour le moment toutes les fonctionnalités de la bibliothèque.

Utilisation en module

import trifusionviz as tfv
import random

liste = list(range(13))
random.shuffle(liste)

t = tfv.trifusionviz(liste)
# sorties pdf : graphe et appels
t.sortie_appels = True
t.sortie("exemple_sortie")

u = tfv.trifusionviz(liste)
u.fonction_ordre = lambda x, y: str(x) < str(y)
u.noirblanc = True
u.profondeurs_cachees = range(2, 2 + 7)
u.forme_diviser, u.forme_arreter, u.forme_combiner = \
    "invhouse", "rectangle", "house"
# sortie png
u.sortie("exemple_sortie_lexico", "png")

v = tfv.trifusionviz(range(13))
v.style = "invis"
# sortie png
v.sortie("exemple_invisible", "png")

Sorties de l'exemple

Licence

CC-BY-NC-SA

Metadata

Release files for trifusionviz 0.7.1

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

Source distribution (sdist)

Source distribution for trifusionviz 0.7.1
File Size Uploaded Provenance
trifusionviz-0.7.1.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for trifusionviz 0.7.1
File Interpreter ABI Platform
trifusionviz-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / trifusionviz-0.7.1.tar.gz

Download URL trifusionviz-0.7.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f1aa044a10e66f1eab0c9fdb66528fbd120ee5c47ab7fd7f8a79d8478da876
BLAKE2b-256 checksum
How to use checksums
860938f82f7f5f356182a06ffe38aa2e0770cea966c34b817b364ac64d6a6740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Release files / trifusionviz-0.7.1-py3-none-any.whl

Download URL trifusionviz-0.7.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f586c4319ee02b781cc9c401d71d234e087c80959d60f06a423ebe53500d12e7
BLAKE2b-256 checksum
How to use checksums
01fb58d33d2377b2b04623b63a67a7be04d0bdde0007827c52b5ee16448a5fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

Security for trifusionviz 0.7.1

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