jwlib 1.0.0b1__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.
- jwlib-1.0.0b1/.editorconfig +21 -0
- jwlib-1.0.0b1/.github/ISSUE_TEMPLATE.md +15 -0
- jwlib-1.0.0b1/.github/workflows/build.yml +63 -0
- jwlib-1.0.0b1/.github/workflows/test.yml +49 -0
- jwlib-1.0.0b1/.gitignore +160 -0
- jwlib-1.0.0b1/.readthedocs.yaml +31 -0
- jwlib-1.0.0b1/HISTORY.rst +17 -0
- jwlib-1.0.0b1/LICENSE +674 -0
- jwlib-1.0.0b1/MANIFEST.in +8 -0
- jwlib-1.0.0b1/PKG-INFO +129 -0
- jwlib-1.0.0b1/README.rst +106 -0
- jwlib-1.0.0b1/docs/conf.py +58 -0
- jwlib-1.0.0b1/docs/history.rst +1 -0
- jwlib-1.0.0b1/docs/index.rst +10 -0
- jwlib-1.0.0b1/docs/jwlib.media.const.rst +8 -0
- jwlib-1.0.0b1/docs/jwlib.media.imagetable.rst +5 -0
- jwlib-1.0.0b1/docs/jwlib.media.rst +11 -0
- jwlib-1.0.0b1/docs/jwlib.pub.rst +8 -0
- jwlib-1.0.0b1/docs/jwlib.rst +11 -0
- jwlib-1.0.0b1/docs/jwlib.search.rst +8 -0
- jwlib-1.0.0b1/docs/jwlib.weblang.rst +8 -0
- jwlib-1.0.0b1/docs/logging.rst +5 -0
- jwlib-1.0.0b1/docs/requirements.txt +63 -0
- jwlib-1.0.0b1/hatch.toml +96 -0
- jwlib-1.0.0b1/pyproject.toml +42 -0
- jwlib-1.0.0b1/src/jwlib/__init__.py +2 -0
- jwlib-1.0.0b1/src/jwlib/common.py +85 -0
- jwlib-1.0.0b1/src/jwlib/media/__init__.py +34 -0
- jwlib-1.0.0b1/src/jwlib/media/const.py +143 -0
- jwlib-1.0.0b1/src/jwlib/media/endpoints.py +120 -0
- jwlib-1.0.0b1/src/jwlib/media/imagetable.py +210 -0
- jwlib-1.0.0b1/src/jwlib/media/language.py +65 -0
- jwlib-1.0.0b1/src/jwlib/media/session.py +631 -0
- jwlib-1.0.0b1/src/jwlib/pub.py +375 -0
- jwlib-1.0.0b1/src/jwlib/py.typed +0 -0
- jwlib-1.0.0b1/src/jwlib/search.py +141 -0
- jwlib-1.0.0b1/src/jwlib/weblang.py +58 -0
- jwlib-1.0.0b1/tests/cassettes/test_media/cassette.yaml +84556 -0
- jwlib-1.0.0b1/tests/conftest.py +13 -0
- jwlib-1.0.0b1/tests/test_media.py +268 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# http://editorconfig.org
|
|
2
|
+
|
|
3
|
+
root = true
|
|
4
|
+
|
|
5
|
+
[*]
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 4
|
|
8
|
+
trim_trailing_whitespace = true
|
|
9
|
+
insert_final_newline = true
|
|
10
|
+
charset = utf-8
|
|
11
|
+
end_of_line = lf
|
|
12
|
+
|
|
13
|
+
[*.bat]
|
|
14
|
+
indent_style = tab
|
|
15
|
+
end_of_line = crlf
|
|
16
|
+
|
|
17
|
+
[LICENSE]
|
|
18
|
+
insert_final_newline = false
|
|
19
|
+
|
|
20
|
+
[Makefile]
|
|
21
|
+
indent_style = tab
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
* JW scripts version:
|
|
2
|
+
* Python version:
|
|
3
|
+
* Operating System:
|
|
4
|
+
|
|
5
|
+
### Description
|
|
6
|
+
|
|
7
|
+
Describe what you were trying to get done.
|
|
8
|
+
Tell us what happened, what went wrong, and what you expected to happen.
|
|
9
|
+
|
|
10
|
+
### What I Did
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
Paste the command(s) you ran and the output.
|
|
14
|
+
If there was a crash, please include the traceback here.
|
|
15
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- master
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: build-${{ github.head_ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
defaults:
|
|
18
|
+
run:
|
|
19
|
+
shell: bash
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
|
|
23
|
+
pure-python-wheel-and-sdist:
|
|
24
|
+
name: Build a pure Python wheel and source distribution
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v3
|
|
29
|
+
|
|
30
|
+
- name: Install build dependencies
|
|
31
|
+
run: python -m pip install --upgrade build
|
|
32
|
+
|
|
33
|
+
- name: Build
|
|
34
|
+
run: python -m build
|
|
35
|
+
|
|
36
|
+
- uses: actions/upload-artifact@v3
|
|
37
|
+
with:
|
|
38
|
+
name: artifacts
|
|
39
|
+
path: dist/*
|
|
40
|
+
if-no-files-found: error
|
|
41
|
+
|
|
42
|
+
publish:
|
|
43
|
+
name: Publish release
|
|
44
|
+
needs:
|
|
45
|
+
- pure-python-wheel-and-sdist
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
# Specifying a GitHub environment is optional, but strongly encouraged
|
|
48
|
+
environment: release
|
|
49
|
+
permissions:
|
|
50
|
+
# IMPORTANT: this permission is mandatory for trusted publishing
|
|
51
|
+
id-token: write
|
|
52
|
+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/download-artifact@v3
|
|
56
|
+
with:
|
|
57
|
+
name: artifacts
|
|
58
|
+
path: dist
|
|
59
|
+
|
|
60
|
+
- name: Push build artifacts to PyPI
|
|
61
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
62
|
+
with:
|
|
63
|
+
skip_existing: true
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- master
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: test-${{ github.head_ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
env:
|
|
16
|
+
PYTHONUNBUFFERED: "1"
|
|
17
|
+
FORCE_COLOR: "1"
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
run:
|
|
21
|
+
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
|
|
22
|
+
runs-on: ${{ matrix.os }}
|
|
23
|
+
strategy:
|
|
24
|
+
fail-fast: false
|
|
25
|
+
matrix:
|
|
26
|
+
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
27
|
+
python-version: ['3.8', '3.9', '3.10', '3.11']
|
|
28
|
+
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v3
|
|
31
|
+
|
|
32
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
33
|
+
uses: actions/setup-python@v4
|
|
34
|
+
with:
|
|
35
|
+
python-version: ${{ matrix.python-version }}
|
|
36
|
+
|
|
37
|
+
- name: Install Hatch
|
|
38
|
+
run: pip install --upgrade hatch
|
|
39
|
+
|
|
40
|
+
# - if: matrix.python-version == '3.8' && runner.os == 'Linux'
|
|
41
|
+
# name: Lint
|
|
42
|
+
# run: hatch fmt --check
|
|
43
|
+
|
|
44
|
+
- name: Run tests
|
|
45
|
+
run: hatch test
|
|
46
|
+
|
|
47
|
+
# TODO coverage
|
|
48
|
+
# TODO type checking
|
|
49
|
+
# TODO linting
|
jwlib-1.0.0b1/.gitignore
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
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
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
.idea/
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# .readthedocs.yaml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
# Set the version of Python and other tools you might need
|
|
9
|
+
build:
|
|
10
|
+
os: ubuntu-24.04
|
|
11
|
+
tools:
|
|
12
|
+
python: "3.10"
|
|
13
|
+
# You can also specify other tool versions:
|
|
14
|
+
# nodejs: "16"
|
|
15
|
+
# rust: "1.55"
|
|
16
|
+
# golang: "1.17"
|
|
17
|
+
|
|
18
|
+
# Build documentation in the docs/ directory with Sphinx
|
|
19
|
+
sphinx:
|
|
20
|
+
configuration: docs/conf.py
|
|
21
|
+
|
|
22
|
+
# If using Sphinx, optionally build your docs in additional formats such as PDF
|
|
23
|
+
# formats:
|
|
24
|
+
# - pdf
|
|
25
|
+
|
|
26
|
+
# Optionally declare the Python requirements required to build your docs
|
|
27
|
+
python:
|
|
28
|
+
install:
|
|
29
|
+
- requirements: docs/requirements.txt
|
|
30
|
+
- method: pip
|
|
31
|
+
path: .
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
=======
|
|
2
|
+
History
|
|
3
|
+
=======
|
|
4
|
+
|
|
5
|
+
Unreleased_
|
|
6
|
+
===========
|
|
7
|
+
|
|
8
|
+
1.0.0-beta1_ (2024-11-02)
|
|
9
|
+
=========================
|
|
10
|
+
|
|
11
|
+
Added
|
|
12
|
+
-----
|
|
13
|
+
|
|
14
|
+
- First release on PyPI.
|
|
15
|
+
|
|
16
|
+
.. _Unreleased: https://github.com/allejok96/jwlib/compare/v1.0.0...HEAD
|
|
17
|
+
.. _1.0.0-beta1: https://github.com/allejok96/jw-scripts/releases/tag/v1.0.0-beta1
|