olx-utils 0.6.0__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.
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.4
2
+ Name: olx-utils
3
+ Version: 0.6.0
4
+ Summary: Utilities for edX OLX courses
5
+ Home-page: https://github.com/cleura/olx-utils
6
+ License: AGPL-3.0-only
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Education
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Classifier: Programming Language :: Python :: 3.13
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Classifier: Topic :: Education :: Computer Aided Instruction (CAI)
15
+ Classifier: Topic :: Education
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: Mako>=1.0.3
19
+ Requires-Dist: markdown2>=2.3.0
20
+ Requires-Dist: Pygments>=2.0.1
21
+ Requires-Dist: python-swiftclient>=2.2.0
22
+ Requires-Dist: requests
23
+ Requires-Dist: xmltodict
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license
29
+ Dynamic: license-file
30
+ Dynamic: requires-dist
31
+ Dynamic: summary
32
+
33
+ This repository was previously hosted under the `hastexo` GitHub organization, and moved to `cleura` in December 2025 as part of a routine repository consolidation.
34
+
35
+ # OLX Utilities
36
+
37
+ A set of tools to facilitate courseware development using the [Open Learning XML](http://edx.readthedocs.io/projects/edx-open-learning-xml/en/latest/) (OLX) format.
38
+
39
+ OLX is sometimes tediously repetitive, and this package enables courseware authors to apply the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle when writing OLX content.
40
+ It allows you to create templates (using [Mako](http://www.makotemplates.org/)), which in turn enable you to
41
+
42
+ - define OLX fragments only once, to reuse them as often as you want (this comes in very handy in using the [stackamole XBlock](https://github.com/cleura/stackamole-xblock)),
43
+ - write courseware content in [Markdown](https://en.wikipedia.org/wiki/Markdown),
44
+ - do anything else you would like to do using your own plugins.
45
+
46
+ ## Install
47
+
48
+ Install the `olx-utils` package from PyPI:
49
+
50
+ ```bash
51
+ pip install olx-utils
52
+ ```
53
+
54
+ ## Apply templates to a course
55
+
56
+ In order to create a new course run named `newrun`, starting on May 1, 2026 and ending on October 31, 2027, change into your courseware checkout and run:
57
+
58
+ ```bash
59
+ olx new-run -b newrun 2026-05-01 2027-10-31
60
+ ```
61
+
62
+ The `-b` option causes your rendered OLX to be added to a new Git branch named `run/newrun`, which you can then import into your Open edX content store.
63
+
64
+ You can also invoke `olx new-run` as `new_run.py`.
65
+ However, this is deprecated and its use is discouraged.
66
+ `new_run.py` will go away in a future release.
67
+
68
+ ## License
69
+
70
+ This package is licensed under the [GNU Affero GPL](https://tldrlegal.com/l/agpl3); see [LICENSE](https://www.gnu.org/licenses/agpl-3.0.txt) for details.
@@ -0,0 +1,16 @@
1
+ olx_utils-0.6.0.dist-info/licenses/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
2
+ olxutils/__init__.py,sha256=6bhY4XEd3kItvdhqPjfcSt8tNzsip1KFcgeEtqzl_VU,330
3
+ olxutils/__main__.py,sha256=qWDP1RpVcgIOHnLCLIUG1LAhh-Q6akPKKqhrPoTT1pY,148
4
+ olxutils/archive.py,sha256=cFzHekjCB28MTGufTWbzvxlgGW8dxb6PymStCVBcPaw,2949
5
+ olxutils/cli.py,sha256=Q0MGEQvkiS2dPuQFQ7JZ0kXfPR6vDzozM022NW7-9m4,18654
6
+ olxutils/git.py,sha256=NOVmSIL3jxgjTotEJ0mXZ9RAUiypWcMjULI60NasHCU,2624
7
+ olxutils/helpers.py,sha256=Nzeje_ihspsK1qxEasnNuKfPua-Jun6_j3ycjrS-3Mo,1936
8
+ olxutils/templates.py,sha256=aZf0I68HSOGCocb0Cf8u-iHl2jM1oNqwVzjLHXJ-Yuw,3314
9
+ olxutils/token.py,sha256=IhXM2bRdxtSarjli-2pM4eAjrqisYhCTmDMxlaO-G6g,1245
10
+ olxutils/upload.py,sha256=5TQz1XtH6-1-JKYgnhLUT__G65D0OonbSoOCtbfsJtg,5067
11
+ olxutils/templates/olx_partials.xml,sha256=dARuMgySqDmgXj2WC0bsUHe7T_w_B2su6BiXZEAZavw,2624
12
+ olx_utils-0.6.0.dist-info/METADATA,sha256=jIarJwHVrE5qMjeXpdTH5zRhg7hfhLspPSqESjFNpPg,2798
13
+ olx_utils-0.6.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
14
+ olx_utils-0.6.0.dist-info/entry_points.txt,sha256=B2DUxGFGcuGcroKS1GFIgo4GXYQsT1I3Tz3ZgYQg69o,105
15
+ olx_utils-0.6.0.dist-info/top_level.txt,sha256=2uUv6-m3GIIJoYGz2hy_Vp156Se7Zt5Ur-vcDd8-R6U,9
16
+ olx_utils-0.6.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ new_run.py = olxutils.cli:main
3
+ olx = olxutils.cli:main
4
+ olx-new-run = olxutils.cli:main