PYTHRAN(1)

πŸ“¦
version 0.18.1 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

okay bestie, so this is the pythran(1) manual page β€” a User Commands page, no biggie β€” and it's all about pythran, which is part of pythran: an ahead-of-time compiler for Python. yes that's the same name twice, she contains multitudes. πŸ’…


✨ DESCRIPTION ✨

here's the whole vibe of how you call her:

usage: pythran [-h] [-o OUTPUT_FILE] [-P] [-E] [-e] [-v] [-w] [-V] [-p pass]
               [-I include_dir] [-L ldflags] [-D macro_definition]
               [-U macro_definition] [--config config] [-ftime-report] input_file

and what she is: pythran: a python to C++ compiler. no cap, that's the whole personality. πŸ¦‹

πŸŽ€ positional arguments πŸŽ€

  • input_file β€” the pythran module you wanna compile. it can be a .py file or a .cpp file, so she's flexible like that. πŸ’–

πŸ’… options πŸ’…

  • -h, --help β€” shows this help message and then dips. classic. ✨
  • -o OUTPUT_FILE β€” the path to the generated file. she honors %{ext}, which is giving template energy. πŸ‘‘
  • -P β€” only run the high-level optimizer, do not compile. she's just vibing, not finishing the job.
  • -E β€” only run the translator, do not compile. same energy, different stop sign. πŸ›‘
  • -e β€” similar to -E, but she does not generate python glue. no glue, just translator.
  • -v β€” be more verbose. she will talk. πŸ—£οΈ
  • -w β€” be less verbose. she will hush. 🀫
  • -V, --version β€” show the program's version number and exit. quick flex, then gone. πŸ’…
  • -p pass β€” any pythran optimization to apply before code generation. stack 'em, bestie.
  • -I include_dir β€” any include dir relevant to the underlying C++ compiler.
  • -L ldflags β€” any search dir relevant to the linker.
  • -D macro_definition β€” any macro definition relevant to the underlying C++ compiler.
  • -U macro_definition β€” any macro undef relevant to the underlying C++ compiler. yes, she can un-define too. iconic.
  • --config config β€” config additional params. extra settings, extra slay.
  • -ftime-report β€” reports the time spent in each optimization/transformation. she's timing herself fr fr. ⏱️

and then, out of nowhere, absolute poetry:

It's a megablast!

😭 she really said that. and honestly? she's right.


🫢 AUTHORS 🫢

pythran was primarily written by Serge Guelton. give that legend their flowers. 🌸


🌈 SEE ALSO 🌈

this script is part of pythran. full documentation for pythran can be consulted at https://pythran.readthedocs.io β€” go read it, iykyk. πŸ“–βœ¨


okay that's the whole page, bestie! πŸŽ€ this is pythran version 0.15.0+ds, dated January 2024, and yes that's the footer, but i'm giving it a whole send-off instead because she deserves one. periodt. πŸ’–πŸ¦‹πŸ‘‘