streamlit-octostar-utils 0.4.0a2__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 (43) hide show
  1. streamlit_octostar_utils-0.4.0a2/LICENSE +21 -0
  2. streamlit_octostar_utils-0.4.0a2/PKG-INFO +66 -0
  3. streamlit_octostar_utils-0.4.0a2/README.md +23 -0
  4. streamlit_octostar_utils-0.4.0a2/pyproject.toml +67 -0
  5. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/__init__.py +1 -0
  6. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/__init__.py +1 -0
  7. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/celery.py +774 -0
  8. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/fastapi.py +396 -0
  9. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/nifi.py +1228 -0
  10. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parallelism.py +815 -0
  11. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/__init__.py +5 -0
  12. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/combine_fields.py +225 -0
  13. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/entities_parser.py +673 -0
  14. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/generics.py +87 -0
  15. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/info.py +23 -0
  16. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/linkchart_functions.py +181 -0
  17. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/matches.py +301 -0
  18. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/parameters.py +17 -0
  19. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/rules.py +137 -0
  20. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/api_crafter/parser/signals.py +132 -0
  21. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/__init__.py +1 -0
  22. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/dict.py +94 -0
  23. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/filetypes.py +31 -0
  24. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/threading/__init__.py +1 -0
  25. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/threading/key_queue.py +74 -0
  26. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/core/timestamp.py +16 -0
  27. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/nlp/__init__.py +14 -0
  28. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/nlp/language.py +107 -0
  29. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/nlp/ner.py +666 -0
  30. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/octostar/__init__.py +1 -0
  31. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/octostar/client.py +53 -0
  32. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/octostar/context.py +5 -0
  33. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/octostar/permissions.py +46 -0
  34. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/ontology/__init__.py +1 -0
  35. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/ontology/inheritance.py +15 -0
  36. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/ontology/relationships.py +28 -0
  37. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/ontology/validation.py +33 -0
  38. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/style/__init__.py +1 -0
  39. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/style/common.py +56 -0
  40. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/threading/__init__.py +1 -0
  41. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/threading/async_task_manager.py +146 -0
  42. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/threading/session_callback_manager.py +103 -0
  43. streamlit_octostar_utils-0.4.0a2/streamlit_octostar_utils/threading/session_state_hot_swapper.py +20 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Octostar Limited
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.
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.4
2
+ Name: streamlit-octostar-utils
3
+ Version: 0.4.0a2
4
+ Summary:
5
+ License: MIT
6
+ License-File: LICENSE
7
+ Author: Octostar
8
+ Requires-Python: >=3.9, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.8.*
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Provides-Extra: nlp
18
+ Requires-Dist: PyJWT (>=2.5.0,<3.0.0)
19
+ Requires-Dist: celery (>=5.3.0,<6.0.0)
20
+ Requires-Dist: fastapi (>=0.110.1,<1.0.0)
21
+ Requires-Dist: filetype (>=1.2.0,<2.0.0)
22
+ Requires-Dist: flair (==0.13.1) ; extra == "nlp"
23
+ Requires-Dist: iso639-lang (>=2.0.0,<3.0.0) ; extra == "nlp"
24
+ Requires-Dist: nltk (>=3.8.0,<4.0.0) ; extra == "nlp"
25
+ Requires-Dist: numpy (>=1.20.0)
26
+ Requires-Dist: octostar-streamlit (>=0.1.25,<0.2.0)
27
+ Requires-Dist: pottery (>=3.0.0,<4.0.0)
28
+ Requires-Dist: presidio-analyzer (>=2.2.0,<3.0.0) ; extra == "nlp"
29
+ Requires-Dist: py3langid (>=0.2.0,<0.3.0) ; extra == "nlp"
30
+ Requires-Dist: pydantic (>=2.6.4,<3.0.0)
31
+ Requires-Dist: python-multipart (>=0.0.9,<0.0.10)
32
+ Requires-Dist: rapidfuzz (>=3.5.0,<4.0.0)
33
+ Requires-Dist: redis (>=4.0.0,<5.0.0)
34
+ Requires-Dist: scipy (>=1.10.0,<2.0.0)
35
+ Requires-Dist: slowapi (>=0.1.9,<0.2.0)
36
+ Requires-Dist: sortedcontainers (>=2.0.0)
37
+ Requires-Dist: spacy (>=3.7.0,<4.0.0) ; extra == "nlp"
38
+ Requires-Dist: spacy-download (==1.1.0) ; extra == "nlp"
39
+ Requires-Dist: streamlit (>=1.33.0,<2.0.0)
40
+ Requires-Dist: sumy (>=0.11.0,<1.0.0) ; extra == "nlp"
41
+ Description-Content-Type: text/markdown
42
+
43
+ ## How To Install
44
+ Base Package:
45
+ `pip install streamlit-octostar-utils`
46
+
47
+ NLP Additional Dependencies:
48
+ `pip install streamlit-octostar-utils[nlp]`
49
+
50
+ ## Code formatting
51
+ This project uses `black` for code formatting. To format the code, run:
52
+ `black .` \
53
+ You can also install the Microsoft official Black extension for VSCode [here](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter). \
54
+ This will format the code automatically when you save a file.
55
+
56
+
57
+ ## Developer Guide
58
+ Local Development Setup (MacOS):
59
+ ```bash
60
+ pyenv local
61
+ python -m venv venv
62
+ . venv/bin/activate
63
+ pip install poetry
64
+ poetry install
65
+ ```
66
+
@@ -0,0 +1,23 @@
1
+ ## How To Install
2
+ Base Package:
3
+ `pip install streamlit-octostar-utils`
4
+
5
+ NLP Additional Dependencies:
6
+ `pip install streamlit-octostar-utils[nlp]`
7
+
8
+ ## Code formatting
9
+ This project uses `black` for code formatting. To format the code, run:
10
+ `black .` \
11
+ You can also install the Microsoft official Black extension for VSCode [here](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter). \
12
+ This will format the code automatically when you save a file.
13
+
14
+
15
+ ## Developer Guide
16
+ Local Development Setup (MacOS):
17
+ ```bash
18
+ pyenv local
19
+ python -m venv venv
20
+ . venv/bin/activate
21
+ pip install poetry
22
+ poetry install
23
+ ```
@@ -0,0 +1,67 @@
1
+ [tool.black]
2
+ line-length = 120
3
+ target-version = ['py39', 'py310']
4
+ include = '\.pyi?$'
5
+
6
+ [tool.poetry]
7
+ name = "streamlit-octostar-utils"
8
+ version = "0.4.0a2"
9
+ description = ""
10
+ license = "MIT"
11
+ authors = ["Octostar"]
12
+ readme = "README.md"
13
+ include = [
14
+ "streamlit-octostar-utils/**/*"
15
+ ]
16
+
17
+ [[tool.poetry.source]]
18
+ name = 'pypi-public'
19
+ url = "https://pypi.org/simple/"
20
+
21
+ [tool.mypy]
22
+ python_version = ">=3.9,<3.9.7 || >3.9.7,<4.0"
23
+ check_untyped_defs = true
24
+ ignore_missing_imports = true
25
+ warn_redundant_casts = true
26
+ warn_unused_ignores = true
27
+
28
+ [tool.poetry.dependencies]
29
+ python = ">=3.9,<3.9.7 || >3.9.7,<4.0"
30
+ pydantic = "^2.6.4"
31
+ streamlit = "^1.33.0"
32
+ octostar-streamlit = "^0.1.25"
33
+ fastapi = ">=0.110.1, <1.0.0"
34
+ python-multipart = "^0.0.9"
35
+ sortedcontainers = ">=2.0.0"
36
+ numpy = ">=1.20.0"
37
+ scipy = "^1.10.0"
38
+ rapidfuzz = "^3.5.0"
39
+ celery = "^5.3.0"
40
+ redis = ">=4.0.0,<5.0.0"
41
+ pottery = "^3.0.0"
42
+ slowapi = "^0.1.9"
43
+ filetype = "^1.2.0"
44
+ PyJWT = "^2.5.0"
45
+ #octostar-python-client = "^1.0.0"
46
+ py3langid = { version = ">=0.2.0,<0.3.0", optional = true }
47
+ spacy-download = { version = "==1.1.0", optional = true }
48
+ spacy = { version = ">=3.7.0,<4.0.0", optional = true }
49
+ nltk = { version = ">=3.8.0,<4.0.0", optional = true }
50
+ sumy = { version = ">=0.11.0,<1.0.0", optional = true }
51
+ flair = { version = "==0.13.1", optional = true }
52
+ iso639-lang = { version = ">=2.0.0,<3.0.0", optional = true }
53
+ presidio-analyzer = { version = "^2.2.0", optional = true }
54
+
55
+ [tool.poetry.extras]
56
+ nlp = ["py3langid", "iso639-lang", "spacy-download", "spacy", "nltk", "sumy", "flair", "presidio-analyzer"]
57
+
58
+
59
+ [tool.poetry.group.dev.dependencies]
60
+ black = "^24.10.0"
61
+ flake8 = "^7.0.0"
62
+ mypy = "^1.9.0"
63
+
64
+ [build-system]
65
+ requires = ["poetry-core"]
66
+ build-backend = "poetry.core.masonry.api"
67
+