apertium-apy(1)

✨ NAME ✨

okay so apertium-apy(1) is the API server for machine translation and language analysis πŸ’… it's giving main character energy πŸ‘‘

πŸŽ€ SYNOPSIS πŸŽ€

apertium-apy [ pairs_path ]

bestie, pairs_path is the path to your installed Apertium pairs 🧚 all the modes files in that path get included, no cap 🫢

πŸ¦‹ OPTIONS πŸ¦‹

  • -h, --help β€” pulls up the help message and exits πŸ’€
  • -s NONPAIRS_PATH, --nonpairs-path NONPAIRS_PATH β€” path to the Apertium tree. only the non-translator debug modes get pulled in from here πŸ™ˆ
  • -l LANG_NAMES, --lang-names LANG_NAMES β€” path to the localised language names sqlite database (default = langNames.db) 🌈
  • -f MISSING_FREQS, --missing-freqs MISSING_FREQS β€” path to the missing word frequency sqlite database (default = None) πŸ“Š
  • -p PORT, --port PORT β€” the port the server runs on (default = 2737) πŸ”₯
  • -c SSL_CERT, --ssl-cert SSL_CERT β€” path to your SSL certificate πŸ”
  • -k SSL_KEY, --ssl-key SSL_KEY β€” path to your SSL key file πŸ—οΈ
  • -t TIMEOUT, --timeout TIMEOUT β€” timeout for requests (default = 10) ⏰
  • -j NUM_PROCESSES, --num-processes NUM_PROCESSES β€” how many processes to run (default = 1). use 0 and you get one http server per core, and each one runs all the available language pairs πŸ“
  • -d, --daemon β€” daemon mode! stdout and stderr get redirected to the files apertium-apy.log and apertium-apy.err. use it with --log-path πŸ¦‹
  • -P LOG_PATH, --log-path LOG_PATH β€” where the log output files go in daemon mode. defaults to the local directory πŸ“
  • -i MAX_PIPES_PER_PAIR, --max-pipes-per-pair MAX_PIPES_PER_PAIR β€” how many pipelines we can spin up per language pair (default = 1) 🧩
  • -n MIN_PIPES_PER_PAIR, --min-pipes-per-pair MIN_PIPES_PER_PAIR β€” when pipelines shut down, keep at least this many open per language pair (default = 0) πŸ›Ÿ
  • -u MAX_USERS_PER_PIPE, --max-users-per-pipe MAX_USERS_PER_PIPE β€” how many concurrent requests a pipeline can take before we think about spinning up a new one (default = 5) πŸ‘―
  • -m MAX_IDLE_SECS, --max-idle-secs MAX_IDLE_SECS β€” if you set it, pipelines that haven't been used in this many seconds get shut down 😴
  • -r RESTART_PIPE_AFTER, --restart-pipe-after RESTART_PIPE_AFTER β€” restarts a pipeline after it has handled this many requests (default = 1000) πŸ”„
  • -v VERBOSITY, --verbosity VERBOSITY β€” logging verbosity πŸ“£
  • -V, --version β€” shows the APY version and exits 🏷️
  • -S, --scalemt-logs β€” generates ScaleMT-like logs. use it with --log-path. the page says it also disables something right there and then just... stops 😭 so no clue what gets disabled
  • -M UNKNOWN_MEMORY_LIMIT, --unknown-memory-limit UNKNOWN_MEMORY_LIMIT β€” keeps unknown words in memory until a limit is reached. use it with --missing-freqs (default = 1000) 🧠
  • -T STAT_PERIOD_MAX_AGE, --stat-period-max-age STAT_PERIOD_MAX_AGE β€” how many seconds back the request timing stats go (default = 3600) ⏳
  • -wp WIKI_PASSWORD, --wiki-password WIKI_PASSWORD β€” Apertium Wiki account password for SuggestionHandler πŸ”‘
  • -wu WIKI_USERNAME, --wiki-username WIKI_USERNAME β€” Apertium Wiki account username for SuggestionHandler πŸ§‘β€πŸ’»
  • -b, --bypass-token β€” ReCAPTCHA bypass token 🫣
  • -rs RECAPTCHA_SECRET, --recaptcha-secret RECAPTCHA_SECRET β€” ReCAPTCHA secret for suggestion validation πŸ€–
  • -md MAX_DOC_PIPES, --max-doc-pipes MAX_DOC_PIPES β€” how many concurrent document translation pipelines we allow (default = 3) πŸ“„
  • -C CONFIG, --config CONFIG β€” configuration file to load options from πŸ—‚οΈ
  • -ak API_KEYS, --api-keys API_KEYS β€” configuration file to load API keys πŸͺͺ

🌸 Homepage 🌸

the project lives over at https://github.com/apertium/apertium-apy πŸ¦‹


ok that's the tea β˜• this page was last touched on 2018-11-08 for apertium-apy(1) πŸ’– go forth and translate, bestie 🧚✨