totolo 0.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.
Files changed (38) hide show
  1. totolo-0.1/.gitignore +159 -0
  2. totolo-0.1/.vscode/launch.json +31 -0
  3. totolo-0.1/.vscode/settings.json +12 -0
  4. totolo-0.1/LICENSE +21 -0
  5. totolo-0.1/PKG-INFO +16 -0
  6. totolo-0.1/README.md +4 -0
  7. totolo-0.1/pyproject.toml +16 -0
  8. totolo-0.1/requirements-dev.txt +3 -0
  9. totolo-0.1/tests/__init__.py +0 -0
  10. totolo-0.1/tests/data/cycles1.th.txt +5 -0
  11. totolo-0.1/tests/data/cycles2.th.txt +9 -0
  12. totolo-0.1/tests/data/cycles3.th.txt +14 -0
  13. totolo-0.1/tests/data/film-timeout-top100.st.txt +3801 -0
  14. totolo-0.1/tests/data/sample-2023.07.23/notes/collections/scifi-collections.st.txt +1620 -0
  15. totolo-0.1/tests/data/sample-2023.07.23/notes/stories/film/film-scifi-1920s.st.txt +617 -0
  16. totolo-0.1/tests/data/sample-2023.07.23/notes/stories/film/film-scifi-1930s.st.txt +1067 -0
  17. totolo-0.1/tests/data/sample-2023.07.23/notes/themes/primary.th.txt +44151 -0
  18. totolo-0.1/tests/data/sample-2023.07.23/notes/themes/timeperiod.th.txt +573 -0
  19. totolo-0.1/tests/data/storytree.st.txt +63 -0
  20. totolo-0.1/tests/data/to-2023.07.09.th.txt +44152 -0
  21. totolo-0.1/tests/data/to-sample-2023.07.09.st.txt +54 -0
  22. totolo-0.1/tests/test_core.py +25 -0
  23. totolo-0.1/tests/test_entry.py +7 -0
  24. totolo-0.1/tests/test_totolo.py +186 -0
  25. totolo-0.1/totolo/__init__.py +15 -0
  26. totolo-0.1/totolo/api.py +42 -0
  27. totolo-0.1/totolo/impl/__init__.py +0 -0
  28. totolo-0.1/totolo/impl/core.py +92 -0
  29. totolo-0.1/totolo/impl/entry.py +120 -0
  30. totolo-0.1/totolo/impl/field.py +109 -0
  31. totolo-0.1/totolo/impl/keyword.py +14 -0
  32. totolo-0.1/totolo/impl/parser.py +230 -0
  33. totolo-0.1/totolo/lib/__init__.py +0 -0
  34. totolo-0.1/totolo/lib/files.py +38 -0
  35. totolo-0.1/totolo/lib/textformat.py +47 -0
  36. totolo-0.1/totolo/story.py +128 -0
  37. totolo-0.1/totolo/theme.py +71 -0
  38. totolo-0.1/totolo/themeontology.py +179 -0
totolo-0.1/.gitignore ADDED
@@ -0,0 +1,159 @@
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
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ share/python-wheels/
23
+ *.egg-info/
24
+ .installed.cfg
25
+ *.egg
26
+ MANIFEST
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .nox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ *.py,cover
49
+ .hypothesis/
50
+ .pytest_cache/
51
+ cover/
52
+
53
+ # Translations
54
+ *.mo
55
+ *.pot
56
+
57
+ # Django stuff:
58
+ *.log
59
+ local_settings.py
60
+ db.sqlite3
61
+ db.sqlite3-journal
62
+
63
+ # Flask stuff:
64
+ instance/
65
+ .webassets-cache
66
+
67
+ # Scrapy stuff:
68
+ .scrapy
69
+
70
+ # Sphinx documentation
71
+ docs/_build/
72
+
73
+ # PyBuilder
74
+ .pybuilder/
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ # For a library or package, you might want to ignore these files since the code is
86
+ # intended to run in multiple environments; otherwise, check them in:
87
+ # .python-version
88
+
89
+ # pipenv
90
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
92
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
93
+ # install all needed dependencies.
94
+ #Pipfile.lock
95
+
96
+ # poetry
97
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
98
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
99
+ # commonly ignored for libraries.
100
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
101
+ #poetry.lock
102
+
103
+ # pdm
104
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
105
+ #pdm.lock
106
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
107
+ # in version control.
108
+ # https://pdm.fming.dev/#use-with-ide
109
+ .pdm.toml
110
+
111
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
112
+ __pypackages__/
113
+
114
+ # Celery stuff
115
+ celerybeat-schedule
116
+ celerybeat.pid
117
+
118
+ # SageMath parsed files
119
+ *.sage.py
120
+
121
+ # Environments
122
+ .env
123
+ .venv
124
+ env/
125
+ venv/
126
+ ENV/
127
+ env.bak/
128
+ venv.bak/
129
+
130
+ # Spyder project settings
131
+ .spyderproject
132
+ .spyproject
133
+
134
+ # Rope project settings
135
+ .ropeproject
136
+
137
+ # mkdocs documentation
138
+ /site
139
+
140
+ # mypy
141
+ .mypy_cache/
142
+ .dmypy.json
143
+ dmypy.json
144
+
145
+ # Pyre type checker
146
+ .pyre/
147
+
148
+ # pytype static type analyzer
149
+ .pytype/
150
+
151
+ # Cython debug symbols
152
+ cython_debug/
153
+
154
+ # PyCharm
155
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
156
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
157
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
158
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
159
+ #.idea/
@@ -0,0 +1,31 @@
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "name": "Python: Current File",
9
+ "type": "python",
10
+ "request": "launch",
11
+ "program": "${file}",
12
+ "console": "integratedTerminal",
13
+ "justMyCode": true,
14
+ },
15
+ {
16
+ "name": "Python: Debug Tests",
17
+ "type": "python",
18
+ "request": "launch",
19
+ "program": "${file}",
20
+ "purpose": [
21
+ "debug-test"
22
+ ],
23
+ "console": "integratedTerminal",
24
+ "justMyCode": false,
25
+ "args": [
26
+ "-c",
27
+ "pytest.ini"
28
+ ],
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ ".",
4
+ "-s"
5
+ ],
6
+ "[python]": {
7
+ "editor.formatOnSave": true,
8
+ "editor.defaultFormatter": "ms-python.autopep8",
9
+ },
10
+ "python.testing.unittestEnabled": false,
11
+ "python.testing.pytestEnabled": true,
12
+ }
totolo-0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Theme Ontology
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.
totolo-0.1/PKG-INFO ADDED
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.1
2
+ Name: totolo
3
+ Version: 0.1
4
+ Summary: The Python interface to themeontology.org.
5
+ Author-email: Mikael Onsjö <mikael@odinlake.net>
6
+ Description-Content-Type: text/markdown
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Project-URL: Documentation, https://github.com/theme-ontology/theming
9
+ Project-URL: Home, https://www.themeontology.org/
10
+ Project-URL: Source, https://github.com/theme-ontology/python-totolo
11
+
12
+ # python totolo
13
+
14
+ This repository contains a Python package, totolo,
15
+ for working with data from [the theme repository](https://github.com/theme-ontology/theming/).
16
+
totolo-0.1/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # python totolo
2
+
3
+ This repository contains a Python package, totolo,
4
+ for working with data from [the theme repository](https://github.com/theme-ontology/theming/).
@@ -0,0 +1,16 @@
1
+ [build-system]
2
+ requires = ["flit_core >=3.2,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "totolo"
7
+ authors = [{name = "Mikael Onsjö", email = "mikael@odinlake.net"}]
8
+ readme = "README.md"
9
+ license = {file = "LICENSE"}
10
+ classifiers = ["License :: OSI Approved :: MIT License"]
11
+ dynamic = ["version", "description"]
12
+
13
+ [project.urls]
14
+ Home = "https://www.themeontology.org/"
15
+ Documentation = "https://github.com/theme-ontology/theming"
16
+ Source = "https://github.com/theme-ontology/python-totolo"
@@ -0,0 +1,3 @@
1
+ pytest
2
+ pandas
3
+ flit
File without changes
@@ -0,0 +1,5 @@
1
+
2
+ AAA
3
+ ===
4
+ :: Parents
5
+ AAA
@@ -0,0 +1,9 @@
1
+ AAA
2
+ ===
3
+ :: Parents
4
+ BBB
5
+
6
+ BBB
7
+ ===
8
+ :: Parents
9
+ AAA
@@ -0,0 +1,14 @@
1
+ AAA
2
+ ===
3
+ :: Parents
4
+ BBB
5
+
6
+ BBB
7
+ ===
8
+ :: Parents
9
+ CCC
10
+
11
+ CCC
12
+ ===
13
+ :: Parents
14
+ AAA