slice2py(1)

πŸ“¦
version 3.7.10 Β· 2 versions
  • 3.7.10 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 3.8.1 Β· ubuntu stonking
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ’– slice2py β€” the Slice to Python compiler πŸ’–

okay bestie, welcome to the slice2py manual page, from the General Commands Manual section πŸŽ€ she's the one who takes your Slice files and turns them into Python. no cap.


✨ NAME ✨

slice2py β€” the Slice to Python compiler. that's it, that's her. πŸ‘‘


🌸 SYNOPSIS 🌸

slice2py [options] [files]

πŸ¦‹ DESCRIPTION πŸ¦‹

so slice2py compiles Slice files to Python. and while it's doing that, the macro __SLICE2PY__ is defined during this compilation. periodt. πŸ’…

the full tea β€” i mean, the full documentation β€” for slice2py lives online at:

https://doc.zeroc.com/ice/3.7/language-mappings/python-mapping/client-side-slice-to-python-mapping/code-generation-in-python

like, go read it if you want the deep lore, iykyk πŸ“š


πŸ’… OPTIONS πŸ’…

every single one, babes. no skipping. we do not skip here. πŸ™ˆ

  • -h, --help β€” shows you a help message. literally the "what do i do" button 🫢
  • -v, --version β€” shows the compiler version. vibe check on which slice2py you're running ✨
  • -DNAME β€” defines the preprocessor symbol NAME. give the symbol a name and set it free 🌈
  • -DNAME=DEF β€” defines the preprocessor symbol NAME with the value DEF. now she has a whole personality πŸ’œ
  • -UNAME β€” undefines the preprocessor symbol NAME. we're un-defining her, it's giving closure 😭
  • -IDIR β€” adds the directory DIR to the search path for #include directives. your includes need a home and you just gave them one 🏠
  • -E β€” prints the preprocessor output on stdout. no code gen, just the raw pre-processed goods πŸ‘€
  • --output-dir DIR β€” places the generated files into directory DIR. put your babies in the folder you actually want them in πŸŽ€
  • -d, --debug β€” prints debug information showing the operation of the Slice parser. she's narrating her whole life, iconic πŸ”₯
  • --depend β€” prints dependency information to standard output by default, or to the file specified by the --depend-file option.
⚠️ heads up bestie: no code is generated when this option is specified. she's just telling you the deps, not building anything πŸ’€
  • --depend-xml β€” prints dependency information in XML format to standard output by default, or to the file specified by the --depend-file option.
⚠️ same warning, same energy: no code is generated when this option is specified. XML only, no files, no cap πŸ“
  • --depend-file FILE β€” directs dependency information to the specified file. the output format depends on whether --depend or --depend-xml is also specified. choose your fighter, she follows your lead 🧚
  • --all β€” generates code for all Slice definitions, including those from included files. not just yours β€” everyone's πŸ‘‘βœ¨
  • --checksum CLASS β€” generates checksums for Slice definitions. for when you need that verification moment πŸ’–
  • --prefix PREFIX β€” uses PREFIX as the prefix for generated file names. yes queen, brand your files 🌟

🌈 SEE ALSO 🌈

the whole slice2* family, your new besties:


okay that's the whole page, mwah πŸ’‹ go forth and compile. this was slice2py(1), hanging out in the General Commands Manual, and i'm obsessed with her fr fr. bye bestie, have the slayest day πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά