udpack 2026.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- udpack-2026.3.1/.github/workflows/build-docs.yaml +61 -0
- udpack-2026.3.1/.github/workflows/test.yaml +32 -0
- udpack-2026.3.1/.gitignore +58 -0
- udpack-2026.3.1/LICENSE +21 -0
- udpack-2026.3.1/PKG-INFO +77 -0
- udpack-2026.3.1/README.md +59 -0
- udpack-2026.3.1/docs/index.html +7 -0
- udpack-2026.3.1/docs/search.js +46 -0
- udpack-2026.3.1/docs/udpack/core.html +869 -0
- udpack-2026.3.1/docs/udpack.html +237 -0
- udpack-2026.3.1/examples/echo_client.py +15 -0
- udpack-2026.3.1/examples/echo_client_perf.py +19 -0
- udpack-2026.3.1/examples/echo_server.py +10 -0
- udpack-2026.3.1/pyproject.toml +31 -0
- udpack-2026.3.1/tests/test_udp.py +125 -0
- udpack-2026.3.1/udpack/__init__.py +1 -0
- udpack-2026.3.1/udpack/core.py +123 -0
- udpack-2026.3.1/uv.lock +1469 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Build Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
|
|
7
|
+
# Allows running this workflow manually from the Actions tab
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
# Give the default GITHUB_TOKEN write permission to commit and push
|
|
11
|
+
# the docs files to the repository and allow deployment to GitHub Pages
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
pages: write
|
|
15
|
+
id-token: write
|
|
16
|
+
|
|
17
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
18
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
19
|
+
concurrency:
|
|
20
|
+
group: "pages"
|
|
21
|
+
cancel-in-progress: false
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build-docs:
|
|
25
|
+
environment:
|
|
26
|
+
name: github-pages
|
|
27
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
28
|
+
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
|
|
31
|
+
steps:
|
|
32
|
+
- name: Checkout
|
|
33
|
+
uses: actions/checkout@v4
|
|
34
|
+
- name: Set up Python
|
|
35
|
+
uses: actions/setup-python@v3
|
|
36
|
+
with:
|
|
37
|
+
python-version: "3.10"
|
|
38
|
+
- name: Install Dependencies
|
|
39
|
+
run: |
|
|
40
|
+
python -m pip install --upgrade pip
|
|
41
|
+
pip install pdoc
|
|
42
|
+
- name: Install Module
|
|
43
|
+
run: |
|
|
44
|
+
pip install .
|
|
45
|
+
- name: Generate Docs
|
|
46
|
+
run: |
|
|
47
|
+
pdoc --docformat google -o ./docs udpack
|
|
48
|
+
- name: Commit Docs
|
|
49
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
|
50
|
+
with:
|
|
51
|
+
commit_message: "ci: build new docs"
|
|
52
|
+
- name: Setup Pages
|
|
53
|
+
uses: actions/configure-pages@v4
|
|
54
|
+
- name: Upload artifact
|
|
55
|
+
uses: actions/upload-pages-artifact@v3
|
|
56
|
+
with:
|
|
57
|
+
# Upload docs repository
|
|
58
|
+
path: "./docs/"
|
|
59
|
+
- name: Deploy to GitHub Pages
|
|
60
|
+
id: deployment
|
|
61
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: ${{ matrix.python-version }}
|
|
25
|
+
|
|
26
|
+
- name: Install package and dev dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
pip install -e ".[dev]"
|
|
30
|
+
|
|
31
|
+
- name: Run tests
|
|
32
|
+
run: pytest tests/ -v
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# PEP 582
|
|
55
|
+
__pypackages__/
|
|
56
|
+
|
|
57
|
+
# Cython debug symbols
|
|
58
|
+
cython_debug/
|
udpack-2026.3.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Uncertainty.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
udpack-2026.3.1/PKG-INFO
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: udpack
|
|
3
|
+
Version: 2026.3.1
|
|
4
|
+
Summary: UDP helper function for robotics workload.
|
|
5
|
+
Project-URL: Homepage, https://github.com/T-K-233/UDPack
|
|
6
|
+
Author-email: "-T.K.-" <tk233.xyz@gmail.com>
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.8
|
|
12
|
+
Requires-Dist: numpy
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: build; extra == 'dev'
|
|
15
|
+
Requires-Dist: pytest>=7; extra == 'dev'
|
|
16
|
+
Requires-Dist: twine; extra == 'dev'
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
|
|
19
|
+
# UDPack
|
|
20
|
+
|
|
21
|
+
[](https://tk233.xyz/UDPack/udpack.html)
|
|
22
|
+
|
|
23
|
+
UDPack is a minimal Python wrapper around UDP sockets. It provides a single `UDP` class that acts as a full-duplex communication channel—bind an address to receive, specify a target to send, or do both.
|
|
24
|
+
|
|
25
|
+
Designed for lightweight robotics, networking utilities, and quick prototypes.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pip install udpack
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
```python
|
|
36
|
+
import numpy as np
|
|
37
|
+
from udpack import UDP
|
|
38
|
+
|
|
39
|
+
# Full duplex: listen on 8000, send to 8001
|
|
40
|
+
udp = UDP(recv_addr=("0.0.0.0", 8000), send_addr=("127.0.0.1", 8001))
|
|
41
|
+
|
|
42
|
+
# Raw bytes
|
|
43
|
+
udp.send(b"hello")
|
|
44
|
+
data = udp.recv() # None on timeout
|
|
45
|
+
|
|
46
|
+
# Dict (JSON)
|
|
47
|
+
udp.send_dict({"x": 1.0, "y": 2.0})
|
|
48
|
+
obj = udp.recv_dict()
|
|
49
|
+
|
|
50
|
+
# NumPy arrays
|
|
51
|
+
udp.send_numpy(np.array([1, 2, 3], dtype=np.float32))
|
|
52
|
+
arr = udp.recv_numpy(dtype=np.float32)
|
|
53
|
+
|
|
54
|
+
udp.stop()
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Constructor
|
|
58
|
+
|
|
59
|
+
- **`recv_addr`** — `(host, port)` to bind and listen; `None` for transmit-only.
|
|
60
|
+
- **`send_addr`** — `(host, port)` of the remote peer; `None` for receive-only.
|
|
61
|
+
|
|
62
|
+
### Timeouts
|
|
63
|
+
|
|
64
|
+
Pass `timeout` to `recv`, `recv_dict`, or `recv_numpy`:
|
|
65
|
+
|
|
66
|
+
- `None` — blocking (wait forever)
|
|
67
|
+
- `0` — non-blocking (~0.1s poll)
|
|
68
|
+
- `> 0` — block for that many seconds
|
|
69
|
+
|
|
70
|
+
### API
|
|
71
|
+
|
|
72
|
+
| Method | Description |
|
|
73
|
+
|--------|-------------|
|
|
74
|
+
| `recv` / `send` | Raw bytes |
|
|
75
|
+
| `recv_dict` / `send_dict` | JSON-serialized dicts |
|
|
76
|
+
| `recv_numpy` / `send_numpy` | NumPy arrays (configurable `dtype`) |
|
|
77
|
+
| `stop` | Close the socket |
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# UDPack
|
|
2
|
+
|
|
3
|
+
[](https://tk233.xyz/UDPack/udpack.html)
|
|
4
|
+
|
|
5
|
+
UDPack is a minimal Python wrapper around UDP sockets. It provides a single `UDP` class that acts as a full-duplex communication channel—bind an address to receive, specify a target to send, or do both.
|
|
6
|
+
|
|
7
|
+
Designed for lightweight robotics, networking utilities, and quick prototypes.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install udpack
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
import numpy as np
|
|
19
|
+
from udpack import UDP
|
|
20
|
+
|
|
21
|
+
# Full duplex: listen on 8000, send to 8001
|
|
22
|
+
udp = UDP(recv_addr=("0.0.0.0", 8000), send_addr=("127.0.0.1", 8001))
|
|
23
|
+
|
|
24
|
+
# Raw bytes
|
|
25
|
+
udp.send(b"hello")
|
|
26
|
+
data = udp.recv() # None on timeout
|
|
27
|
+
|
|
28
|
+
# Dict (JSON)
|
|
29
|
+
udp.send_dict({"x": 1.0, "y": 2.0})
|
|
30
|
+
obj = udp.recv_dict()
|
|
31
|
+
|
|
32
|
+
# NumPy arrays
|
|
33
|
+
udp.send_numpy(np.array([1, 2, 3], dtype=np.float32))
|
|
34
|
+
arr = udp.recv_numpy(dtype=np.float32)
|
|
35
|
+
|
|
36
|
+
udp.stop()
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Constructor
|
|
40
|
+
|
|
41
|
+
- **`recv_addr`** — `(host, port)` to bind and listen; `None` for transmit-only.
|
|
42
|
+
- **`send_addr`** — `(host, port)` of the remote peer; `None` for receive-only.
|
|
43
|
+
|
|
44
|
+
### Timeouts
|
|
45
|
+
|
|
46
|
+
Pass `timeout` to `recv`, `recv_dict`, or `recv_numpy`:
|
|
47
|
+
|
|
48
|
+
- `None` — blocking (wait forever)
|
|
49
|
+
- `0` — non-blocking (~0.1s poll)
|
|
50
|
+
- `> 0` — block for that many seconds
|
|
51
|
+
|
|
52
|
+
### API
|
|
53
|
+
|
|
54
|
+
| Method | Description |
|
|
55
|
+
|--------|-------------|
|
|
56
|
+
| `recv` / `send` | Raw bytes |
|
|
57
|
+
| `recv_dict` / `send_dict` | JSON-serialized dicts |
|
|
58
|
+
| `recv_numpy` / `send_numpy` | NumPy arrays (configurable `dtype`) |
|
|
59
|
+
| `stop` | Close the socket |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
window.pdocSearch = (function(){
|
|
2
|
+
/** elasticlunr - http://weixsong.github.io * Copyright (C) 2017 Oliver Nightingale * Copyright (C) 2017 Wei Song * MIT Licensed */!function(){function e(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var t=function(e){var n=new t.Index;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),e&&e.call(n,n),n};t.version="0.9.5",lunr=t,t.utils={},t.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),t.utils.toString=function(e){return void 0===e||null===e?"":e.toString()},t.EventEmitter=function(){this.events={}},t.EventEmitter.prototype.addListener=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=e;if("function"!=typeof t)throw new TypeError("last argument must be a function");n.forEach(function(e){this.hasHandler(e)||(this.events[e]=[]),this.events[e].push(t)},this)},t.EventEmitter.prototype.removeListener=function(e,t){if(this.hasHandler(e)){var n=this.events[e].indexOf(t);-1!==n&&(this.events[e].splice(n,1),0==this.events[e].length&&delete this.events[e])}},t.EventEmitter.prototype.emit=function(e){if(this.hasHandler(e)){var t=Array.prototype.slice.call(arguments,1);this.events[e].forEach(function(e){e.apply(void 0,t)},this)}},t.EventEmitter.prototype.hasHandler=function(e){return e in this.events},t.tokenizer=function(e){if(!arguments.length||null===e||void 0===e)return[];if(Array.isArray(e)){var n=e.filter(function(e){return null===e||void 0===e?!1:!0});n=n.map(function(e){return t.utils.toString(e).toLowerCase()});var i=[];return n.forEach(function(e){var n=e.split(t.tokenizer.seperator);i=i.concat(n)},this),i}return e.toString().trim().toLowerCase().split(t.tokenizer.seperator)},t.tokenizer.defaultSeperator=/[\s\-]+/,t.tokenizer.seperator=t.tokenizer.defaultSeperator,t.tokenizer.setSeperator=function(e){null!==e&&void 0!==e&&"object"==typeof e&&(t.tokenizer.seperator=e)},t.tokenizer.resetSeperator=function(){t.tokenizer.seperator=t.tokenizer.defaultSeperator},t.tokenizer.getSeperator=function(){return t.tokenizer.seperator},t.Pipeline=function(){this._queue=[]},t.Pipeline.registeredFunctions={},t.Pipeline.registerFunction=function(e,n){n in t.Pipeline.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[n]=e},t.Pipeline.getRegisteredFunction=function(e){return e in t.Pipeline.registeredFunctions!=!0?null:t.Pipeline.registeredFunctions[e]},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(e){var i=t.Pipeline.getRegisteredFunction(e);if(!i)throw new Error("Cannot load un-registered function: "+e);n.add(i)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(e){t.Pipeline.warnIfFunctionNotRegistered(e),this._queue.push(e)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i+1,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var i=this._queue.indexOf(e);if(-1===i)throw new Error("Cannot find existingFn");this._queue.splice(i,0,n)},t.Pipeline.prototype.remove=function(e){var t=this._queue.indexOf(e);-1!==t&&this._queue.splice(t,1)},t.Pipeline.prototype.run=function(e){for(var t=[],n=e.length,i=this._queue.length,o=0;n>o;o++){for(var r=e[o],s=0;i>s&&(r=this._queue[s](r,o,e),void 0!==r&&null!==r);s++);void 0!==r&&null!==r&&t.push(r)}return t},t.Pipeline.prototype.reset=function(){this._queue=[]},t.Pipeline.prototype.get=function(){return this._queue},t.Pipeline.prototype.toJSON=function(){return this._queue.map(function(e){return t.Pipeline.warnIfFunctionNotRegistered(e),e.label})},t.Index=function(){this._fields=[],this._ref="id",this.pipeline=new t.Pipeline,this.documentStore=new t.DocumentStore,this.index={},this.eventEmitter=new t.EventEmitter,this._idfCache={},this.on("add","remove","update",function(){this._idfCache={}}.bind(this))},t.Index.prototype.on=function(){var e=Array.prototype.slice.call(arguments);return this.eventEmitter.addListener.apply(this.eventEmitter,e)},t.Index.prototype.off=function(e,t){return this.eventEmitter.removeListener(e,t)},t.Index.load=function(e){e.version!==t.version&&t.utils.warn("version mismatch: current "+t.version+" importing "+e.version);var n=new this;n._fields=e.fields,n._ref=e.ref,n.documentStore=t.DocumentStore.load(e.documentStore),n.pipeline=t.Pipeline.load(e.pipeline),n.index={};for(var i in e.index)n.index[i]=t.InvertedIndex.load(e.index[i]);return n},t.Index.prototype.addField=function(e){return this._fields.push(e),this.index[e]=new t.InvertedIndex,this},t.Index.prototype.setRef=function(e){return this._ref=e,this},t.Index.prototype.saveDocument=function(e){return this.documentStore=new t.DocumentStore(e),this},t.Index.prototype.addDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.addDoc(i,e),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));this.documentStore.addFieldLength(i,n,o.length);var r={};o.forEach(function(e){e in r?r[e]+=1:r[e]=1},this);for(var s in r){var u=r[s];u=Math.sqrt(u),this.index[n].addToken(s,{ref:i,tf:u})}},this),n&&this.eventEmitter.emit("add",e,this)}},t.Index.prototype.removeDocByRef=function(e){if(e&&this.documentStore.isDocStored()!==!1&&this.documentStore.hasDoc(e)){var t=this.documentStore.getDoc(e);this.removeDoc(t,!1)}},t.Index.prototype.removeDoc=function(e,n){if(e){var n=void 0===n?!0:n,i=e[this._ref];this.documentStore.hasDoc(i)&&(this.documentStore.removeDoc(i),this._fields.forEach(function(n){var o=this.pipeline.run(t.tokenizer(e[n]));o.forEach(function(e){this.index[n].removeToken(e,i)},this)},this),n&&this.eventEmitter.emit("remove",e,this))}},t.Index.prototype.updateDoc=function(e,t){var t=void 0===t?!0:t;this.removeDocByRef(e[this._ref],!1),this.addDoc(e,!1),t&&this.eventEmitter.emit("update",e,this)},t.Index.prototype.idf=function(e,t){var n="@"+t+"/"+e;if(Object.prototype.hasOwnProperty.call(this._idfCache,n))return this._idfCache[n];var i=this.index[t].getDocFreq(e),o=1+Math.log(this.documentStore.length/(i+1));return this._idfCache[n]=o,o},t.Index.prototype.getFields=function(){return this._fields.slice()},t.Index.prototype.search=function(e,n){if(!e)return[];e="string"==typeof e?{any:e}:JSON.parse(JSON.stringify(e));var i=null;null!=n&&(i=JSON.stringify(n));for(var o=new t.Configuration(i,this.getFields()).get(),r={},s=Object.keys(e),u=0;u<s.length;u++){var a=s[u];r[a]=this.pipeline.run(t.tokenizer(e[a]))}var l={};for(var c in o){var d=r[c]||r.any;if(d){var f=this.fieldSearch(d,c,o),h=o[c].boost;for(var p in f)f[p]=f[p]*h;for(var p in f)p in l?l[p]+=f[p]:l[p]=f[p]}}var v,g=[];for(var p in l)v={ref:p,score:l[p]},this.documentStore.hasDoc(p)&&(v.doc=this.documentStore.getDoc(p)),g.push(v);return g.sort(function(e,t){return t.score-e.score}),g},t.Index.prototype.fieldSearch=function(e,t,n){var i=n[t].bool,o=n[t].expand,r=n[t].boost,s=null,u={};return 0!==r?(e.forEach(function(e){var n=[e];1==o&&(n=this.index[t].expandToken(e));var r={};n.forEach(function(n){var o=this.index[t].getDocs(n),a=this.idf(n,t);if(s&&"AND"==i){var l={};for(var c in s)c in o&&(l[c]=o[c]);o=l}n==e&&this.fieldSearchStats(u,n,o);for(var c in o){var d=this.index[t].getTermFrequency(n,c),f=this.documentStore.getFieldLength(c,t),h=1;0!=f&&(h=1/Math.sqrt(f));var p=1;n!=e&&(p=.15*(1-(n.length-e.length)/n.length));var v=d*a*h*p;c in r?r[c]+=v:r[c]=v}},this),s=this.mergeScores(s,r,i)},this),s=this.coordNorm(s,u,e.length)):void 0},t.Index.prototype.mergeScores=function(e,t,n){if(!e)return t;if("AND"==n){var i={};for(var o in t)o in e&&(i[o]=e[o]+t[o]);return i}for(var o in t)o in e?e[o]+=t[o]:e[o]=t[o];return e},t.Index.prototype.fieldSearchStats=function(e,t,n){for(var i in n)i in e?e[i].push(t):e[i]=[t]},t.Index.prototype.coordNorm=function(e,t,n){for(var i in e)if(i in t){var o=t[i].length;e[i]=e[i]*o/n}return e},t.Index.prototype.toJSON=function(){var e={};return this._fields.forEach(function(t){e[t]=this.index[t].toJSON()},this),{version:t.version,fields:this._fields,ref:this._ref,documentStore:this.documentStore.toJSON(),index:e,pipeline:this.pipeline.toJSON()}},t.Index.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},t.DocumentStore=function(e){this._save=null===e||void 0===e?!0:e,this.docs={},this.docInfo={},this.length=0},t.DocumentStore.load=function(e){var t=new this;return t.length=e.length,t.docs=e.docs,t.docInfo=e.docInfo,t._save=e.save,t},t.DocumentStore.prototype.isDocStored=function(){return this._save},t.DocumentStore.prototype.addDoc=function(t,n){this.hasDoc(t)||this.length++,this.docs[t]=this._save===!0?e(n):null},t.DocumentStore.prototype.getDoc=function(e){return this.hasDoc(e)===!1?null:this.docs[e]},t.DocumentStore.prototype.hasDoc=function(e){return e in this.docs},t.DocumentStore.prototype.removeDoc=function(e){this.hasDoc(e)&&(delete this.docs[e],delete this.docInfo[e],this.length--)},t.DocumentStore.prototype.addFieldLength=function(e,t,n){null!==e&&void 0!==e&&0!=this.hasDoc(e)&&(this.docInfo[e]||(this.docInfo[e]={}),this.docInfo[e][t]=n)},t.DocumentStore.prototype.updateFieldLength=function(e,t,n){null!==e&&void 0!==e&&0!=this.hasDoc(e)&&this.addFieldLength(e,t,n)},t.DocumentStore.prototype.getFieldLength=function(e,t){return null===e||void 0===e?0:e in this.docs&&t in this.docInfo[e]?this.docInfo[e][t]:0},t.DocumentStore.prototype.toJSON=function(){return{docs:this.docs,docInfo:this.docInfo,length:this.length,save:this._save}},t.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},n="[^aeiou]",i="[aeiouy]",o=n+"[^aeiouy]*",r=i+"[aeiou]*",s="^("+o+")?"+r+o,u="^("+o+")?"+r+o+"("+r+")?$",a="^("+o+")?"+r+o+r+o,l="^("+o+")?"+i,c=new RegExp(s),d=new RegExp(a),f=new RegExp(u),h=new RegExp(l),p=/^(.+?)(ss|i)es$/,v=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,m=/^(.+?)(ed|ing)$/,y=/.$/,S=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\1$"),w=new RegExp("^"+o+i+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,b=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,D=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,F=/^(.+?)(s|t)(ion)$/,_=/^(.+?)e$/,P=/ll$/,k=new RegExp("^"+o+i+"[^aeiouwxy]$"),z=function(n){var i,o,r,s,u,a,l;if(n.length<3)return n;if(r=n.substr(0,1),"y"==r&&(n=r.toUpperCase()+n.substr(1)),s=p,u=v,s.test(n)?n=n.replace(s,"$1$2"):u.test(n)&&(n=n.replace(u,"$1$2")),s=g,u=m,s.test(n)){var z=s.exec(n);s=c,s.test(z[1])&&(s=y,n=n.replace(s,""))}else if(u.test(n)){var z=u.exec(n);i=z[1],u=h,u.test(i)&&(n=i,u=S,a=x,l=w,u.test(n)?n+="e":a.test(n)?(s=y,n=n.replace(s,"")):l.test(n)&&(n+="e"))}if(s=I,s.test(n)){var z=s.exec(n);i=z[1],n=i+"i"}if(s=b,s.test(n)){var z=s.exec(n);i=z[1],o=z[2],s=c,s.test(i)&&(n=i+e[o])}if(s=E,s.test(n)){var z=s.exec(n);i=z[1],o=z[2],s=c,s.test(i)&&(n=i+t[o])}if(s=D,u=F,s.test(n)){var z=s.exec(n);i=z[1],s=d,s.test(i)&&(n=i)}else if(u.test(n)){var z=u.exec(n);i=z[1]+z[2],u=d,u.test(i)&&(n=i)}if(s=_,s.test(n)){var z=s.exec(n);i=z[1],s=d,u=f,a=k,(s.test(i)||u.test(i)&&!a.test(i))&&(n=i)}return s=P,u=d,s.test(n)&&u.test(n)&&(s=y,n=n.replace(s,"")),"y"==r&&(n=r.toLowerCase()+n.substr(1)),n};return z}(),t.Pipeline.registerFunction(t.stemmer,"stemmer"),t.stopWordFilter=function(e){return e&&t.stopWordFilter.stopWords[e]!==!0?e:void 0},t.clearStopWords=function(){t.stopWordFilter.stopWords={}},t.addStopWords=function(e){null!=e&&Array.isArray(e)!==!1&&e.forEach(function(e){t.stopWordFilter.stopWords[e]=!0},this)},t.resetStopWords=function(){t.stopWordFilter.stopWords=t.defaultStopWords},t.defaultStopWords={"":!0,a:!0,able:!0,about:!0,across:!0,after:!0,all:!0,almost:!0,also:!0,am:!0,among:!0,an:!0,and:!0,any:!0,are:!0,as:!0,at:!0,be:!0,because:!0,been:!0,but:!0,by:!0,can:!0,cannot:!0,could:!0,dear:!0,did:!0,"do":!0,does:!0,either:!0,"else":!0,ever:!0,every:!0,"for":!0,from:!0,get:!0,got:!0,had:!0,has:!0,have:!0,he:!0,her:!0,hers:!0,him:!0,his:!0,how:!0,however:!0,i:!0,"if":!0,"in":!0,into:!0,is:!0,it:!0,its:!0,just:!0,least:!0,let:!0,like:!0,likely:!0,may:!0,me:!0,might:!0,most:!0,must:!0,my:!0,neither:!0,no:!0,nor:!0,not:!0,of:!0,off:!0,often:!0,on:!0,only:!0,or:!0,other:!0,our:!0,own:!0,rather:!0,said:!0,say:!0,says:!0,she:!0,should:!0,since:!0,so:!0,some:!0,than:!0,that:!0,the:!0,their:!0,them:!0,then:!0,there:!0,these:!0,they:!0,"this":!0,tis:!0,to:!0,too:!0,twas:!0,us:!0,wants:!0,was:!0,we:!0,were:!0,what:!0,when:!0,where:!0,which:!0,"while":!0,who:!0,whom:!0,why:!0,will:!0,"with":!0,would:!0,yet:!0,you:!0,your:!0},t.stopWordFilter.stopWords=t.defaultStopWords,t.Pipeline.registerFunction(t.stopWordFilter,"stopWordFilter"),t.trimmer=function(e){if(null===e||void 0===e)throw new Error("token should not be undefined");return e.replace(/^\W+/,"").replace(/\W+$/,"")},t.Pipeline.registerFunction(t.trimmer,"trimmer"),t.InvertedIndex=function(){this.root={docs:{},df:0}},t.InvertedIndex.load=function(e){var t=new this;return t.root=e.root,t},t.InvertedIndex.prototype.addToken=function(e,t,n){for(var n=n||this.root,i=0;i<=e.length-1;){var o=e[i];o in n||(n[o]={docs:{},df:0}),i+=1,n=n[o]}var r=t.ref;n.docs[r]?n.docs[r]={tf:t.tf}:(n.docs[r]={tf:t.tf},n.df+=1)},t.InvertedIndex.prototype.hasToken=function(e){if(!e)return!1;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return!1;t=t[e[n]]}return!0},t.InvertedIndex.prototype.getNode=function(e){if(!e)return null;for(var t=this.root,n=0;n<e.length;n++){if(!t[e[n]])return null;t=t[e[n]]}return t},t.InvertedIndex.prototype.getDocs=function(e){var t=this.getNode(e);return null==t?{}:t.docs},t.InvertedIndex.prototype.getTermFrequency=function(e,t){var n=this.getNode(e);return null==n?0:t in n.docs?n.docs[t].tf:0},t.InvertedIndex.prototype.getDocFreq=function(e){var t=this.getNode(e);return null==t?0:t.df},t.InvertedIndex.prototype.removeToken=function(e,t){if(e){var n=this.getNode(e);null!=n&&t in n.docs&&(delete n.docs[t],n.df-=1)}},t.InvertedIndex.prototype.expandToken=function(e,t,n){if(null==e||""==e)return[];var t=t||[];if(void 0==n&&(n=this.getNode(e),null==n))return t;n.df>0&&t.push(e);for(var i in n)"docs"!==i&&"df"!==i&&this.expandToken(e+i,t,n[i]);return t},t.InvertedIndex.prototype.toJSON=function(){return{root:this.root}},t.Configuration=function(e,n){var e=e||"";if(void 0==n||null==n)throw new Error("fields should not be null");this.config={};var i;try{i=JSON.parse(e),this.buildUserConfig(i,n)}catch(o){t.utils.warn("user configuration parse failed, will use default configuration"),this.buildDefaultConfig(n)}},t.Configuration.prototype.buildDefaultConfig=function(e){this.reset(),e.forEach(function(e){this.config[e]={boost:1,bool:"OR",expand:!1}},this)},t.Configuration.prototype.buildUserConfig=function(e,n){var i="OR",o=!1;if(this.reset(),"bool"in e&&(i=e.bool||i),"expand"in e&&(o=e.expand||o),"fields"in e)for(var r in e.fields)if(n.indexOf(r)>-1){var s=e.fields[r],u=o;void 0!=s.expand&&(u=s.expand),this.config[r]={boost:s.boost||0===s.boost?s.boost:1,bool:s.bool||i,expand:u}}else t.utils.warn("field name in user configuration not found in index instance fields");else this.addAllFields2UserConfig(i,o,n)},t.Configuration.prototype.addAllFields2UserConfig=function(e,t,n){n.forEach(function(n){this.config[n]={boost:1,bool:e,expand:t}},this)},t.Configuration.prototype.get=function(){return this.config},t.Configuration.prototype.reset=function(){this.config={}},lunr.SortedSet=function(){this.length=0,this.elements=[]},lunr.SortedSet.load=function(e){var t=new this;return t.elements=e,t.length=e.length,t},lunr.SortedSet.prototype.add=function(){var e,t;for(e=0;e<arguments.length;e++)t=arguments[e],~this.indexOf(t)||this.elements.splice(this.locationFor(t),0,t);this.length=this.elements.length},lunr.SortedSet.prototype.toArray=function(){return this.elements.slice()},lunr.SortedSet.prototype.map=function(e,t){return this.elements.map(e,t)},lunr.SortedSet.prototype.forEach=function(e,t){return this.elements.forEach(e,t)},lunr.SortedSet.prototype.indexOf=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;){if(r===e)return o;e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o]}return r===e?o:-1},lunr.SortedSet.prototype.locationFor=function(e){for(var t=0,n=this.elements.length,i=n-t,o=t+Math.floor(i/2),r=this.elements[o];i>1;)e>r&&(t=o),r>e&&(n=o),i=n-t,o=t+Math.floor(i/2),r=this.elements[o];return r>e?o:e>r?o+1:void 0},lunr.SortedSet.prototype.intersect=function(e){for(var t=new lunr.SortedSet,n=0,i=0,o=this.length,r=e.length,s=this.elements,u=e.elements;;){if(n>o-1||i>r-1)break;s[n]!==u[i]?s[n]<u[i]?n++:s[n]>u[i]&&i++:(t.add(s[n]),n++,i++)}return t},lunr.SortedSet.prototype.clone=function(){var e=new lunr.SortedSet;return e.elements=this.toArray(),e.length=e.elements.length,e},lunr.SortedSet.prototype.union=function(e){var t,n,i;this.length>=e.length?(t=this,n=e):(t=e,n=this),i=t.clone();for(var o=0,r=n.toArray();o<r.length;o++)i.add(r[o]);return i},lunr.SortedSet.prototype.toJSON=function(){return this.toArray()},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.elasticlunr=t()}(this,function(){return t})}();
|
|
3
|
+
/** pdoc search index */const docs = {"version": "0.9.5", "fields": ["qualname", "fullname", "annotation", "default_value", "signature", "bases", "doc"], "ref": "fullname", "documentStore": {"docs": {"udpack": {"fullname": "udpack", "modulename": "udpack", "kind": "module", "doc": "<p></p>\n"}, "udpack.core": {"fullname": "udpack.core", "modulename": "udpack.core", "kind": "module", "doc": "<p></p>\n"}, "udpack.core.UDP": {"fullname": "udpack.core.UDP", "modulename": "udpack.core", "qualname": "UDP", "kind": "class", "doc": "<p>UDP class for sending and receiving data from a UDP socket as a full duplex communcation channel.</p>\n"}, "udpack.core.UDP.__init__": {"fullname": "udpack.core.UDP.__init__", "modulename": "udpack.core", "qualname": "UDP.__init__", "kind": "function", "doc": "<p>Initialize UDP Tx and Rx</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>recv_addr:</strong> address to listen on, None if not receiving (tx only)</li>\n<li><strong>send_addr:</strong> address of target host, None if not sending (rx only)</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"n\">recv_addr</span><span class=\"o\">=</span><span class=\"kc\">None</span>, </span><span class=\"param\"><span class=\"n\">send_addr</span><span class=\"o\">=</span><span class=\"kc\">None</span></span>)</span>"}, "udpack.core.UDP.recv_addr": {"fullname": "udpack.core.UDP.recv_addr", "modulename": "udpack.core", "qualname": "UDP.recv_addr", "kind": "variable", "doc": "<p></p>\n"}, "udpack.core.UDP.send_addr": {"fullname": "udpack.core.UDP.send_addr", "modulename": "udpack.core", "qualname": "UDP.send_addr", "kind": "variable", "doc": "<p></p>\n"}, "udpack.core.UDP.stop": {"fullname": "udpack.core.UDP.stop", "modulename": "udpack.core", "qualname": "UDP.stop", "kind": "function", "doc": "<p>Close the socket.</p>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span></span><span class=\"return-annotation\">) -> <span class=\"kc\">None</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.recv": {"fullname": "udpack.core.UDP.recv", "modulename": "udpack.core", "qualname": "UDP.recv", "kind": "function", "doc": "<p>Receive data</p>\n\n<p>timeout == None: blocking forever\ntimeout == 0: non-blocking (the actual delay is around 0.1s)\ntimeout > 0: blocking for timeout seconds</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>bufsize:</strong> size of data buffer to receive</li>\n<li><strong>timeout:</strong> timeout in seconds</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">bufsize</span><span class=\"o\">=</span><span class=\"mi\">1024</span>, </span><span class=\"param\"><span class=\"n\">timeout</span><span class=\"o\">=</span><span class=\"kc\">None</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">bytes</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.send": {"fullname": "udpack.core.UDP.send", "modulename": "udpack.core", "qualname": "UDP.send", "kind": "function", "doc": "<p>Send a byte buffer to the target device.</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>buffer:</strong> data to send</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">buffer</span><span class=\"p\">:</span> <span class=\"nb\">bytes</span></span><span class=\"return-annotation\">) -> <span class=\"kc\">None</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.recv_dict": {"fullname": "udpack.core.UDP.recv_dict", "modulename": "udpack.core", "qualname": "UDP.recv_dict", "kind": "function", "doc": "<p>Receive data and deserialize it into a python dictionary.</p>\n\n<p>See <code>recv()</code> for more information on timeout.</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>bufsize:</strong> size of data buffer to receive</li>\n<li><strong>timeout:</strong> timeout in seconds</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">bufsize</span><span class=\"o\">=</span><span class=\"mi\">1024</span>, </span><span class=\"param\"><span class=\"n\">timeout</span><span class=\"o\">=</span><span class=\"kc\">None</span></span><span class=\"return-annotation\">) -> <span class=\"nb\">dict</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.send_dict": {"fullname": "udpack.core.UDP.send_dict", "modulename": "udpack.core", "qualname": "UDP.send_dict", "kind": "function", "doc": "<p>Serialize a python dictionary and send it.</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>data:</strong> data to send</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">data</span><span class=\"p\">:</span> <span class=\"nb\">dict</span></span><span class=\"return-annotation\">) -> <span class=\"kc\">None</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.recv_numpy": {"fullname": "udpack.core.UDP.recv_numpy", "modulename": "udpack.core", "qualname": "UDP.recv_numpy", "kind": "function", "doc": "<p>Receive data and deserialize it into a numpy array.</p>\n\n<p>See <code>recv()</code> for more information on timeout.</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>bufsize:</strong> size of data buffer to receive</li>\n<li><strong>dtype:</strong> numpy data type</li>\n<li><strong>timeout:</strong> timeout in seconds</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code multiline\">(<span class=\"param\">\t<span class=\"bp\">self</span>,</span><span class=\"param\">\t<span class=\"n\">bufsize</span><span class=\"o\">=</span><span class=\"mi\">1024</span>,</span><span class=\"param\">\tdtype=<class 'numpy.float32'>,</span><span class=\"param\">\t<span class=\"n\">timeout</span><span class=\"o\">=</span><span class=\"kc\">None</span></span><span class=\"return-annotation\">) -> <span class=\"n\">numpy</span><span class=\"o\">.</span><span class=\"n\">ndarray</span>:</span></span>", "funcdef": "def"}, "udpack.core.UDP.send_numpy": {"fullname": "udpack.core.UDP.send_numpy", "modulename": "udpack.core", "qualname": "UDP.send_numpy", "kind": "function", "doc": "<p>Serialize a numpy array and send it.</p>\n\n<h6 id=\"arguments\">Arguments:</h6>\n\n<ul>\n<li><strong>data:</strong> data to send</li>\n</ul>\n", "signature": "<span class=\"signature pdoc-code condensed\">(<span class=\"param\"><span class=\"bp\">self</span>, </span><span class=\"param\"><span class=\"n\">data</span><span class=\"p\">:</span> <span class=\"n\">numpy</span><span class=\"o\">.</span><span class=\"n\">ndarray</span></span><span class=\"return-annotation\">) -> <span class=\"kc\">None</span>:</span></span>", "funcdef": "def"}}, "docInfo": {"udpack": {"qualname": 0, "fullname": 1, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "udpack.core": {"qualname": 0, "fullname": 2, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "udpack.core.UDP": {"qualname": 1, "fullname": 3, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 20}, "udpack.core.UDP.__init__": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 26, "bases": 0, "doc": 48}, "udpack.core.UDP.recv_addr": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "udpack.core.UDP.send_addr": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 0, "bases": 0, "doc": 3}, "udpack.core.UDP.stop": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 14, "bases": 0, "doc": 6}, "udpack.core.UDP.recv": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 34, "bases": 0, "doc": 54}, "udpack.core.UDP.send": {"qualname": 2, "fullname": 4, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 26}, "udpack.core.UDP.recv_dict": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 34, "bases": 0, "doc": 51}, "udpack.core.UDP.send_dict": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 24, "bases": 0, "doc": 25}, "udpack.core.UDP.recv_numpy": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 53, "bases": 0, "doc": 59}, "udpack.core.UDP.send_numpy": {"qualname": 3, "fullname": 5, "annotation": 0, "default_value": 0, "signature": 29, "bases": 0, "doc": 25}}, "length": 13, "save": true}, "index": {"qualname": {"root": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "p": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 11}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "v": {"docs": {"udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 4}}}}, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}}, "df": 2}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 4}}}, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {"udpack.core.UDP.stop": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}}, "df": 2}}}}, "n": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}}}}, "fullname": {"root": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "p": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 11, "a": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "k": {"docs": {"udpack": {"tf": 1}, "udpack.core": {"tf": 1}, "udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 13}}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core": {"tf": 1}, "udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 12}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "v": {"docs": {"udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 4}}}}, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.recv_addr": {"tf": 1}, "udpack.core.UDP.send_addr": {"tf": 1}}, "df": 2}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP.send_addr": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 4}}}, "t": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "p": {"docs": {"udpack.core.UDP.stop": {"tf": 1}}, "df": 1}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}}, "df": 2}}}}, "n": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}}}}, "annotation": {"root": {"docs": {}, "df": 0}}, "default_value": {"root": {"docs": {}, "df": 0}}, "signature": {"root": {"1": {"0": {"2": {"4": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "docs": {"udpack.core.UDP.__init__": {"tf": 4.47213595499958}, "udpack.core.UDP.stop": {"tf": 3.4641016151377544}, "udpack.core.UDP.recv": {"tf": 5.291502622129181}, "udpack.core.UDP.send": {"tf": 4.47213595499958}, "udpack.core.UDP.recv_dict": {"tf": 5.291502622129181}, "udpack.core.UDP.send_dict": {"tf": 4.47213595499958}, "udpack.core.UDP.recv_numpy": {"tf": 6.164414002968976}, "udpack.core.UDP.send_numpy": {"tf": 4.898979485566356}}, "df": 8, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "v": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}, "a": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}, "udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 8}}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1.4142135623730951}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}, "l": {"docs": {}, "df": 0, "f": {"docs": {"udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 7}}}}, "b": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}}, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.send": {"tf": 1}}, "df": 1}}}}}, "y": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}}, "df": 2}}}}}, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}}}}}, "d": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}}, "df": 2}}}, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}}}}, "l": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}}}}, "x": {"2": {"7": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1.4142135623730951}}, "df": 1}, "docs": {}, "df": 0}, "docs": {}, "df": 0}, "f": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"3": {"2": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}, "docs": {}, "df": 0}, "docs": {}, "df": 0}}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}}}, "bases": {"root": {"docs": {}, "df": 0}}, "doc": {"root": {"0": {"docs": {"udpack.core.UDP.recv": {"tf": 1.7320508075688772}}, "df": 1}, "1": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}, "docs": {"udpack": {"tf": 1.7320508075688772}, "udpack.core": {"tf": 1.7320508075688772}, "udpack.core.UDP": {"tf": 1.7320508075688772}, "udpack.core.UDP.__init__": {"tf": 4.242640687119285}, "udpack.core.UDP.recv_addr": {"tf": 1.7320508075688772}, "udpack.core.UDP.send_addr": {"tf": 1.7320508075688772}, "udpack.core.UDP.stop": {"tf": 1.7320508075688772}, "udpack.core.UDP.recv": {"tf": 4.242640687119285}, "udpack.core.UDP.send": {"tf": 3.605551275463989}, "udpack.core.UDP.recv_dict": {"tf": 4.795831523312719}, "udpack.core.UDP.send_dict": {"tf": 3.605551275463989}, "udpack.core.UDP.recv_numpy": {"tf": 5.196152422706632}, "udpack.core.UDP.send_numpy": {"tf": 3.605551275463989}}, "df": 13, "u": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "p": {"docs": {"udpack.core.UDP": {"tf": 1.4142135623730951}, "udpack.core.UDP.__init__": {"tf": 1}}, "df": 2}}}, "c": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.stop": {"tf": 1}}, "df": 1}}}}, "o": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}}}}}}}}}, "h": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "l": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}}}}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 4, "e": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "m": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}, "u": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "l": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1.4142135623730951}, "udpack.core.UDP.send_dict": {"tf": 1.4142135623730951}, "udpack.core.UDP.send_numpy": {"tf": 1.4142135623730951}}, "df": 4, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}}, "df": 2}}}}}, "c": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.recv": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}}}, "e": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 2}, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}}}}}, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.stop": {"tf": 1}}, "df": 2}}}}}, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}}, "a": {"docs": {"udpack.core.UDP": {"tf": 1.4142135623730951}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 6, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 6}}, "s": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}, "r": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 7}}}}}}}, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "d": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}}}, "r": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}, "d": {"docs": {}, "df": 0, "d": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1, "e": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "s": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}}}}, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}}}}}, "r": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.__init__": {"tf": 1}}, "df": 2}}}, "e": {"docs": {"udpack.core.UDP.recv": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_dict": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_numpy": {"tf": 1.4142135623730951}}, "df": 3}}}}, "v": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}, "x": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}}, "d": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "a": {"docs": {"udpack.core.UDP": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1.4142135623730951}, "udpack.core.UDP.send": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1.4142135623730951}, "udpack.core.UDP.send_dict": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_numpy": {"tf": 1.7320508075688772}, "udpack.core.UDP.send_numpy": {"tf": 1.4142135623730951}}, "df": 7}}}, "u": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "x": {"docs": {"udpack.core.UDP": {"tf": 1}}, "df": 1}}}}}, "e": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}}, "v": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.send": {"tf": 1}}, "df": 1}}}}, "s": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 2}}}}}}}}}}, "i": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}}, "df": 2}}}}}}}}}, "t": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}}}}, "i": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3, "i": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}}}}}, "t": {"docs": {}, "df": 0, "o": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 2}}, "f": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "a": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 2}}}}}}}}}}, "f": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}, "s": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}, "t": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 4}}, "t": {"docs": {}, "df": 0, "x": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}, "o": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 7}, "a": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "g": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}}, "df": 2}}}}}, "h": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.stop": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1}}, "df": 3}}, "i": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "u": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv": {"tf": 2.449489742783178}, "udpack.core.UDP.recv_dict": {"tf": 1.7320508075688772}, "udpack.core.UDP.recv_numpy": {"tf": 1.7320508075688772}}, "df": 3}}}}}}, "y": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 1}}}}, "l": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}}}, "o": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3, "l": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}}}, "f": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}, "udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 4}}, "n": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1, "e": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv": {"tf": 1}}, "df": 2}}, "t": {"docs": {"udpack.core.UDP.__init__": {"tf": 1.4142135623730951}}, "df": 1}}, "u": {"docs": {}, "df": 0, "m": {"docs": {}, "df": 0, "p": {"docs": {}, "df": 0, "y": {"docs": {"udpack.core.UDP.recv_numpy": {"tf": 1.4142135623730951}, "udpack.core.UDP.send_numpy": {"tf": 1}}, "df": 2}}}}}, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.__init__": {"tf": 1}}, "df": 1}}}}, "b": {"docs": {}, "df": 0, "l": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "c": {"docs": {}, "df": 0, "k": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "n": {"docs": {}, "df": 0, "g": {"docs": {"udpack.core.UDP.recv": {"tf": 1.7320508075688772}}, "df": 1}}}}}}}, "u": {"docs": {}, "df": 0, "f": {"docs": {}, "df": 0, "s": {"docs": {}, "df": 0, "i": {"docs": {}, "df": 0, "z": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 3}}}}, "f": {"docs": {}, "df": 0, "e": {"docs": {}, "df": 0, "r": {"docs": {"udpack.core.UDP.recv": {"tf": 1}, "udpack.core.UDP.send": {"tf": 1.4142135623730951}, "udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 4}}}}}, "y": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.send": {"tf": 1}}, "df": 1}}}}, "g": {"docs": {}, "df": 0, "t": {"docs": {"udpack.core.UDP.recv": {"tf": 1}}, "df": 1}}, "p": {"docs": {}, "df": 0, "y": {"docs": {}, "df": 0, "t": {"docs": {}, "df": 0, "h": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "n": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.send_dict": {"tf": 1}}, "df": 2}}}}}}, "m": {"docs": {}, "df": 0, "o": {"docs": {}, "df": 0, "r": {"docs": {}, "df": 0, "e": {"docs": {"udpack.core.UDP.recv_dict": {"tf": 1}, "udpack.core.UDP.recv_numpy": {"tf": 1}}, "df": 2}}}}}}}, "pipeline": ["trimmer"], "_isPrebuiltIndex": true};
|
|
4
|
+
|
|
5
|
+
// mirrored in build-search-index.js (part 1)
|
|
6
|
+
// Also split on html tags. this is a cheap heuristic, but good enough.
|
|
7
|
+
elasticlunr.tokenizer.setSeperator(/[\s\-.;&_'"=,()]+|<[^>]*>/);
|
|
8
|
+
|
|
9
|
+
let searchIndex;
|
|
10
|
+
if (docs._isPrebuiltIndex) {
|
|
11
|
+
console.info("using precompiled search index");
|
|
12
|
+
searchIndex = elasticlunr.Index.load(docs);
|
|
13
|
+
} else {
|
|
14
|
+
console.time("building search index");
|
|
15
|
+
// mirrored in build-search-index.js (part 2)
|
|
16
|
+
searchIndex = elasticlunr(function () {
|
|
17
|
+
this.pipeline.remove(elasticlunr.stemmer);
|
|
18
|
+
this.pipeline.remove(elasticlunr.stopWordFilter);
|
|
19
|
+
this.addField("qualname");
|
|
20
|
+
this.addField("fullname");
|
|
21
|
+
this.addField("annotation");
|
|
22
|
+
this.addField("default_value");
|
|
23
|
+
this.addField("signature");
|
|
24
|
+
this.addField("bases");
|
|
25
|
+
this.addField("doc");
|
|
26
|
+
this.setRef("fullname");
|
|
27
|
+
});
|
|
28
|
+
for (let doc of docs) {
|
|
29
|
+
searchIndex.addDoc(doc);
|
|
30
|
+
}
|
|
31
|
+
console.timeEnd("building search index");
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return (term) => searchIndex.search(term, {
|
|
35
|
+
fields: {
|
|
36
|
+
qualname: {boost: 4},
|
|
37
|
+
fullname: {boost: 2},
|
|
38
|
+
annotation: {boost: 2},
|
|
39
|
+
default_value: {boost: 2},
|
|
40
|
+
signature: {boost: 2},
|
|
41
|
+
bases: {boost: 2},
|
|
42
|
+
doc: {boost: 1},
|
|
43
|
+
},
|
|
44
|
+
expand: true
|
|
45
|
+
});
|
|
46
|
+
})();
|