-
Notifications
You must be signed in to change notification settings - Fork 33
Processor resource discovery #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
2257876
utils: implement resource lookup logic
kba a7b8001
utils: list_all_resources to list all processor resources
kba 7e362d7
ocrd_utils.constants: XDG_CACHE_HOME
kba 78e84a2
list_all_resources: also look in XDG_CACHE_HOME
kba 5c75f40
Processor: implement resolve_resource and list_all_resources
kba bb63210
resolve_resource: also look in XDG_CACHE_HOME
kba 297a0f3
Processor: fix signature for list_resource_candidates
kba c999229
initial test of list_resource_candidates
kba 479cedd
test_os: not all test environments have VIRTUAL_ENV set
kba 247bf4d
Merge branch 'master' into resolve-files
kba 8e0b595
Merge branch 'master' into resolve-files
kba 0d97c2d
wip
kba a54b5bf
Merge branch 'master' into resolve-files
kba 6e76653
fixes merge error {f,}chmod
kba afcd117
run non-logging unit tests with standard $HOME
kba a3226b1
implement -C/-L cmdline flags
kba c2e0460
schema for resource list
kba 5a6ccf3
implement foundation of ocrd resmgr
kba 128f6b7
ocrd resmgr list-{installed,available} same output
kba 0f42da6
resmgr: basic downloading of urls of files
kba b63b4d8
resmgr: support parameter_usage different from resource name
kba 3f0eeac
add more models to resource_list.yml
kba 6e6e424
resmgr: simplify resource typing
kba 5843e1b
resmgr: support tarball downloads
kba 0edac70
search for resources only on top-level
kba f96ce5e
use resmgr in Processor.resolve_resource
kba fa90f1b
simplify Processor.resolve_resource, delegate to resmgr as much as po…
kba 89f77f0
resmgr: add anybaseocr resources
kba 18009a7
resmgr download: show progressbar, add size to resource list
kba 2df4c22
fix resmgr test
kba e8d0e0f
resmgr download: * to download all resources for this model
kba 1fd35b9
:package: pre-release 2.22.0b1
kba 849de10
new PAGE XML user method get_AllTextLine
kba bf47a07
update assets
kba db36dd3
kraken resources
kba a571b82
:package: pre-release 2.22.0b2
kba 3aa60a8
reslist: use name w/o slash
kba 4bf12fb
:package: pre-release v2.22.0b3
kba 2c26eb0
Update ocrd/ocrd/processor/base.py
kba 02e6415
rename PAGE method get_AllTextLine{,s}
kba 4def1d9
OcrdPage.get_AllTextLines: support region_order, stub for textline_order
kba 7911603
ocrd resmgr list-installed: look in fs for candidates
kba 54a214a
resource_list.yml: typo: ocrd{,-cis}-ocropy-recognize
kba e33346b
resmgr list-installed: create stub in user resource list for unregist…
kba 3ee66ce
resmgr: use last URL segment as the resource name
kba b21d462
resmgr: unquote URL encoded path
kba d8d97af
resmgr: use GET instead of HEAD for content-length
kba 509200c
resmgr: support "download" (=copying) of local files
kba cbbc09a
resmgr, introduce intermediary "ocrd-resource" dir
kba 7b1b6c9
default to VIRTUAL_ENV sharedir
kba 565ba38
resmgr: save stub on download
kba 012e49e
get_AllTextLines: implement textlineOrder
bertsky 199b430
resmgr: ocrd-resources also for list_resource_candidates
kba 8349807
resmgr: add @stweil's ONB model to list
kba 7840b5b
resmgr: when wildcard downloading, omit ??? user entries
kba 5038005
add a config file $XDG_CONFIG_HOME/ocrd.yml
kba 2ab2151
ocrd resmgr: use resource_location from config for default
kba 4687886
config: merge with default config for updated config
kba 032929e
move config file to $XDG_CONFIG_HOME/ocrd/config.yml for consistency
kba c6a53b0
resource manager: methods to resolve resource dirs
kba a741a72
Merge branch 'master' into resolve-files
kba 53a591d
:package: v2.22.0b4
kba a05ecf4
fix ocrd_config test
kba 61a8845
config: mkdir -p $(basename)
kba fd8ca26
:bug: resmgr: virtualenv location was missing "share"
kba a3cff9e
resmgr: show shorthand location in list-installed
kba 9280ef4
remove virtualenv, introduce /usr/local/share
kba 9cb058a
:fire: remove configuration file
kba 7e26a07
resmgr: lookup in XDG_DATA_HOME and absolute path only
kba 22fb2c6
resmgr download: be stricter about uninstalled processors
kba 2b3cb64
resmgr download "*"
kba ac74c3d
Update ocrd/ocrd/resource_manager.py
kba 134a0c1
Update ocrd/ocrd/resource_manager.py
kba a5858ec
allow "from ocrd import OcrdResourceManager"
kba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.