Skip to content

Commit d56d5a3

Browse files
committed
Merge branch 'master' of github.com:i2mint/recode
2 parents 013b5e6 + c3173f6 commit d56d5a3

20 files changed

Lines changed: 309 additions & 124 deletions

docs/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 2e5ae8bc52a530ff8c6c69034c701aa0
3+
config: bea9ec5fb8a1ee1ee7ebd0ffd78f4f10
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

docs/_modules/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Overview: module code &mdash; recode 0.1.31 documentation</title>
8+
<title>Overview: module code &mdash; recode 0.1.32 documentation</title>
99
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
1010
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css" />
1111
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css" />

docs/_modules/recode/audio.html

Lines changed: 161 additions & 24 deletions
Large diffs are not rendered by default.

docs/_modules/recode/base.html

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

docs/_modules/recode/util.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>recode.util &mdash; recode 0.1.31 documentation</title>
8+
<title>recode.util &mdash; recode 0.1.32 documentation</title>
99
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css" />
1010
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css" />
1111
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css" />
@@ -81,17 +81,17 @@ <h1>Source code for recode.util</h1><div class="highlight"><pre>
8181
<span class="sd">Utils for use throughout the package</span>
8282
<span class="sd">&quot;&quot;&quot;</span>
8383

84-
<span class="kn">from</span> <span class="nn">itertools</span> <span class="kn">import</span> <span class="n">islice</span><span class="p">,</span> <span class="n">chain</span>
84+
<span class="kn">from</span><span class="w"> </span><span class="nn">itertools</span><span class="w"> </span><span class="kn">import</span> <span class="n">islice</span><span class="p">,</span> <span class="n">chain</span>
8585

8686

87-
<div class="viewcode-block" id="take"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.take">[docs]</a><span class="k">def</span> <span class="nf">take</span><span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">iterable</span><span class="p">):</span>
87+
<div class="viewcode-block" id="take"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.take">[docs]</a><span class="k">def</span><span class="w"> </span><span class="nf">take</span><span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">iterable</span><span class="p">):</span>
8888
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
8989
<span class="sd"> &gt;&gt;&gt; assert take(3, [1,2,3,4,5]) == [1,2,3]</span>
9090
<span class="sd"> &quot;&quot;&quot;</span>
9191
<span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="n">islice</span><span class="p">(</span><span class="n">iterable</span><span class="p">,</span> <span class="n">n</span><span class="p">))</span></div>
9292

9393

94-
<div class="viewcode-block" id="spy"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.spy">[docs]</a><span class="k">def</span> <span class="nf">spy</span><span class="p">(</span><span class="n">iterable</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
94+
<div class="viewcode-block" id="spy"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.spy">[docs]</a><span class="k">def</span><span class="w"> </span><span class="nf">spy</span><span class="p">(</span><span class="n">iterable</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="mi">1</span><span class="p">):</span>
9595
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
9696
<span class="sd"> &gt;&gt;&gt; peek, it = spy([1,2,3], 1)</span>
9797
<span class="sd"> &gt;&gt;&gt; assert peek == [1]</span>
@@ -107,7 +107,7 @@ <h1>Source code for recode.util</h1><div class="highlight"><pre>
107107
<span class="n">type_to_struct</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;&lt;class &#39;int&#39;&gt;&quot;</span><span class="p">:</span> <span class="s1">&#39;h&#39;</span><span class="p">,</span> <span class="s2">&quot;&lt;class &#39;float&#39;&gt;&quot;</span><span class="p">:</span> <span class="s1">&#39;d&#39;</span><span class="p">}</span>
108108

109109

110-
<div class="viewcode-block" id="get_struct"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.get_struct">[docs]</a><span class="k">def</span> <span class="nf">get_struct</span><span class="p">(</span><span class="n">str_type</span><span class="p">):</span>
110+
<div class="viewcode-block" id="get_struct"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.get_struct">[docs]</a><span class="k">def</span><span class="w"> </span><span class="nf">get_struct</span><span class="p">(</span><span class="n">str_type</span><span class="p">):</span>
111111
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
112112
<span class="sd"> &gt;&gt;&gt; assert get_struct(type(1)) == &#39;h&#39;</span>
113113
<span class="sd"> &gt;&gt;&gt; assert get_struct(type(1.001)) == &#39;d&#39;</span>
@@ -116,7 +116,7 @@ <h1>Source code for recode.util</h1><div class="highlight"><pre>
116116
<span class="k">return</span> <span class="n">type_to_struct</span><span class="p">[</span><span class="n">str_type</span><span class="p">]</span></div>
117117

118118

119-
<div class="viewcode-block" id="list_of_dicts"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.list_of_dicts">[docs]</a><span class="k">def</span> <span class="nf">list_of_dicts</span><span class="p">(</span><span class="n">cols</span><span class="p">,</span> <span class="n">vals</span><span class="p">):</span>
119+
<div class="viewcode-block" id="list_of_dicts"><a class="viewcode-back" href="../../module_docs/recode/util.html#recode.util.list_of_dicts">[docs]</a><span class="k">def</span><span class="w"> </span><span class="nf">list_of_dicts</span><span class="p">(</span><span class="n">cols</span><span class="p">,</span> <span class="n">vals</span><span class="p">):</span>
120120
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
121121
<span class="sd"> &gt;&gt;&gt; cols = [&#39;foo&#39;, &#39;bar&#39;]</span>
122122
<span class="sd"> &gt;&gt;&gt; vals = [[1,2], [3,4], [5,6]]</span>

docs/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '0.1.31',
3+
VERSION: '0.1.32',
44
LANGUAGE: 'en',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/_static/pygments.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
66
.highlight .hll { background-color: #ffffcc }
77
.highlight { background: #f8f8f8; }
88
.highlight .c { color: #3D7B7B; font-style: italic } /* Comment */
9-
.highlight .err { border: 1px solid #FF0000 } /* Error */
9+
.highlight .err { border: 1px solid #F00 } /* Error */
1010
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
11-
.highlight .o { color: #666666 } /* Operator */
11+
.highlight .o { color: #666 } /* Operator */
1212
.highlight .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
1313
.highlight .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
1414
.highlight .cp { color: #9C6500 } /* Comment.Preproc */
@@ -25,34 +25,34 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
2525
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
2626
.highlight .gs { font-weight: bold } /* Generic.Strong */
2727
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
28-
.highlight .gt { color: #0044DD } /* Generic.Traceback */
28+
.highlight .gt { color: #04D } /* Generic.Traceback */
2929
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
3030
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
3131
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
3232
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
3333
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
3434
.highlight .kt { color: #B00040 } /* Keyword.Type */
35-
.highlight .m { color: #666666 } /* Literal.Number */
35+
.highlight .m { color: #666 } /* Literal.Number */
3636
.highlight .s { color: #BA2121 } /* Literal.String */
3737
.highlight .na { color: #687822 } /* Name.Attribute */
3838
.highlight .nb { color: #008000 } /* Name.Builtin */
39-
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
40-
.highlight .no { color: #880000 } /* Name.Constant */
41-
.highlight .nd { color: #AA22FF } /* Name.Decorator */
39+
.highlight .nc { color: #00F; font-weight: bold } /* Name.Class */
40+
.highlight .no { color: #800 } /* Name.Constant */
41+
.highlight .nd { color: #A2F } /* Name.Decorator */
4242
.highlight .ni { color: #717171; font-weight: bold } /* Name.Entity */
4343
.highlight .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
44-
.highlight .nf { color: #0000FF } /* Name.Function */
44+
.highlight .nf { color: #00F } /* Name.Function */
4545
.highlight .nl { color: #767600 } /* Name.Label */
46-
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
46+
.highlight .nn { color: #00F; font-weight: bold } /* Name.Namespace */
4747
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
4848
.highlight .nv { color: #19177C } /* Name.Variable */
49-
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
50-
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
51-
.highlight .mb { color: #666666 } /* Literal.Number.Bin */
52-
.highlight .mf { color: #666666 } /* Literal.Number.Float */
53-
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
54-
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
55-
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
49+
.highlight .ow { color: #A2F; font-weight: bold } /* Operator.Word */
50+
.highlight .w { color: #BBB } /* Text.Whitespace */
51+
.highlight .mb { color: #666 } /* Literal.Number.Bin */
52+
.highlight .mf { color: #666 } /* Literal.Number.Float */
53+
.highlight .mh { color: #666 } /* Literal.Number.Hex */
54+
.highlight .mi { color: #666 } /* Literal.Number.Integer */
55+
.highlight .mo { color: #666 } /* Literal.Number.Oct */
5656
.highlight .sa { color: #BA2121 } /* Literal.String.Affix */
5757
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
5858
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
@@ -67,9 +67,9 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
6767
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
6868
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
6969
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
70-
.highlight .fm { color: #0000FF } /* Name.Function.Magic */
70+
.highlight .fm { color: #00F } /* Name.Function.Magic */
7171
.highlight .vc { color: #19177C } /* Name.Variable.Class */
7272
.highlight .vg { color: #19177C } /* Name.Variable.Global */
7373
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
7474
.highlight .vm { color: #19177C } /* Name.Variable.Magic */
75-
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
75+
.highlight .il { color: #666 } /* Literal.Number.Integer.Long */

docs/genindex.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<head>
66
<meta charset="utf-8" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Index &mdash; recode 0.1.31 documentation</title>
8+
<title>Index &mdash; recode 0.1.32 documentation</title>
99
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
1010
<link rel="stylesheet" type="text/css" href="_static/css/theme.css" />
1111
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -133,6 +133,8 @@ <h2 id="E">E</h2>
133133
</li>
134134
</ul></td>
135135
<td style="width: 33%; vertical-align: top;"><ul>
136+
<li><a href="module_docs/recode/audio.html#recode.audio.encode_wav_bytes">encode_wav_bytes() (in module recode.audio)</a>
137+
</li>
136138
<li><a href="module_docs/recode/audio.html#recode.audio.encode_wav_header_bytes">encode_wav_header_bytes() (in module recode.audio)</a>
137139
</li>
138140
<li><a href="module_docs/recode/audio.html#recode.audio.extract_wav_header_from_file">extract_wav_header_from_file() (in module recode.audio)</a>

docs/index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>Welcome to recode’s documentation! &mdash; recode 0.1.31 documentation</title>
9+
<title>Welcome to recode’s documentation! &mdash; recode 0.1.32 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
1111
<link rel="stylesheet" type="text/css" href="_static/css/theme.css" />
1212
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
@@ -89,6 +89,7 @@ <h1>Welcome to recode’s documentation!<a class="headerlink" href="#welcome-to-
8989
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.decode_wav_bytes"><code class="docutils literal notranslate"><span class="pre">decode_wav_bytes()</span></code></a></li>
9090
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.decode_wav_header_bytes"><code class="docutils literal notranslate"><span class="pre">decode_wav_header_bytes()</span></code></a></li>
9191
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.encode_pcm_bytes"><code class="docutils literal notranslate"><span class="pre">encode_pcm_bytes()</span></code></a></li>
92+
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.encode_wav_bytes"><code class="docutils literal notranslate"><span class="pre">encode_wav_bytes()</span></code></a></li>
9293
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.encode_wav_header_bytes"><code class="docutils literal notranslate"><span class="pre">encode_wav_header_bytes()</span></code></a></li>
9394
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.extract_wav_header_from_file"><code class="docutils literal notranslate"><span class="pre">extract_wav_header_from_file()</span></code></a></li>
9495
<li class="toctree-l2"><a class="reference internal" href="module_docs/recode/audio.html#recode.audio.header_size_of_wav_bytes"><code class="docutils literal notranslate"><span class="pre">header_size_of_wav_bytes()</span></code></a></li>
@@ -129,8 +130,8 @@ <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Pe
129130
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
130131
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
131132
</ul>
132-
<p>Release: 0.1.31</p>
133-
<p>Last change: Nov 12, 2024</p>
133+
<p>Release: 0.1.32</p>
134+
<p>Last change: Apr 23, 2025</p>
134135
</section>
135136

136137

docs/module_docs/recode.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
77

88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<title>recode &mdash; recode 0.1.31 documentation</title>
9+
<title>recode &mdash; recode 0.1.32 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
1111
<link rel="stylesheet" type="text/css" href="../_static/css/theme.css" />
1212
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css" />
@@ -84,7 +84,7 @@
8484
<p>Make codecs for fixed size structured chunks serialization and deserialization of
8585
sequences, tabular data, and time-series.</p>
8686
<p>The easiest and bigest bang for your buck is <code class="docutils literal notranslate"><span class="pre">mk_codec</span></code></p>
87-
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">recode</span> <span class="kn">import</span> <span class="n">mk_codec</span>
87+
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span><span class="w"> </span><span class="nn">recode</span><span class="w"> </span><span class="kn">import</span> <span class="n">mk_codec</span>
8888
<span class="gp">&gt;&gt;&gt; </span><span class="n">encoder</span><span class="p">,</span> <span class="n">decoder</span> <span class="o">=</span> <span class="n">mk_codec</span><span class="p">()</span>
8989
</pre></div>
9090
</div>

0 commit comments

Comments
 (0)