-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/armin_structuring' NEW: Memacs M…
…odules, new Structure new Memacs modules: - SMS - Phonecalls - CSV - Photos (EXIF) Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
- Loading branch information
Showing
101 changed files
with
1,834 additions
and
597 deletions.
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 |
---|---|---|
|
@@ -13,4 +13,5 @@ rss/vktmp | |
rss/error.org_archive | ||
filenametimestamps/vktmp/ | ||
benchmarking | ||
Makefile | ||
Makefile | ||
core |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2012-02-22 17:12:59 armin> | ||
|
||
from memacs.csv import Csv | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2012-02-24" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for csv files" | ||
PROG_TAG = u"csv" | ||
PROG_DESCRIPTION = u""" | ||
This Memacs module will parse csv files | ||
""" | ||
# set CONFIG_PARSER_NAME only, when you want to have a config file | ||
# otherwise you can comment it out | ||
# CONFIG_PARSER_NAME="memacs-example" | ||
COPYRIGHT_YEAR = "2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
|
||
if __name__ == "__main__": | ||
memacs = Csv( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
# use_config_parser_name=CONFIG_PARSER_NAME | ||
) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2012-02-22 17:12:59 armin> | ||
|
||
from memacs.example import Foo | ||
|
||
PROG_VERSION_NUMBER = u"0.0" | ||
PROG_VERSION_DATE = u"2011-12-18" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for ... " | ||
PROG_TAG = u"mytag" | ||
PROG_DESCRIPTION = u""" | ||
this class will do .... | ||
Then an Org-mode file is generated that contains .... | ||
if youre module needs a config file please give information about usage: | ||
sample config: | ||
[memacs-example] <-- "memacs-example" has to be CONFIG_PARSER_NAME | ||
foo = 0 | ||
bar = 1 | ||
""" | ||
# set CONFIG_PARSER_NAME only, when you want to have a config file | ||
# otherwise you can comment it out | ||
# CONFIG_PARSER_NAME="memacs-example" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
|
||
if __name__ == "__main__": | ||
memacs = Foo( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
# use_config_parser_name=CONFIG_PARSER_NAME | ||
) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2011-10-28 15:13:31 aw> | ||
|
||
from memacs.filenametimestamps import FileNameTimeStamps | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2011-12-28" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for file name time stamp" | ||
PROG_TAG = u"filedatestamps" | ||
PROG_DESCRIPTION = u"""This script parses a text file containing absolute paths | ||
to files with ISO datestamps and timestamps in their file names: | ||
Examples: "2010-03-29T20.12 Divegraph.tiff" | ||
"2010-12-31T23.59_Cookie_recipies.pdf" | ||
"2011-08-29T08.23.59_test.pdf" | ||
Emacs tmp-files like file~ are automatically ignored | ||
Then an Org-mode file is generated that contains links to the files. | ||
""" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
if __name__ == "__main__": | ||
|
||
memacs = FileNameTimeStamps(prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2011-12-20 15:13:31 aw> | ||
|
||
from memacs.git import GitMemacs | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2011-12-20" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for git files " | ||
PROG_TAG = u"git" | ||
PROG_DESCRIPTION = u""" | ||
This class will parse files from git rev-parse output | ||
use following command to generate input file | ||
$ git rev-list --all --pretty=raw > /path/to/input file | ||
Then an Org-mode file is generated that contains all commit message | ||
If outputfile is specified, only non-existing commits are appended | ||
""" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
|
||
if __name__ == "__main__": | ||
memacs = GitMemacs( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2011-10-28 15:13:31 aw> | ||
|
||
from memacs.ical import CalendarMemacs | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2011-12-28" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for ical Calendars" | ||
PROG_TAG = u"calendar" | ||
PROG_DESCRIPTION = u"""This script parses a *.ics file and generates | ||
Entries for VEVENTS | ||
* other's like VALARM are not implemented by now | ||
""" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
if __name__ == "__main__": | ||
memacs = CalendarMemacs(prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2012-01-07 19:55:25 armin> | ||
|
||
from memacs.imap import ImapMemacs | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2011-12-30" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for imap emails" | ||
PROG_TAG = u"emails:imap" | ||
PROG_DESCRIPTION = u"""The memacs module will connect to an IMAP Server, | ||
fetch all mails of given folder (-f or --folder-name <folder>), | ||
parses the mails and writes them to an orgfile. | ||
This module uses configfiles (-c, --config-file <path>) | ||
sample-config: | ||
[memacs-imap] | ||
host = imap.gmail.com | ||
port = 993 | ||
user = foo@gmail.com | ||
password = bar | ||
""" | ||
CONFIG_PARSER_NAME = "memacs-imap" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
|
||
if __name__ == "__main__": | ||
memacs = ImapMemacs( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS, | ||
use_config_parser_name=CONFIG_PARSER_NAME | ||
) | ||
memacs.handle_main() |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Time-stamp: <2011-10-28 15:13:31 aw> | ||
|
||
from memacs.phonecalls import PhonecallsMemacs | ||
|
||
PROG_VERSION_NUMBER = u"0.1" | ||
PROG_VERSION_DATE = u"2012-03-08" | ||
PROG_SHORT_DESCRIPTION = u"Memacs for phonecalls" | ||
PROG_TAG = u"phonecalls" | ||
PROG_DESCRIPTION = u""" | ||
This Memacs module will parse output of phonecalls xml backup files | ||
sample xml file: | ||
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?> | ||
<calls count="8"> | ||
<call number="+43691234123" duration="59" date="1312563906092" type="1" /> | ||
<call number="06612341234" duration="22" date="1312541215834" type="2" /> | ||
<call number="-1" duration="382" date="1312530691081" type="1" /> | ||
<call number="+4312341234" duration="289" date="1312482327195" type="1" /> | ||
<call number="+4366412341234" duration="70" date="1312476334059" type="1" /> | ||
<call number="+4366234123" duration="0" date="1312473751975" type="2" /> | ||
<call number="+436612341234" duration="0" date="1312471300072" type="3" /> | ||
<call number="+433123412" duration="60" date="1312468562489" type="2" /> | ||
</calls> | ||
Then an Org-mode file is generated. | ||
""" | ||
COPYRIGHT_YEAR = "2011-2012" | ||
COPYRIGHT_AUTHORS = """Karl Voit <tools@Karl-Voit.at>, | ||
Armin Wieser <armin.wieser@gmail.com>""" | ||
|
||
if __name__ == "__main__": | ||
memacs = PhonecallsMemacs( | ||
prog_version=PROG_VERSION_NUMBER, | ||
prog_version_date=PROG_VERSION_DATE, | ||
prog_description=PROG_DESCRIPTION, | ||
prog_short_description=PROG_SHORT_DESCRIPTION, | ||
prog_tag=PROG_TAG, | ||
copyright_year=COPYRIGHT_YEAR, | ||
copyright_authors=COPYRIGHT_AUTHORS | ||
) | ||
memacs.handle_main() |
Oops, something went wrong.