anki/pylib/anki
Henrik Giesel a8d4774cdb
Add _raw methods for all methods in the backend (#1594)
* Add _bytes methods for all methods in the backend

Expose get_note in qt/aqt/mediasrv.py

* Satisfy formatter

* Rename _bytes function to _raw and have them bytes as input

* Fix backend generation

* Use lib/proto/deckOptions in deck-options

* Add exposed_backend to qt/aqt/mediasrv.py

* Move some more backend methods to exposed_backend_list

* Use protobufjs for congrats and i18n

* Use protobufjs for completeTag

* Use protobufjs services in change-notetype

* Reorder post handlers in alphabetical manner

* Satisfy tests

* Remove unused collection methods

* Rename access_backend to raw_backend_request

* Use _vendor.stringcase instead of creating a new function

* Remove SKIP_UNROLL_OUTPUT

* Directly call _run_command in non _raw methods

* Remove TranslateString, ChangeNotetype and CompleteTag from SKIP_UNROLL_INPUT

* Remove UpdateDeckConfigs from SKIP_UNROLL_INPUT

* Remove ChangeNotetype from SKIP_UNROLL_INPUT

* Remove SKIP_UNROLL_INPUT

* Fix typing issue with translate_string

- Adds typing support for Protobuf maps in genbackend.py

* Do not emit convenience method for protobuf TranslateString
2022-01-21 21:32:39 +10:00
..
_backend Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
_vendor PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
importing The importer list have a Hook (#1543) 2021-12-09 11:20:29 +10:00
scheduler Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
syncserver updated package scripts 2021-10-28 18:46:45 +10:00
__init__.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
_legacy.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
backend_pb2.pyi refactor protobuf handling for split/import 2021-07-10 19:17:05 +10:00
browser.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
BUILD.bazel add missing wheel/helper for darwin-arm64 2021-10-28 18:29:18 +10:00
buildinfo.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
card_rendering_pb2.pyi split out remaining tags, stats, media and rendering 2021-07-10 23:16:18 +10:00
cards_pb2.pyi split out cards and collection 2021-07-10 19:52:31 +10:00
cards.py convert invariant assertions to if statements 2021-11-25 17:47:50 +10:00
collection_pb2.pyi split out cards and collection 2021-07-10 19:52:31 +10:00
collection.py Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
config_pb2.pyi configs.proto plural workaround no longer necessary 2021-07-11 19:35:18 +10:00
config.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
consts.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
db.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
dbproxy.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
deckconfig_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
decks_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
decks.py Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
errors.py Backend Custom Study (#1600) 2022-01-20 14:25:22 +10:00
exporting.py Remove redundant camelcase aliases (#1509) 2021-11-26 12:29:48 +10:00
find.py Add py3.9 to hooks (#1542) 2021-12-09 09:11:22 +10:00
generic_pb2.pyi refactor protobuf handling for split/import 2021-07-10 19:17:05 +10:00
hooks_gen.py symlink generated .py/.pyi into tree to fix Python code completion 2020-12-16 11:36:42 +10:00
hooks.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
httpclient.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
i18n_pb2.pyi refactor protobuf handling for split/import 2021-07-10 19:17:05 +10:00
lang.py add Belarusian to prefs 2022-01-16 15:58:57 +10:00
latex.py update platform checks (eg isWin -> is_win) + devMode 2021-11-25 09:06:16 +10:00
links_pb2.pyi fix broken links_pb2.pyi link 2021-10-01 22:52:15 +10:00
media_pb2.pyi split out remaining tags, stats, media and rendering 2021-07-10 23:16:18 +10:00
media.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
models.py Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
notes_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
notes.py Remove redundant camelcase aliases (#1509) 2021-11-26 12:29:48 +10:00
notetypes_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
rsbackend.py PEP8 for rest of pylib (#1451) 2021-10-25 14:50:13 +10:00
scheduler_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
search_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
sound.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
stats_pb2.pyi split out remaining tags, stats, media and rendering 2021-07-10 23:16:18 +10:00
stats.py update mypy and mypy-protobuf 2022-01-15 16:04:04 +10:00
statsbg.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
stdmodels.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
storage.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
sync_pb2.pyi split out sync, search, scheduler & config 2021-07-10 21:33:12 +10:00
sync.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
tags_pb2.pyi split out remaining tags, stats, media and rendering 2021-07-10 23:16:18 +10:00
tags.py Add _raw methods for all methods in the backend (#1594) 2022-01-21 21:32:39 +10:00
template.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
types.py Enable invalid-name globally in pylib (#1454) 2021-10-25 19:10:56 +10:00
utils.py remove legacy warning on pointVersion 2021-12-06 19:58:53 +10:00
wheel_description.txt move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00