livekit-plugins-nltk 0.7.4__tar.gz → 1.0.0.dev5__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.
@@ -0,0 +1,168 @@
1
+ **/.vscode
2
+ **/.DS_Store
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ wheels/
26
+ share/python-wheels/
27
+ *.egg-info/
28
+ .installed.cfg
29
+ *.egg
30
+ MANIFEST
31
+
32
+ # PyInstaller
33
+ # Usually these files are written by a python script from a template
34
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
35
+ *.manifest
36
+ *.spec
37
+
38
+ # Installer logs
39
+ pip-log.txt
40
+ pip-delete-this-directory.txt
41
+
42
+ # Unit test / coverage reports
43
+ htmlcov/
44
+ .tox/
45
+ .nox/
46
+ .coverage
47
+ .coverage.*
48
+ .cache
49
+ nosetests.xml
50
+ coverage.xml
51
+ *.cover
52
+ *.py,cover
53
+ .hypothesis/
54
+ .pytest_cache/
55
+ cover/
56
+
57
+ # Translations
58
+ *.mo
59
+ *.pot
60
+
61
+ # Django stuff:
62
+ *.log
63
+ local_settings.py
64
+ db.sqlite3
65
+ db.sqlite3-journal
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ #Pipfile.lock
99
+
100
+ # poetry
101
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
105
+ #poetry.lock
106
+
107
+ # pdm
108
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
109
+ #pdm.lock
110
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
111
+ # in version control.
112
+ # https://pdm.fming.dev/#use-with-ide
113
+ .pdm.toml
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+
165
+ node_modules
166
+
167
+ credentials.json
168
+ pyrightconfig.json
@@ -1,35 +1,25 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: livekit-plugins-nltk
3
- Version: 0.7.4
3
+ Version: 1.0.0.dev5
4
4
  Summary: Agent Framework plugin for NLTK-based text processing.
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
5
  Project-URL: Documentation, https://docs.livekit.io
8
6
  Project-URL: Website, https://livekit.io/
9
7
  Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit
8
+ Author-email: LiveKit <support@livekit.io>
9
+ License-Expression: Apache-2.0
10
+ Keywords: audio,livekit,realtime,video,webrtc
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
13
16
  Classifier: Topic :: Multimedia :: Sound/Audio
14
17
  Classifier: Topic :: Multimedia :: Video
15
18
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
- Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
19
  Requires-Python: >=3.9.0
20
- Description-Content-Type: text/markdown
21
- Requires-Dist: livekit-agents<1.0.0,>=0.12.16
20
+ Requires-Dist: livekit-agents>=1.0.0.dev5
22
21
  Requires-Dist: nltk<4,>=3.9.1
23
- Dynamic: classifier
24
- Dynamic: description
25
- Dynamic: description-content-type
26
- Dynamic: home-page
27
- Dynamic: keywords
28
- Dynamic: license
29
- Dynamic: project-url
30
- Dynamic: requires-dist
31
- Dynamic: requires-python
32
- Dynamic: summary
22
+ Description-Content-Type: text/markdown
33
23
 
34
24
  # LiveKit Plugins NLTK
35
25
 
@@ -19,9 +19,8 @@ from .version import __version__
19
19
  __all__ = ["SentenceTokenizer", "__version__"]
20
20
 
21
21
 
22
- from livekit.agents import Plugin
23
-
24
22
  import nltk # type: ignore
23
+ from livekit.agents import Plugin
25
24
 
26
25
  from .log import logger
27
26
 
@@ -4,9 +4,8 @@ import dataclasses
4
4
  import functools
5
5
  from dataclasses import dataclass
6
6
 
7
- from livekit import agents
8
-
9
7
  import nltk # type: ignore
8
+ from livekit import agents
10
9
 
11
10
  # nltk is using the punkt tokenizer
12
11
  # https://www.nltk.org/_modules/nltk/tokenize/punkt.html
@@ -61,9 +60,7 @@ class SentenceTokenizer(agents.tokenize.SentenceTokenizer):
61
60
  def stream(self, *, language: str | None = None) -> agents.tokenize.SentenceStream:
62
61
  config = self._sanitize_options(language=language)
63
62
  return agents.tokenize.BufferedSentenceStream(
64
- tokenizer=functools.partial(
65
- nltk.tokenize.sent_tokenize, language=config.language
66
- ),
63
+ tokenizer=functools.partial(nltk.tokenize.sent_tokenize, language=config.language),
67
64
  min_token_len=self._config.min_sentence_len,
68
65
  min_ctx_len=self._config.stream_context_len,
69
66
  )
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "0.7.4"
15
+ __version__ = "1.0.0.dev5"
@@ -0,0 +1,38 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "livekit-plugins-nltk"
7
+ dynamic = ["version"]
8
+ description = "Agent Framework plugin for NLTK-based text processing."
9
+ readme = "README.md"
10
+ license = "Apache-2.0"
11
+ requires-python = ">=3.9.0"
12
+ authors = [{ name = "LiveKit", email = "support@livekit.io" }]
13
+ keywords = ["webrtc", "realtime", "audio", "video", "livekit"]
14
+ classifiers = [
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: Apache Software License",
17
+ "Topic :: Multimedia :: Sound/Audio",
18
+ "Topic :: Multimedia :: Video",
19
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
20
+ "Programming Language :: Python :: 3.9",
21
+ "Programming Language :: Python :: 3.10",
22
+ "Programming Language :: Python :: 3 :: Only",
23
+ ]
24
+ dependencies = ["livekit-agents>=1.0.0.dev5", "nltk >= 3.9.1, < 4"]
25
+
26
+ [project.urls]
27
+ Documentation = "https://docs.livekit.io"
28
+ Website = "https://livekit.io/"
29
+ Source = "https://github.com/livekit/agents"
30
+
31
+ [tool.hatch.version]
32
+ path = "livekit/plugins/nltk/version.py"
33
+
34
+ [tool.hatch.build.targets.wheel]
35
+ packages = ["livekit"]
36
+
37
+ [tool.hatch.build.targets.sdist]
38
+ include = ["/livekit"]
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: livekit-plugins-nltk
3
- Version: 0.7.4
4
- Summary: Agent Framework plugin for NLTK-based text processing.
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
- Project-URL: Documentation, https://docs.livekit.io
8
- Project-URL: Website, https://livekit.io/
9
- Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit
11
- Classifier: Intended Audience :: Developers
12
- Classifier: License :: OSI Approved :: Apache Software License
13
- Classifier: Topic :: Multimedia :: Sound/Audio
14
- Classifier: Topic :: Multimedia :: Video
15
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
- Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
- Requires-Python: >=3.9.0
20
- Description-Content-Type: text/markdown
21
- Requires-Dist: livekit-agents<1.0.0,>=0.12.16
22
- Requires-Dist: nltk<4,>=3.9.1
23
- Dynamic: classifier
24
- Dynamic: description
25
- Dynamic: description-content-type
26
- Dynamic: home-page
27
- Dynamic: keywords
28
- Dynamic: license
29
- Dynamic: project-url
30
- Dynamic: requires-dist
31
- Dynamic: requires-python
32
- Dynamic: summary
33
-
34
- # LiveKit Plugins NLTK
35
-
36
- Agent Framework plugin for [NLTK](https://www.nltk.org/)-based text processing. Currently featuring a `SentenceTokenizer`.
37
-
38
- ## Installation
39
-
40
- ```bash
41
- pip install livekit-plugins-nltk
42
- ```
@@ -1,13 +0,0 @@
1
- README.md
2
- pyproject.toml
3
- setup.py
4
- livekit/plugins/nltk/__init__.py
5
- livekit/plugins/nltk/log.py
6
- livekit/plugins/nltk/py.typed
7
- livekit/plugins/nltk/sentence_tokenizer.py
8
- livekit/plugins/nltk/version.py
9
- livekit_plugins_nltk.egg-info/PKG-INFO
10
- livekit_plugins_nltk.egg-info/SOURCES.txt
11
- livekit_plugins_nltk.egg-info/dependency_links.txt
12
- livekit_plugins_nltk.egg-info/requires.txt
13
- livekit_plugins_nltk.egg-info/top_level.txt
@@ -1,2 +0,0 @@
1
- livekit-agents<1.0.0,>=0.12.16
2
- nltk<4,>=3.9.1
@@ -1,3 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0"]
3
- build-backend = "setuptools.build_meta"
@@ -1,4 +0,0 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
@@ -1,56 +0,0 @@
1
- # Copyright 2023 LiveKit, Inc.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
- import os
16
- import pathlib
17
-
18
- import setuptools
19
- import setuptools.command.build_py
20
-
21
- here = pathlib.Path(__file__).parent.resolve()
22
- about = {}
23
- with open(os.path.join(here, "livekit", "plugins", "nltk", "version.py"), "r") as f:
24
- exec(f.read(), about)
25
-
26
-
27
- setuptools.setup(
28
- name="livekit-plugins-nltk",
29
- version=about["__version__"],
30
- description="Agent Framework plugin for NLTK-based text processing.",
31
- long_description=(here / "README.md").read_text(encoding="utf-8"),
32
- long_description_content_type="text/markdown",
33
- url="https://github.com/livekit/agents",
34
- cmdclass={},
35
- classifiers=[
36
- "Intended Audience :: Developers",
37
- "License :: OSI Approved :: Apache Software License",
38
- "Topic :: Multimedia :: Sound/Audio",
39
- "Topic :: Multimedia :: Video",
40
- "Topic :: Scientific/Engineering :: Artificial Intelligence",
41
- "Programming Language :: Python :: 3.9",
42
- "Programming Language :: Python :: 3.10",
43
- "Programming Language :: Python :: 3 :: Only",
44
- ],
45
- keywords=["webrtc", "realtime", "audio", "video", "livekit"],
46
- license="Apache-2.0",
47
- packages=setuptools.find_namespace_packages(include=["livekit.*"]),
48
- python_requires=">=3.9.0",
49
- install_requires=["livekit-agents>=0.12.16,<1.0.0", "nltk >= 3.9.1, < 4"],
50
- package_data={"livekit.plugins.nltk": ["py.typed"]},
51
- project_urls={
52
- "Documentation": "https://docs.livekit.io",
53
- "Website": "https://livekit.io/",
54
- "Source": "https://github.com/livekit/agents",
55
- },
56
- )