-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
''' | ||
Handprint module for handling credentials. | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
from .base import Credentials | ||
from .amazon_auth import AmazonCredentials | ||
from .google_auth import GoogleCredentials | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
amazon_auth.py: subclass of handprint.credentials.base | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import json | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
base.py: credentials base class | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
from appdirs import user_config_dir | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
credentials_files.py: mapping of services to credentials files | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
CREDENTIALS_FILES = { | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
google_auth.py: subclass of handprint.credentials.base | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import json | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
microsoft_auth.py: subclass of handprint.credentials.base | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import json | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
''' | ||
Handprint module for interfacing to text recognition cloud services. | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
from .amazon import AmazonRekognitionTR, AmazonTextractTR | ||
from .google import GoogleTR | ||
from .microsoft import MicrosoftTR | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
amazon.py: interface to Amazon network services Rekognition and Textract | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import boto3 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
tr/base.py: base class definition for text recognition systems. | ||
base.py: base class definition for text recognition systems. | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
from collections import namedtuple | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
''' | ||
google.py: interface to Google text recognition network service | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import io | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,18 @@ | |
This code was originally based on the sample provided by Microsoft at | ||
https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/quickstarts/python-hand-text | ||
Authors | ||
------- | ||
Michael Hucka <[email protected]> -- Caltech Library | ||
Copyright | ||
--------- | ||
Copyright (c) 2018-2020 by the California Institute of Technology. This code | ||
is open-source software released under a 3-clause BSD license. Please see the | ||
file "LICENSE" for more information. | ||
''' | ||
|
||
import os | ||
|