Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Larry Ndumbe
pymemri
Commits
64728b44
Commit
64728b44
authored
4 years ago
by
Koen van der Veen
Browse files
Options
Download
Email Patches
Plain Diff
styles
parent
7365548d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/css/memri_styles.css
+1
-0
docs/assets/css/memri_styles.css
nbs/importers.Importer.ipynb
+1
-8
nbs/importers.Importer.ipynb
pymemri/__init__.py
+1
-1
pymemri/__init__.py
with
3 additions
and
9 deletions
+3
-9
docs/assets/css/memri_styles.css
+
1
-
0
View file @
64728b44
...
...
@@ -141,6 +141,7 @@ font-family: "Frutiger Neue LT";
line-height
:
21px
;
letter-spacing
:
0.03em
;
color
:
#665E73
!important
;
margin-top
:
22px
;
}
#sidebar-title
a
{
...
...
This diff is collapsed.
Click to expand it.
nbs/importers.Importer.ipynb
+
1
-
8
View file @
64728b44
...
...
@@ -72,17 +72,10 @@
"output_type": "stream",
"text": [
"Converted basic.ipynb.\n",
"Converted
importers.EmailImporter
.ipynb.\n",
"Converted
data.photo
.ipynb.\n",
"Converted importers.Importer.ipynb.\n",
"Converted importers.util.ipynb.\n",
"Converted index.ipynb.\n",
"Converted indexers.FaceRecognitionIndexer.ipynb.\n",
"Converted indexers.FacerecognitionIndexer.Photo.ipynb.\n",
"Converted indexers.GeoIndexer.ipynb.\n",
"Converted indexers.NoteListIndexer.NoteList.ipynb.\n",
"Converted indexers.NoteListIndexer.Parser.ipynb.\n",
"Converted indexers.NoteListIndexer.ipynb.\n",
"Converted indexers.NoteListIndexer.util.ipynb.\n",
"Converted indexers.indexer.ipynb.\n",
"Converted itembase.ipynb.\n",
"Converted pod.client.ipynb.\n"
...
...
%% Cell type:code id: tags:
```
python
%
load_ext
autoreload
%
autoreload
2
# default_exp importers.importer
```
%% Cell type:markdown id: tags:
# Importer
%% Cell type:markdown id: tags:
Importers download your data from other sources. For retrieving the data from other sources importers rely on downloaders.
%% Cell type:code id: tags:
```
python
# export
from
pymemri.data.schema
import
*
class
ImporterBase
(
Importer
):
def
__init__
(
self
,
importerClass
=
None
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
@
staticmethod
def
update_progress
(
pod_client
,
importer_run
,
progress
,
total
=
"total"
,
verbose
=
True
):
if
pod_client
is
not
None
:
importer_run
.
progress
=
progress
pod_client
.
update_item
(
importer_run
)
if
verbose
:
print
(
f
'PROGRESS: Importing
{
progress
*
100
}
% of
{
total
}
'
)
@
staticmethod
def
update_run_status
(
pod_client
,
importer_run
,
status
,
verbose
=
True
):
if
pod_client
is
not
None
:
importer_run
.
runStatus
=
status
pod_client
.
update_item
(
importer_run
)
if
verbose
:
print
(
f
"RUN STATUS:
{
status
}
"
)
@
staticmethod
def
update_progress_message
(
pod_client
,
importer_run
,
message
,
verbose
=
True
):
if
pod_client
is
not
None
:
importer_run
.
progressMessage
=
message
pod_client
.
update_item
(
importer_run
)
if
verbose
:
print
(
f
"PROGRESS MESSAGE:
{
message
}
"
)
```
%% Cell type:code id: tags:
```
python
# hide
from
nbdev.export
import
*
notebook2script
()
```
%% Output
Converted basic.ipynb.
Converted
importers.EmailImporter
.ipynb.
Converted
data.photo
.ipynb.
Converted importers.Importer.ipynb.
Converted importers.util.ipynb.
Converted index.ipynb.
Converted indexers.FaceRecognitionIndexer.ipynb.
Converted indexers.FacerecognitionIndexer.Photo.ipynb.
Converted indexers.GeoIndexer.ipynb.
Converted indexers.NoteListIndexer.NoteList.ipynb.
Converted indexers.NoteListIndexer.Parser.ipynb.
Converted indexers.NoteListIndexer.ipynb.
Converted indexers.NoteListIndexer.util.ipynb.
Converted indexers.indexer.ipynb.
Converted itembase.ipynb.
Converted pod.client.ipynb.
%% Cell type:code id: tags:
```
python
```
...
...
This diff is collapsed.
Click to expand it.
pymemri/__init__.py
+
1
-
1
View file @
64728b44
__version__
=
"0.0.
5
"
__version__
=
"0.0.
6
"
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment