pyrekordbox 0.2.0__py3-none-any.whl → 0.2.2__py3-none-any.whl
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.
- docs/Makefile +20 -0
- docs/make.bat +35 -0
- docs/source/_static/images/anlz_beat.svg +53 -0
- docs/source/_static/images/anlz_file.svg +204 -0
- docs/source/_static/images/anlz_pco2.svg +138 -0
- docs/source/_static/images/anlz_pcob.svg +148 -0
- docs/source/_static/images/anlz_pcp2.svg +398 -0
- docs/source/_static/images/anlz_pcpt.svg +263 -0
- docs/source/_static/images/anlz_ppth.svg +123 -0
- docs/source/_static/images/anlz_pqt2.svg +324 -0
- docs/source/_static/images/anlz_pqt2_2.svg +253 -0
- docs/source/_static/images/anlz_pqtz.svg +140 -0
- docs/source/_static/images/anlz_pssi.svg +192 -0
- docs/source/_static/images/anlz_pssi_entry.svg +191 -0
- docs/source/_static/images/anlz_pvbr.svg +125 -0
- docs/source/_static/images/anlz_pwav.svg +130 -0
- docs/source/_static/images/anlz_pwv3.svg +139 -0
- docs/source/_static/images/anlz_pwv4.svg +139 -0
- docs/source/_static/images/anlz_pwv5.svg +139 -0
- docs/source/_static/images/anlz_pwv5_entry.svg +100 -0
- docs/source/_static/images/anlz_pwv6.svg +130 -0
- docs/source/_static/images/anlz_pwv7.svg +139 -0
- docs/source/_static/images/anlz_pwvc.svg +125 -0
- docs/source/_static/images/anlz_tag.svg +110 -0
- docs/source/_static/logos/dark/logo_primary.svg +75 -0
- docs/source/_static/logos/light/logo_primary.svg +75 -0
- docs/source/_static/logos/mid/logo_primary.svg +75 -0
- docs/source/_templates/apidoc/module.rst_t +8 -0
- docs/source/_templates/apidoc/package.rst_t +57 -0
- docs/source/_templates/apidoc/toc.rst_t +7 -0
- docs/source/_templates/autosummary/class.rst +32 -0
- docs/source/_templates/autosummary/module.rst +55 -0
- docs/source/api.md +18 -0
- docs/source/conf.py +178 -0
- docs/source/development/changes.md +3 -0
- docs/source/development/contributing.md +3 -0
- docs/source/formats/anlz.md +634 -0
- docs/source/formats/db6.md +1233 -0
- docs/source/formats/mysetting.md +392 -0
- docs/source/formats/xml.md +376 -0
- docs/source/index.md +105 -0
- docs/source/installation.md +3 -0
- docs/source/quickstart.md +185 -0
- docs/source/requirements.txt +7 -0
- docs/source/tutorial/anlz.md +7 -0
- docs/source/tutorial/configuration.md +66 -0
- docs/source/tutorial/db6.md +179 -0
- docs/source/tutorial/index.md +20 -0
- docs/source/tutorial/mysetting.md +124 -0
- docs/source/tutorial/xml.md +140 -0
- pyrekordbox/__init__.py +1 -1
- pyrekordbox/__main__.py +16 -37
- pyrekordbox/_version.py +2 -2
- pyrekordbox/anlz/file.py +39 -0
- pyrekordbox/anlz/structs.py +3 -5
- pyrekordbox/config.py +71 -27
- pyrekordbox/db6/database.py +290 -61
- pyrekordbox/db6/registry.py +24 -0
- pyrekordbox/db6/tables.py +501 -340
- pyrekordbox/mysettings/file.py +0 -25
- pyrekordbox/utils.py +1 -1
- {pyrekordbox-0.2.0.dist-info → pyrekordbox-0.2.2.dist-info}/METADATA +42 -20
- pyrekordbox-0.2.2.dist-info/RECORD +80 -0
- {pyrekordbox-0.2.0.dist-info → pyrekordbox-0.2.2.dist-info}/top_level.txt +1 -0
- tests/test_config.py +175 -0
- tests/test_db6.py +95 -0
- pyrekordbox-0.2.0.dist-info/RECORD +0 -29
- {pyrekordbox-0.2.0.dist-info → pyrekordbox-0.2.2.dist-info}/LICENSE +0 -0
- {pyrekordbox-0.2.0.dist-info → pyrekordbox-0.2.2.dist-info}/WHEEL +0 -0
docs/source/conf.py
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
# Configuration file for the Sphinx documentation builder.
|
2
|
+
#
|
3
|
+
# This file only contains a selection of the most common options. For a full
|
4
|
+
# list see the documentation:
|
5
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
6
|
+
|
7
|
+
# -- Path setup --------------------------------------------------------------
|
8
|
+
|
9
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
10
|
+
# add these directories to sys.path here. If the directory is relative to the
|
11
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
12
|
+
#
|
13
|
+
import os
|
14
|
+
import sys
|
15
|
+
|
16
|
+
sys.path.insert(0, os.path.abspath("../.."))
|
17
|
+
|
18
|
+
import pyrekordbox
|
19
|
+
|
20
|
+
|
21
|
+
# -- Project information -----------------------------------------------------
|
22
|
+
|
23
|
+
project = "pyrekordbox"
|
24
|
+
copyright = "2022-2023, Dylan Jones"
|
25
|
+
author = "Dylan L. Jones"
|
26
|
+
release = pyrekordbox.__version__
|
27
|
+
version = release
|
28
|
+
for sp in "abcfr":
|
29
|
+
version = version.split(sp)[0]
|
30
|
+
|
31
|
+
# -- General configuration ---------------------------------------------------
|
32
|
+
|
33
|
+
# If your documentation needs a minimal Sphinx version, state it here.
|
34
|
+
needs_sphinx = "4.4"
|
35
|
+
|
36
|
+
# Add any Sphinx extension module names here, as strings. They can be
|
37
|
+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
38
|
+
# ones.
|
39
|
+
extensions = [
|
40
|
+
"sphinx.ext.autodoc",
|
41
|
+
"numpydoc",
|
42
|
+
"myst_parser",
|
43
|
+
"numpydoc",
|
44
|
+
"sphinx_copybutton",
|
45
|
+
"sphinx.ext.napoleon",
|
46
|
+
"sphinx.ext.autosummary",
|
47
|
+
"sphinx.ext.autosectionlabel",
|
48
|
+
"matplotlib.sphinxext.plot_directive",
|
49
|
+
"sphinx.ext.intersphinx", # links to numpy, scipy ... docs
|
50
|
+
"sphinx.ext.coverage",
|
51
|
+
"sphinx.ext.extlinks", # define roles for links
|
52
|
+
"sphinx.ext.viewcode",
|
53
|
+
]
|
54
|
+
|
55
|
+
# If you need extensions of a certain version or higher, list them here.
|
56
|
+
needs_extensions = {"myst_parser": "0.13.7"}
|
57
|
+
|
58
|
+
# Add any paths that contain templates here, relative to this directory.
|
59
|
+
templates_path = ["_templates"]
|
60
|
+
|
61
|
+
# List of patterns, relative to source directory, that match files and
|
62
|
+
# directories to ignore when looking for source files.
|
63
|
+
# This pattern also affects html_static_path and html_extra_path.
|
64
|
+
|
65
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "tests"]
|
66
|
+
|
67
|
+
# The suffix(es) of source filenames.
|
68
|
+
# You can specify multiple suffix as a list of string:
|
69
|
+
source_suffix = [".rst", ".md"]
|
70
|
+
|
71
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
72
|
+
# relative to this directory. They are copied after the builtin static files,
|
73
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
74
|
+
html_static_path = ["_static"]
|
75
|
+
|
76
|
+
html_theme_options = {
|
77
|
+
"light_logo": "logos/dark/logo_primary.svg",
|
78
|
+
"dark_logo": "logos/light/logo_primary.svg",
|
79
|
+
"sidebar_hide_name": True,
|
80
|
+
"footer_icons": [
|
81
|
+
{
|
82
|
+
"name": "GitHub",
|
83
|
+
"url": "https://github.com/dylanljones/pyrekordbox",
|
84
|
+
"html": """
|
85
|
+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
|
86
|
+
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
|
87
|
+
</svg>
|
88
|
+
""",
|
89
|
+
"class": "",
|
90
|
+
},
|
91
|
+
],
|
92
|
+
}
|
93
|
+
|
94
|
+
# html_title = f"{release} documentation"
|
95
|
+
|
96
|
+
# -- Options for HTML output -------------------------------------------------
|
97
|
+
|
98
|
+
# The theme to use for HTML and HTML Help pages. See the documentation for
|
99
|
+
# a list of builtin themes.
|
100
|
+
html_theme = "furo"
|
101
|
+
|
102
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
103
|
+
# pygments_style = "sphinx"
|
104
|
+
# pygments_dark_style = "monokai"
|
105
|
+
|
106
|
+
# We need headers to be linkable to so ask MyST-Parser to autogenerate anchor IDs for
|
107
|
+
# headers up to and including level 3.
|
108
|
+
myst_heading_anchors = 3
|
109
|
+
|
110
|
+
# Prettier support formatting some MyST syntax but not all, so let's disable the
|
111
|
+
# unsupported yet still enabled by default ones.
|
112
|
+
myst_disable_syntax = [
|
113
|
+
"colon_fence",
|
114
|
+
"myst_block_break",
|
115
|
+
"myst_line_comment",
|
116
|
+
"math_block",
|
117
|
+
]
|
118
|
+
|
119
|
+
|
120
|
+
# Don't show type hints
|
121
|
+
autodoc_typehints = "none"
|
122
|
+
|
123
|
+
# Preserve order
|
124
|
+
autodoc_member_order = "bysource"
|
125
|
+
|
126
|
+
|
127
|
+
# -- Apidoc ------------------------------------------------------------------
|
128
|
+
|
129
|
+
add_module_names = True
|
130
|
+
|
131
|
+
|
132
|
+
# -- Autosummary -------------------------------------------------------------
|
133
|
+
|
134
|
+
autosummary_generate = True
|
135
|
+
# autosummary_imported_members = True
|
136
|
+
|
137
|
+
|
138
|
+
# -- Numpy extension ---------------------------------------------------------
|
139
|
+
|
140
|
+
numpydoc_use_plots = True
|
141
|
+
# numpydoc_xref_param_type = True
|
142
|
+
# numpydoc_xref_ignore = "all" # not working...
|
143
|
+
numpydoc_show_class_members = False
|
144
|
+
|
145
|
+
|
146
|
+
# -- Intersphinx -------------------------------------------------------------
|
147
|
+
|
148
|
+
# taken from https://gist.github.com/bskinn/0e164963428d4b51017cebdb6cda5209
|
149
|
+
intersphinx_mapping = {
|
150
|
+
"python": (r"https://docs.python.org", None),
|
151
|
+
"numpy": (r"https://docs.scipy.org/doc/numpy/", None),
|
152
|
+
"np": (r"https://docs.scipy.org/doc/numpy/", None),
|
153
|
+
"matplotlib": (r"https://matplotlib.org/", None),
|
154
|
+
"<name>": ("https://docs.python.org/3/", None),
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
# -- Auto-run sphinx-apidoc --------------------------------------------------
|
159
|
+
|
160
|
+
|
161
|
+
def run_apidoc(_):
|
162
|
+
from sphinx.ext.apidoc import main
|
163
|
+
import os
|
164
|
+
import sys
|
165
|
+
|
166
|
+
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
|
167
|
+
cur_dir = os.path.abspath(os.path.dirname(__file__))
|
168
|
+
proj_dir = os.path.dirname(os.path.dirname(cur_dir))
|
169
|
+
doc_dir = os.path.join(proj_dir, "docs")
|
170
|
+
output_path = os.path.join(doc_dir, "source", "generated")
|
171
|
+
module = os.path.join(proj_dir, "pyrekordbox")
|
172
|
+
exclude = os.path.join(module, "tests")
|
173
|
+
template_dir = os.path.join(doc_dir, "source", "_templates", "apidoc")
|
174
|
+
main(["-fMeT", "-o", output_path, module, exclude, "--templatedir", template_dir])
|
175
|
+
|
176
|
+
|
177
|
+
def setup(app):
|
178
|
+
app.connect("builder-inited", run_apidoc)
|