-h, --help
Show this help message and exit.
-sNONPAIRS_PATH, --nonpairs-pathNONPAIRS_PATH
Path to Apertium tree (only non-translator debug modes are included from this path).
-lLANG_NAMES, --lang-namesLANG_NAMES
Path to localised language names sqlite database (default = langNames.db)
-fMISSING_FREQS, --missing-freqsMISSING_FREQS
Path to missing word frequency sqlite database (default = None)
-pPORT, --portPORT
Port to run server on (default = 2737)
-cSSL_CERT, --ssl-certSSL_CERT
Path to SSL Certificate
-kSSL_KEY, --ssl-keySSL_KEY
Path to SSL Key File
-tTIMEOUT, --timeoutTIMEOUT
Timeout for requests (default = 10)
-jNUM_PROCESSES, --num-processesNUM_PROCESSES
Number of processes to run (default = 1; use 0 to run one http server per core, where each http
server runs all available language pairs)
-d, --daemon
Daemon mode: redirects stdout and stderr to files apertium-apy.log and apertium-apy.err; use with
--log-path-PLOG_PATH, --log-pathLOG_PATH
Path to log output files to in daemon mode; defaults to local directory
-iMAX_PIPES_PER_PAIR, --max-pipes-per-pairMAX_PIPES_PER_PAIR
How many pipelines we can spin up per language pair (default = 1)
-nMIN_PIPES_PER_PAIR, --min-pipes-per-pairMIN_PIPES_PER_PAIR
When shutting down pipelines, keep at least this many open per language pair (default = 0)
-uMAX_USERS_PER_PIPE, --max-users-per-pipeMAX_USERS_PER_PIPE
How many concurrent requests per pipeline before we consider spinning up a new one (default = 5)
-mMAX_IDLE_SECS, --max-idle-secsMAX_IDLE_SECS
If specified, shut down pipelines that have not been used in this many seconds
-rRESTART_PIPE_AFTER, --restart-pipe-afterRESTART_PIPE_AFTER
Restart a pipeline if it has had this many requests (default = 1000)
-vVERBOSITY, --verbosityVERBOSITY
Logging verbosity.
-V, --version
Show APY version and exit.
-S, --scalemt-logs
Generates ScaleMT-like logs; use with --log-path; disables
-MUNKNOWN_MEMORY_LIMIT, --unknown-memory-limitUNKNOWN_MEMORY_LIMIT
Keeps unknown words in memory until a limit is reached; use with --missing-freqs (default = 1000)
-TSTAT_PERIOD_MAX_AGE, --stat-period-max-ageSTAT_PERIOD_MAX_AGE
How many seconds back to keep track request timing stats (default = 3600)
-wpWIKI_PASSWORD, --wiki-passwordWIKI_PASSWORD
Apertium Wiki account password for SuggestionHandler
-wuWIKI_USERNAME, --wiki-usernameWIKI_USERNAME
Apertium Wiki account username for SuggestionHandler
-b, --bypass-token
ReCAPTCHA bypass token
-rsRECAPTCHA_SECRET, --recaptcha-secretRECAPTCHA_SECRET
ReCAPTCHA secret for suggestion validation.
-mdMAX_DOC_PIPES, --max-doc-pipesMAX_DOC_PIPES
How many concurrent document translation pipelines we allow (default = 3)
-CCONFIG, --configCONFIG
Configuration file to load options from.
-akAPI_KEYS, --api-keysAPI_KEYS
Configuration file to load API keys.