jayze.py [arguments]
If you provide no arguments, jayze's version will be printed to stdout.
To get a quick overview of available arguments, use -h
or --help
.
Do not forget to escape characters that are special to your command line environment with a \
(backslash). E.g. for --floater
, --chars
, --center
, etc.
Use these to generate output. Each of the generators support a set of options that can be combined together to your liking.
Some generators take files as input. These must contain one item per line. Lines starting with #
will be ignored (empty lines too, except for --typewriter
). See docs/example_input for files to start with.
Quick overview of each generator:
Generator | Supported options | Outputs to | Example output |
---|---|---|---|
--gen-fibonaccis | --delay, --scinot, --ascinot, --prec, --sqrt, --eol | stdout | gen_fibonaccis.txt |
--gen-primes | --delay, --scinot, --ascinot, --prec, --sqrt, --eol | stdout | gen_primes.txt |
--gen-triangulars | --delay, --scinot, --ascinot, --prec, --sqrt, --eol | stdout | gen_triangulars.txt |
--gen-lines | --delay, --rep, --chars, --case, --floater, --center, --sparkle, --eol | stdout | gen_lines.txt |
--gen-phrases | --delay, --rep, --varlen, --case, --eol | stdout | gen_phrases.txt |
--gen-typewriter | --delay, --case | stdout | gen_typewriter.txt |
--gen-permutations | --delay, --case | stdout | gen_permutations.txt |
--gen-dummyfile | file | gen_dummyfile.txt |
Type START: int
Type END: int
Options: --delay
, --scinot
, --ascinot
, --prec
, --sqrt
, --eol
Output Fibonacci numbers from START to END. Set END to 0
to let it run without a limit.
Examples:
jayze.py --gen-fibonaccis 0 100
jayze.py --gen-fibonaccis 0 0
Type START: int
Type END: int
Options: --delay
, --scinot
, --ascinot
, --prec
, --sqrt
, --eol
Output prime numbers from START to END. Set END to 0
to let it run without a limit.
Examples:
jayze.py --gen-primes 0 100
jayze.py --gen-primes 0 0
Type START: int
Type END: int
Options: --delay
, --scinot
, --ascinot
, --prec
, --sqrt
, --eol
Output triangular numbers from START to END. Set END to 0
to let it run without a limit.
Examples:
jayze.py --gen-triangulars 0 100
jayze.py --gen-triangulars 0 0
Type LENGTH: int
Options: --delay
, --rep
, --chars
, --case
, --floater
, --center
, --sparkle
, --eol
Output lines with a fixed LENGTH and randomized characters from --chars
.
Example:
jayze.py --gen-lines 20
Type FILE: str
Options: --delay
, --rep
, --varlen
, --case
, --eol
Output random phrases constructed from lines in text files.
Examples:
jayze.py --gen-phrases names.txt
jayze.py --gen-phrases prefixes.txt names.txt suffixes.txt
Type FILE: str
Options: --delay
, --case
Output words letter for letter like a typewriter from lines in text files. You probably WANT to add the --delay
option.
Examples:
jayze.py --gen-typewriter typewriter1.txt
jayze.py --gen-typewriter typewriter1.txt typewriter2.txt --delay 0.075
jayze.py --gen-typewriter typewriter3.txt --delay 0.075
Type CHARACTERS: str
Options: --delay
, --case
, --eol
Output all possible permutations of CHARACTERS.
Example:
jayze.py --gen-permutations ABCD
Type SIZE: int
Type FILE: str
Write SIZE bytes to FILE.
Example:
jayze.py --gen-dummyfile 1000 dummy.dat
These are the options that can be overridden. If a generator supports one of these options, and the option is not provided throught the command line, the option's default value will be silently used.
Default: Keep original number
Automatically convert numbers to scientific number notation when they exceed the precision limit. Change precision limit with --prec
.
Example:
jayze.py --gen-fibonaccis 0 10000000000 --ascinot
Default: Keep original case
Choices: capitalize
, lower
, title
, upper
, random
Case format to apply on the output.
Example:
jayze.py --gen-lines 20 --case upper
Type CHARACTER_CENTER: str
Type CHARACTER_BLIP: str
Default: No center effect
Choices: capitalize
, lower
, title
, upper
, random
Characters to use for the center effect. CHAR_BLIP will only be visible if a floater effect is crossing the center.
Example:
jayze.py --gen-lines 20 --center \| \*
Type CHARACTERS: str
Default: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@!?#
Characters to use for output.
Example:
jayze.py --gen-lines 20 --chars abcdefgh01234567
Type SECONDS: int
or float
Default: Output as fast as possible
How many seconds to idle after each output iteration.
Example:
jayze.py --gen-lines 20 --delay 1.5
Type CHARACTERS: str
Default: New line
Which characters to add at the end of output iteration. If you want a space, enclose it in quotes.
Examples:
jayze.py --gen-primes 0 100 --eol \|
jayze.py --gen-primes 0 100 --eol " "
jayze.py --gen-primes 0 100 --eol ""
Type CHARACTER_TO_RIGHT: str
Type CHARACTER_TO_LEFT: str
Type CHARACTER_BORDER_RIGHT: str
Type CHARACTER_BORDER_LEFT: str
Default: No floater effect
Characters to use for the floater effect.
Examples:
jayze.py --gen-lines 20 --floater \\ / \) \(
jayze.py --gen-lines 20 --floater \\ / \) \( --center \| \*
Type PRECISION: int
Default: 8
Number precision to use.
Examples:
jayze.py --gen-fibonaccis 0 10000000000 --prec 4 --scinot
jayze.py --gen-fibonaccis 0 10000000000 --prec 4 --ascinot
jayze.py --gen-fibonaccis 0 10000000000 --prec 4 --sqrt
Default: Avoid immediate repetition
Allow immediate repetition of characters and lines.
Example:
jayze.py --gen-lines 4 --rep --chars ABCD
Default: Do not use scientific number notation
Use scientific number notation.
Examples:
jayze.py --gen-fibonaccis 0 10000000000 --scinot
jayze.py --gen-fibonaccis 0 10000000000 --scinot --prec 16
Type CHARACTER: str
Default: No sparkle effect
Characters to use for the sparkle effect.
Examples:
jayze.py --gen-lines 20 --sparkle \*
jayze.py --gen-lines 20 --sparkle x \* \+ \- --chars " " --rep
Default: Keep original numbers
Output square root of originally computed numbers.
Examples:
jayze.py --gen-fibonaccis 0 10000000000 --sqrt
jayze.py --gen-fibonaccis 0 10000000000 --sqrt --scinot
Type CHANCE: float
Default: Do not vary parts count
Vary parts count by chance between 0.0
and 1.0
.
Example:
jayze.py --gen-phrases prefixes.txt names.txt suffixes.txt --varlen 0.5