Browse Source

woob: more renames

Roger Philibert 1 month ago
parent
commit
6b859d4b78

+ 1
- 1
AUTHORS View File

@@ -1,4 +1,4 @@
1
-Weboob is a free software written by:
1
+Woob is a free software written by:
2 2
 
3 3
 Romain Bignon <romain@weboob.org>
4 4
         * Core team;

+ 1
- 1
contrib/anonymiser.sh View File

@@ -12,7 +12,7 @@ then
12 12
 	dossier=$1
13 13
 else
14 14
 	echo "Usage: $0 FOLDER"
15
-	echo "For example : $0 /tmp/weboob_session_NLSIls/freemobile/"
15
+	echo "For example : $0 /tmp/woob_session_NLSIls/freemobile/"
16 16
 	exit 1
17 17
 fi
18 18
 

+ 5
- 5
contrib/boobank_indicator/README.md View File

@@ -1,7 +1,7 @@
1
-Weboob
1
+Woob
2 2
 ==========
3 3
 
4
-Weboob is a project which provides a core library, modules and applications
4
+Woob is a project which provides a core library, modules and applications
5 5
 such as boobank.
6 6
 
7 7
 Overview
@@ -20,7 +20,7 @@ in a multi-threaded way.
20 20
 The core library provides base classes which help developers write
21 21
 modules and applications.
22 22
 
23
-Weboob is written in Python and is distributed under the LGPLv3+ license.
23
+Woob is written in Python and is distributed under the LGPLv3+ license.
24 24
 
25 25
 For more information, please go to the official website at http://woob.tech/
26 26
 
@@ -49,7 +49,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart`
49 49
 
50 50
 ###Dependencies
51 51
 
52
-  - weboob >= 1.0
52
+  - woob >= 1.0
53 53
   - gir1.2-appindicator3 >= 0.1
54 54
   - gir1.2-notify >= 0.7
55 55
 
@@ -58,7 +58,7 @@ depending on your Ubuntu Version. Or put it in `~/.config/openbox/autostart`
58 58
 If the app indicator fails to show in Ubuntu versions, consider installing
59 59
 python-appindicator with
60 60
 
61
-`sudo apt-get install python-appindicator` weboob gir1.2-appindicator3 gir1.2-notify`
61
+`sudo apt-get install python-appindicator` woob gir1.2-appindicator3 gir1.2-notify`
62 62
 
63 63
 ##Author Information
64 64
 - Bezleputh (<bezleputh@gmail.com>)

+ 1
- 1
contrib/boobank_indicator/setup.py View File

@@ -5,7 +5,7 @@ setup(name='boobank_indicator',
5 5
       version='2.1',
6 6
       description='show your bank accounts in your System Tray',
7 7
       long_description='boobank_indicator will show you bank accounts and associated transactions in your system tray. Your bank accounts should be configured in boobank',
8
-      keywords='weboob boobank tray icon',
8
+      keywords='woob bank tray icon',
9 9
       url='http://woob.tech/',
10 10
       license='GNU LGPL 3',
11 11
       author='Bezleputh',

+ 4
- 4
contrib/munin/boobank-munin View File

@@ -4,20 +4,20 @@
4 4
 
5 5
 # Copyright(C) 2010-2011  Romain Bignon
6 6
 #
7
-# This file is part of weboob.
7
+# This file is part of woob.
8 8
 #
9
-# weboob is free software: you can redistribute it and/or modify
9
+# woob is free software: you can redistribute it and/or modify
10 10
 # it under the terms of the GNU Lesser General Public License as published by
11 11
 # the Free Software Foundation, either version 3 of the License, or
12 12
 # (at your option) any later version.
13 13
 #
14
-# weboob is distributed in the hope that it will be useful,
14
+# woob is distributed in the hope that it will be useful,
15 15
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 16
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 17
 # GNU Lesser General Public License for more details.
18 18
 #
19 19
 # You should have received a copy of the GNU Lesser General Public License
20
-# along with weboob. If not, see <http://www.gnu.org/licenses/>.
20
+# along with woob. If not, see <http://www.gnu.org/licenses/>.
21 21
 
22 22
 from __future__ import print_function
23 23
 

+ 1
- 1
contrib/munin/freemobile-munin View File

@@ -182,7 +182,7 @@ sub fetch {
182 182
             }
183 183
         }
184 184
     }
185
-    # execute weboob
185
+    # execute woob
186 186
     open my $data, q(-|), $weboob or croak "Couldn't execute program: $ERRNO";
187 187
     my @lines = <$data>;
188 188
     close $data or carp "unable to close: $ERRNO";

+ 3
- 3
contrib/munin/weboob-generic View File

@@ -25,16 +25,16 @@
25 25
 
26 26
 ### Configuration ###
27 27
 ## Mandatory options ##
28
-# env.capa: The Weboob capability to load
28
+# env.capa: The Woob capability to load
29 29
 # Example: env.capa CapBank
30 30
 #
31
-# env.do: The Weboob command to call. It can take more than one argument.
31
+# env.do: The Woob command to call. It can take more than one argument.
32 32
 #         With two argument, the second is used as parameter for the command.
33 33
 #         The third is used to restrict backends.
34 34
 # Example: env.do get_balance
35 35
 #
36 36
 # env.import: The import line to import the capabilities
37
-# Example: from weboob.capabilities.bank import CapBank
37
+# Example: from woob.capabilities.bank import CapBank
38 38
 #
39 39
 # env.attribvalue: The attribut name of objects returned by the do command.
40 40
 #                  For example, the "balance" member of Account objects

+ 6
- 6
contrib/webextension-session-importer/README View File

@@ -1,7 +1,7 @@
1
-Weboob session importer
2
-=======================
1
+Woob session importer
2
+=====================
3 3
 
4
-This is a webextension to export a weboob session URL and cookies and load it in
4
+This is a webextension to export a woob session URL and cookies and load it in
5 5
 a real browser.
6 6
 
7 7
 Build
@@ -16,7 +16,7 @@ To build a package, `web-ext build` can be used.
16 16
 Use
17 17
 ---
18 18
 
19
-To export the session with weboob-debug for example:
19
+To export the session with woob-debug for example:
20 20
 
21 21
 >>> print(json.dumps(browser.export_session()))
22 22
 
@@ -24,5 +24,5 @@ Copy the JSON output (sample):
24 24
 
25 25
 {"url": "https://example.com/foo", "cookies": [{"name": "foo", "value": "bar"}]}
26 26
 
27
-Then click on the Weboob toolbar button of your browser and paste the JSON.
28
-The browser will set the cookies from weboob and go to the same URL.
27
+Then click on the Woob toolbar button of your browser and paste the JSON.
28
+The browser will set the cookies from woob and go to the same URL.

+ 4
- 4
contrib/webextension-session-importer/manifest.json View File

@@ -1,10 +1,10 @@
1 1
 {
2 2
     "manifest_version": 2,
3
-    "name": "Weboob session importer",
3
+    "name": "Woob session importer",
4 4
     "version": "0.0.1",
5 5
 
6
-    "description": "Import Weboob session URL and cookies",
7
-    "homepage_url": "http://weboob.org",
6
+    "description": "Import Woob session URL and cookies",
7
+    "homepage_url": "http://woob.tech",
8 8
 
9 9
     "icons": {
10 10
         "48": "logo.png"
@@ -19,7 +19,7 @@
19 19
     "browser_action": {
20 20
         "browser_style": true,
21 21
         "default_icon": "logo.png",
22
-        "default_title": "Import Weboob session",
22
+        "default_title": "Import Woob session",
23 23
         "default_popup": "popup.html"
24 24
     }
25 25
 }

+ 3
- 3
tools/boilerplate/recipe.py View File

@@ -29,8 +29,8 @@ from mako.lookup import TemplateLookup
29 29
 
30 30
 from woob import __version__
31 31
 
32
-WEBOOB_MODULES = os.getenv(
33
-    'WEBOOB_MODULES',
32
+WOOB_MODULES = os.getenv(
33
+    'WOOB_MODULES',
34 34
     os.path.realpath(os.path.join(os.path.dirname(__file__), '../../modules')))
35 35
 BOILERPLATE_PATH = os.getenv(
36 36
     'BOILERPLATE_PATH',
@@ -68,7 +68,7 @@ class Recipe(object):
68 68
         self.login = False
69 69
 
70 70
     def write(self, filename, contents):
71
-        return write(os.path.join(WEBOOB_MODULES, self.name, filename), contents)
71
+        return write(os.path.join(WOOB_MODULES, self.name, filename), contents)
72 72
 
73 73
     def template(self, name, **kwargs):
74 74
         if '.' not in name:

+ 2
- 2
tools/check_xpath.py View File

@@ -25,7 +25,7 @@ import os
25 25
 import traceback
26 26
 
27 27
 import lxml.etree
28
-from weboob.browser.filters import standard
28
+from woob.browser.filters import standard
29 29
 
30 30
 
31 31
 class Error(SyntaxError):
@@ -141,7 +141,7 @@ if __name__ == '__main__':
141 141
     parser.add_argument('-w', '--warnings', action='store_true')
142 142
     args = parser.parse_args()
143 143
 
144
-    modpath = os.getenv('WEBOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules'))
144
+    modpath = os.getenv('WOOB_MODULES', os.path.normpath(os.path.dirname(__file__) + '/../modules'))
145 145
     for fn in search_py(modpath):
146 146
         with open(fn) as fd:
147 147
             try:

+ 1
- 1
tools/har-to-old.py View File

@@ -23,7 +23,7 @@ def write_request(entry, fd):
23 23
 
24 24
     if 'postData' in entry:
25 25
         if entry['postData'].get('x-binary'):
26
-            # non-standard key emitted by weboob
26
+            # non-standard key emitted by woob
27 27
             body = entry['postData']['text'].encode('latin-1')
28 28
         else:
29 29
             body = entry['postData']['text'].encode()

+ 2
- 2
tools/make_man.py View File

@@ -30,7 +30,7 @@ import time
30 30
 from datetime import datetime
31 31
 from textwrap import dedent
32 32
 
33
-from weboob.tools.application.base import Application
33
+from woob.tools.application.base import Application
34 34
 
35 35
 BASE_PATH = os.path.join(os.path.dirname(__file__), os.pardir)
36 36
 DEST_DIR = 'man'
@@ -106,7 +106,7 @@ class ManpageHelpFormatter(optparse.HelpFormatter):
106 106
 
107 107
 def main():
108 108
     # TODO rename when apps have changed folder
109
-    scripts_path = os.path.join(BASE_PATH, 'weboob', 'applications')
109
+    scripts_path = os.path.join(BASE_PATH, 'woob', 'applications')
110 110
     files = sorted(os.listdir(scripts_path))
111 111
     completions = dict()
112 112
 

+ 3
- 3
tools/modules_testing_grid.py View File

@@ -2,10 +2,10 @@
2 2
 # -*- coding: utf-8 -*-
3 3
 """
4 4
 Script to format XUNIT output from unittests as a JSON string ready to be sent
5
-to a [Weboob-CI](https://github.com/Phyks/weboob-ci) instance.
5
+to a [Woob-CI](https://github.com/Phyks/weboob-ci) instance.
6 6
 
7 7
 * `XUNIT` is the XUNIT file to handle.
8
-* `ORIGIN` is an origin string as described in the Weboob-CI documentation
8
+* `ORIGIN` is an origin string as described in the Woob-CI documentation
9 9
 (basically just a string to identify the source of the unittests results).
10 10
 """
11 11
 from __future__ import print_function
@@ -23,7 +23,7 @@ def main(xunit, origin):
23 23
     modules = {}
24 24
     other_testcases = []
25 25
     for tc in ts:
26
-        if tc.classname.startswith("weboob."):
26
+        if tc.classname.startswith("woob."):
27 27
             other_testcases.append(repr(tc))
28 28
             continue
29 29
         module = tc.classname.split(".")[0]

+ 3
- 3
tools/run_tests.sh View File

@@ -75,10 +75,10 @@ if [ ! -n "${XUNIT_OUT}" ]; then
75 75
     XUNIT_OUT=""
76 76
 fi
77 77
 
78
-# Handle Weboob-CI variables
78
+# Handle Woob-CI variables
79 79
 if [ -n "${WOOB_CI_TARGET}" ]; then
80 80
     if [ ! -n "${WOOB_CI_ORIGIN}" ]; then
81
-        WOOB_CI_ORIGIN="Weboob unittests run"
81
+        WOOB_CI_ORIGIN="Woob unittests run"
82 82
     fi
83 83
     # Set up xunit reporting
84 84
     XUNIT_OUT="${WOOB_TMPDIR}/xunit.xml"
@@ -127,7 +127,7 @@ if [ -n "${BACKEND}" ]; then
127 127
     STATUS=$?
128 128
 else
129 129
     if [ $TEST_CORE = 1 ]; then
130
-        echo "=== Weboob ==="
130
+        echo "=== Woob ==="
131 131
         CORE_TESTS=$(mktemp)
132 132
         ${PYTHON} -m nose --cover-package woob -c ${WOOB_DIR}/setup.cfg --logging-level=DEBUG -sv 2>&1 | tee "${CORE_TESTS}"
133 133
         STATUS_CORE=$?

+ 3
- 3
tools/stable_backport_data/weboob_tools_captcha_virtkeyboard.py View File

@@ -1,5 +1,5 @@
1 1
 
2
-import weboob.tools.captcha.virtkeyboard as OLD
2
+import woob.tools.captcha.virtkeyboard as OLD
3 3
 
4 4
 # can't import *, __all__ is incomplete...
5 5
 for attr in dir(OLD):
@@ -31,7 +31,7 @@ class SimpleVirtualKeyboard(object):
31 31
                                         (x0, y0, x1, y1) on grid image from left to right and top to
32 32
                                         down, European reading way. It's not symbols in the image.
33 33
         :type matching_symbols_coords: dict[str:4-tuple(int)]
34
-        :param browser: Browser of weboob session.
34
+        :param browser: Browser of woob session.
35 35
                         Allow to dump tiles files in same directory than session folder
36 36
         :type browser: obj(Browser)
37 37
 
@@ -81,7 +81,7 @@ class SimpleVirtualKeyboard(object):
81 81
         if browser and browser.responses_dirname:
82 82
             return browser.responses_dirname
83 83
         else:
84
-            return tempfile.mkdtemp(prefix='weboob_session_')
84
+            return tempfile.mkdtemp(prefix='woob_session_')
85 85
 
86 86
     def load_image(self, file, margin=None, convert=None):
87 87
         self.image = Image.open(file)

+ 1
- 1
tools/woob_lint.py View File

@@ -5,7 +5,7 @@ import logging
5 5
 import os
6 6
 import sys
7 7
 
8
-from weboob.core import Woob
8
+from woob.core import Woob
9 9
 
10 10
 # Hint: use this script with file:///path/to/local/modules/ in sources.list
11 11
 # if you want to correctly check all modules.