pyjabber 0.1.0__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 (91) hide show
  1. pyjabber-0.1.0/AUTHORS.rst +9 -0
  2. pyjabber-0.1.0/CONTRIBUTING.rst +137 -0
  3. pyjabber-0.1.0/HISTORY.rst +8 -0
  4. pyjabber-0.1.0/LICENSE +22 -0
  5. pyjabber-0.1.0/MANIFEST.in +15 -0
  6. pyjabber-0.1.0/PKG-INFO +117 -0
  7. pyjabber-0.1.0/README.rst +99 -0
  8. pyjabber-0.1.0/docs/Makefile +20 -0
  9. pyjabber-0.1.0/docs/_build/html/_images/arch.png +0 -0
  10. pyjabber-0.1.0/docs/_build/html/_static/file.png +0 -0
  11. pyjabber-0.1.0/docs/_build/html/_static/img/screenshot.png +0 -0
  12. pyjabber-0.1.0/docs/_build/html/_static/minus.png +0 -0
  13. pyjabber-0.1.0/docs/_build/html/_static/plus.png +0 -0
  14. pyjabber-0.1.0/docs/_build/html/res/arch.png +0 -0
  15. pyjabber-0.1.0/docs/architecture.rst +28 -0
  16. pyjabber-0.1.0/docs/authors.rst +1 -0
  17. pyjabber-0.1.0/docs/conf.py +164 -0
  18. pyjabber-0.1.0/docs/contributing.rst +1 -0
  19. pyjabber-0.1.0/docs/history.rst +1 -0
  20. pyjabber-0.1.0/docs/index.rst +20 -0
  21. pyjabber-0.1.0/docs/installation.rst +51 -0
  22. pyjabber-0.1.0/docs/make.bat +36 -0
  23. pyjabber-0.1.0/docs/readme.rst +1 -0
  24. pyjabber-0.1.0/docs/res/arch.png +0 -0
  25. pyjabber-0.1.0/pyjabber/__cli__.py +22 -0
  26. pyjabber-0.1.0/pyjabber/__init__.py +0 -0
  27. pyjabber-0.1.0/pyjabber/__main__.py +42 -0
  28. pyjabber-0.1.0/pyjabber/db/__init__.py +0 -0
  29. pyjabber-0.1.0/pyjabber/db/database.py +9 -0
  30. pyjabber-0.1.0/pyjabber/db/schema.sql +12 -0
  31. pyjabber-0.1.0/pyjabber/features/FeatureInterface.py +10 -0
  32. pyjabber-0.1.0/pyjabber/features/InBandRegistration.py +14 -0
  33. pyjabber-0.1.0/pyjabber/features/PresenceFeature.py +302 -0
  34. pyjabber-0.1.0/pyjabber/features/ResourceBinding.py +7 -0
  35. pyjabber-0.1.0/pyjabber/features/SASLFeature.py +113 -0
  36. pyjabber-0.1.0/pyjabber/features/StartTLSFeature.py +37 -0
  37. pyjabber-0.1.0/pyjabber/features/StreamFeature.py +62 -0
  38. pyjabber-0.1.0/pyjabber/features/__init__.py +0 -0
  39. pyjabber-0.1.0/pyjabber/network/ConnectionsManager.py +57 -0
  40. pyjabber-0.1.0/pyjabber/network/StreamAlivenessMonitor.py +34 -0
  41. pyjabber-0.1.0/pyjabber/network/XMLParser.py +121 -0
  42. pyjabber-0.1.0/pyjabber/network/XMLProtocol.py +171 -0
  43. pyjabber-0.1.0/pyjabber/network/__init__.py +5 -0
  44. pyjabber-0.1.0/pyjabber/network/certs/localhost-key.pem +28 -0
  45. pyjabber-0.1.0/pyjabber/network/certs/localhost.pem +25 -0
  46. pyjabber-0.1.0/pyjabber/plugins/PluginInterface.py +10 -0
  47. pyjabber-0.1.0/pyjabber/plugins/PluginManager.py +40 -0
  48. pyjabber-0.1.0/pyjabber/plugins/__init__.py +0 -0
  49. pyjabber-0.1.0/pyjabber/plugins/roster/Roster.py +152 -0
  50. pyjabber-0.1.0/pyjabber/plugins/roster/__init__.py +0 -0
  51. pyjabber-0.1.0/pyjabber/plugins/xep_0199/__init__.py +0 -0
  52. pyjabber-0.1.0/pyjabber/plugins/xep_0199/xep_0199.py +25 -0
  53. pyjabber-0.1.0/pyjabber/server.py +132 -0
  54. pyjabber-0.1.0/pyjabber/stanzas/IQ.py +28 -0
  55. pyjabber-0.1.0/pyjabber/stanzas/Message.py +27 -0
  56. pyjabber-0.1.0/pyjabber/stanzas/Presence.py +9 -0
  57. pyjabber-0.1.0/pyjabber/stanzas/__init__.py +0 -0
  58. pyjabber-0.1.0/pyjabber/stanzas/error/StanzaError.py +99 -0
  59. pyjabber-0.1.0/pyjabber/stanzas/error/__init__.py +0 -0
  60. pyjabber-0.1.0/pyjabber/stream/StanzaHandler.py +67 -0
  61. pyjabber-0.1.0/pyjabber/stream/Stream.py +68 -0
  62. pyjabber-0.1.0/pyjabber/stream/StreamHandler.py +144 -0
  63. pyjabber-0.1.0/pyjabber/stream/__init__.py +0 -0
  64. pyjabber-0.1.0/pyjabber/stream/schemas/schemas.pkl +0 -0
  65. pyjabber-0.1.0/pyjabber/utils/ClarkNotation.py +15 -0
  66. pyjabber-0.1.0/pyjabber/utils/Singleton.py +35 -0
  67. pyjabber-0.1.0/pyjabber/utils/__init__.py +5 -0
  68. pyjabber-0.1.0/pyjabber/webpage/__init__.py +0 -0
  69. pyjabber-0.1.0/pyjabber/webpage/adminPage.py +26 -0
  70. pyjabber-0.1.0/pyjabber/webpage/api/__init__.py +0 -0
  71. pyjabber-0.1.0/pyjabber/webpage/api/api.py +113 -0
  72. pyjabber-0.1.0/pyjabber/webpage/build/asset-manifest.json +13 -0
  73. pyjabber-0.1.0/pyjabber/webpage/build/favicon.ico +0 -0
  74. pyjabber-0.1.0/pyjabber/webpage/build/index.html +1 -0
  75. pyjabber-0.1.0/pyjabber/webpage/build/logo192.png +0 -0
  76. pyjabber-0.1.0/pyjabber/webpage/build/logo512.png +0 -0
  77. pyjabber-0.1.0/pyjabber/webpage/build/manifest.json +25 -0
  78. pyjabber-0.1.0/pyjabber/webpage/build/robots.txt +3 -0
  79. pyjabber-0.1.0/pyjabber/webpage/build/static/css/main.985302ea.css +2 -0
  80. pyjabber-0.1.0/pyjabber/webpage/build/static/css/main.985302ea.css.map +1 -0
  81. pyjabber-0.1.0/pyjabber/webpage/build/static/js/main.4e6d336c.js +3 -0
  82. pyjabber-0.1.0/pyjabber/webpage/build/static/js/main.4e6d336c.js.LICENSE.txt +87 -0
  83. pyjabber-0.1.0/pyjabber/webpage/build/static/js/main.4e6d336c.js.map +1 -0
  84. pyjabber-0.1.0/pyjabber.egg-info/PKG-INFO +117 -0
  85. pyjabber-0.1.0/pyjabber.egg-info/SOURCES.txt +89 -0
  86. pyjabber-0.1.0/pyjabber.egg-info/dependency_links.txt +1 -0
  87. pyjabber-0.1.0/pyjabber.egg-info/entry_points.txt +2 -0
  88. pyjabber-0.1.0/pyjabber.egg-info/requires.txt +3 -0
  89. pyjabber-0.1.0/pyjabber.egg-info/top_level.txt +1 -0
  90. pyjabber-0.1.0/setup.cfg +4 -0
  91. pyjabber-0.1.0/setup.py +31 -0
@@ -0,0 +1,9 @@
1
+ =======
2
+ Credits
3
+ =======
4
+
5
+ Development Lead
6
+ ----------------
7
+
8
+ * Aarón Raya <aaron.raya.lopez@gmail.com>
9
+
@@ -0,0 +1,137 @@
1
+ .. highlight:: shell
2
+
3
+ ============
4
+ Contributing
5
+ ============
6
+
7
+ Contributions are welcome, and they are greatly appreciated! Every little bit
8
+ helps, and credit will always be given.
9
+
10
+ You can contribute in many ways:
11
+
12
+ Types of Contributions
13
+ ----------------------
14
+
15
+ Report Bugs
16
+ ~~~~~~~~~~~
17
+
18
+ Report bugs at https://github.com/dinothor/pyjabber/issues.
19
+
20
+ If you are reporting a bug, please include:
21
+
22
+ * Your operating system name and version.
23
+ * Any details about your local setup that might be helpful in troubleshooting.
24
+ * Detailed steps to reproduce the bug.
25
+
26
+ Fix Bugs
27
+ ~~~~~~~~
28
+
29
+ Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
30
+ wanted" is open to whoever wants to implement it.
31
+
32
+ Implement Features
33
+ ~~~~~~~~~~~~~~~~~~
34
+
35
+ Look through the GitHub issues for features. Anything tagged with "enhancement"
36
+ and "help wanted" is open to whoever wants to implement it.
37
+
38
+ Write Documentation
39
+ ~~~~~~~~~~~~~~~~~~~
40
+
41
+ PyJabber could always use more documentation, whether as part of the
42
+ official PyJabber docs, in docstrings, or even on the web in blog posts,
43
+ articles, and such.
44
+
45
+ Submit Feedback
46
+ ~~~~~~~~~~~~~~~
47
+
48
+ The best way to send feedback is to file an issue at https://github.com/dinothor/pyjabber/issues.
49
+
50
+ If you are proposing a feature:
51
+
52
+ * Explain in detail how it would work.
53
+ * Keep the scope as narrow as possible, to make it easier to implement.
54
+ * Remember that this is a volunteer-driven project, and that contributions
55
+ are welcome :)
56
+
57
+ Get Started!
58
+ ------------
59
+
60
+ Ready to contribute? Here's how to set up `pyjabber` for local development.
61
+
62
+ 1. Fork the `pyjabber` repo on GitHub.
63
+ 2. Clone your fork locally::
64
+
65
+ $ git clone git@github.com:your_name_here/pyjabber.git
66
+
67
+ 3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
68
+
69
+ $ mkvirtualenv pyjabber
70
+ $ cd pyjabber/
71
+ $ python setup.py develop
72
+
73
+ 4. Create a branch for local development::
74
+
75
+ $ git checkout -b name-of-your-bugfix-or-feature
76
+
77
+ Now you can make your changes locally.
78
+
79
+ 5. When you're done making changes, check that your changes pass flake8 and the
80
+ tests, including testing other Python versions with tox::
81
+
82
+ $ make lint
83
+ $ make test
84
+ Or
85
+ $ make test-all
86
+
87
+ To get flake8 and tox, just pip install them into your virtualenv.
88
+
89
+ 6. Commit your changes and push your branch to GitHub::
90
+
91
+ $ git add .
92
+ $ git commit -m "Your detailed description of your changes."
93
+ $ git push origin name-of-your-bugfix-or-feature
94
+
95
+ 7. Submit a pull request through the GitHub website.
96
+
97
+ Pull Request Guidelines
98
+ -----------------------
99
+
100
+ Before you submit a pull request, check that it meets these guidelines:
101
+
102
+ 1. The pull request should include tests.
103
+ 2. If the pull request adds functionality, the docs should be updated. Put
104
+ your new functionality into a function with a docstring, and add the
105
+ feature to the list in README.rst.
106
+ 3. The pull request should work for Python 3.5, 3.6, 3.7 and 3.8, and for PyPy. Check
107
+ https://travis-ci.com/dinothor/pyjabber/pull_requests
108
+ and make sure that the tests pass for all supported Python versions.
109
+
110
+ Tips
111
+ ----
112
+
113
+ To run a subset of tests::
114
+
115
+
116
+ $ python -m unittest tests.test_pyjabber
117
+
118
+ Deploying
119
+ ---------
120
+
121
+ A reminder for the maintainers on how to deploy.
122
+ Make sure all your changes are committed (including an entry in HISTORY.rst).
123
+ Then run::
124
+
125
+ $ bump2version patch # possible: major / minor / patch
126
+ $ git push
127
+ $ git push --tags
128
+
129
+ Travis will then deploy to PyPI if tests pass.
130
+
131
+ Code of Conduct
132
+ ---------------
133
+
134
+ Please note that this project is released with a `Contributor Code of Conduct`_.
135
+ By participating in this project you agree to abide by its terms.
136
+
137
+ .. _`Contributor Code of Conduct`: CODE_OF_CONDUCT.rst
@@ -0,0 +1,8 @@
1
+ =======
2
+ History
3
+ =======
4
+
5
+ 0.1.0 (2024-04-18)
6
+ ------------------
7
+
8
+ * First release on PyPI.
pyjabber-0.1.0/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024, Aarón Raya
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.
22
+
@@ -0,0 +1,15 @@
1
+ include AUTHORS.rst
2
+ include CONTRIBUTING.rst
3
+ include HISTORY.rst
4
+ include LICENSE
5
+ include README.rst
6
+ include pyjabber/db/schema.sql
7
+ include pyjabber/stream/schemas/schemas.pkl
8
+ recursive-include pyjabber/webpage/build *
9
+ recursive-include pyjabber/network/certs *
10
+
11
+ recursive-include tests *
12
+ recursive-exclude * __pycache__
13
+ recursive-exclude * *.py[co]
14
+
15
+ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif
@@ -0,0 +1,117 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyjabber
3
+ Version: 0.1.0
4
+ Summary: A Python XMPP server
5
+ Home-page: https://github.com/DinoThor/PyJabber
6
+ Author: Aarón Raya
7
+ Author-email: aaron.raya.lopez@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.7
12
+ Description-Content-Type: text/x-rst
13
+ License-File: LICENSE
14
+ License-File: AUTHORS.rst
15
+ Requires-Dist: aiohttp==3.9.5
16
+ Requires-Dist: loguru==0.7.2
17
+ Requires-Dist: xmlschema==3.3.0
18
+
19
+ ========
20
+ PyJabber
21
+ ========
22
+
23
+
24
+ .. image:: https://img.shields.io/pypi/v/pyjabber.svg
25
+ :target: https://test.pypi.org/project/pyjabber/
26
+
27
+ .. image:: https://img.shields.io/travis/dinothor/pyjabber.svg
28
+ :target: https://travis-ci.com/dinothor/pyjabber
29
+
30
+ .. image:: https://readthedocs.org/projects/pyjabber/badge/?version=latest
31
+ :target: https://pyjabber.readthedocs.io/en/latest/?version=latest
32
+ :alt: Documentation Status
33
+
34
+
35
+ |
36
+ | PyJabber is a server for Jabber/XMPP entirely written in Python, with minimal reliance on external libraries.
37
+ | It strives to provide a simple, lightweight, and comprehensible codebase, featuring a modular structure that
38
+ facilitates extension through the implementation of necessary XEPs for specific use cases.
39
+ | While initially designed to fulfill the requirements of the multi-agent system `SPADE <https://github.com/javipalanca/spade>`_, it can be easily customized to suit any other purpose.
40
+ |
41
+
42
+ * Free software: MIT license
43
+ * Documentation: https://pyjabber.readthedocs.io.
44
+
45
+ Installation
46
+ ------------
47
+ .. code-block::
48
+
49
+ pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pyjabber
50
+
51
+ Quick start
52
+ -----------
53
+ .. code-block:: python
54
+
55
+ from pyjabber import Server
56
+
57
+ my_server = Server()
58
+ my_server.start()
59
+
60
+ .. code-block:: python
61
+
62
+ class Server(
63
+ host : str = "localhost",
64
+ client_port : int = 5222,
65
+ server_port : int = 5223,
66
+ connection_timeout : int = 60
67
+ )
68
+
69
+ A formated logger can be added, in order to retrive the messages from the INFO, DEBUG and ERROR levels
70
+
71
+ .. code-block:: python
72
+
73
+ 2024-05-03 11:45:51.229 | INFO | pyjabber.server:run_server:52 - Starting server...
74
+ 2024-05-03 11:45:51.231 | INFO | pyjabber.server:run_server:73 - Server is listening clients on ('127.0.0.1', 5222)
75
+ 2024-05-03 11:45:51.231 | INFO | pyjabber.server:run_server:75 - Server started...
76
+
77
+
78
+
79
+
80
+ Features
81
+ --------
82
+
83
+ .. list-table::
84
+ :widths: 25 25 50
85
+ :header-rows: 1
86
+
87
+ * -
88
+ - Status
89
+ - Description
90
+ * - TLS
91
+ - Implemented
92
+ - v1.2, with localhost certificate included
93
+ * - SASL
94
+ - Implemented
95
+ - PLAIN
96
+ * - Roster
97
+ - Implemented
98
+ - CRUD avaliable
99
+ * - Presence
100
+ - Not implemented
101
+ - Working on it
102
+
103
+ Plugins
104
+ -------
105
+ .. list-table::
106
+ :widths: 25 25 50
107
+ :header-rows: 1
108
+
109
+ * -
110
+ - Status
111
+ - Description
112
+ * - `XEP-0077 <https://xmpp.org/extensions/xep-0077.html>`_
113
+ - IMPLEMENTED
114
+ -
115
+ * - `XEP-0199 <https://xmpp.org/extensions/xep-0199.html>`_
116
+ - IMPLEMENTED
117
+ -
@@ -0,0 +1,99 @@
1
+ ========
2
+ PyJabber
3
+ ========
4
+
5
+
6
+ .. image:: https://img.shields.io/pypi/v/pyjabber.svg
7
+ :target: https://test.pypi.org/project/pyjabber/
8
+
9
+ .. image:: https://img.shields.io/travis/dinothor/pyjabber.svg
10
+ :target: https://travis-ci.com/dinothor/pyjabber
11
+
12
+ .. image:: https://readthedocs.org/projects/pyjabber/badge/?version=latest
13
+ :target: https://pyjabber.readthedocs.io/en/latest/?version=latest
14
+ :alt: Documentation Status
15
+
16
+
17
+ |
18
+ | PyJabber is a server for Jabber/XMPP entirely written in Python, with minimal reliance on external libraries.
19
+ | It strives to provide a simple, lightweight, and comprehensible codebase, featuring a modular structure that
20
+ facilitates extension through the implementation of necessary XEPs for specific use cases.
21
+ | While initially designed to fulfill the requirements of the multi-agent system `SPADE <https://github.com/javipalanca/spade>`_, it can be easily customized to suit any other purpose.
22
+ |
23
+
24
+ * Free software: MIT license
25
+ * Documentation: https://pyjabber.readthedocs.io.
26
+
27
+ Installation
28
+ ------------
29
+ .. code-block::
30
+
31
+ pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ pyjabber
32
+
33
+ Quick start
34
+ -----------
35
+ .. code-block:: python
36
+
37
+ from pyjabber import Server
38
+
39
+ my_server = Server()
40
+ my_server.start()
41
+
42
+ .. code-block:: python
43
+
44
+ class Server(
45
+ host : str = "localhost",
46
+ client_port : int = 5222,
47
+ server_port : int = 5223,
48
+ connection_timeout : int = 60
49
+ )
50
+
51
+ A formated logger can be added, in order to retrive the messages from the INFO, DEBUG and ERROR levels
52
+
53
+ .. code-block:: python
54
+
55
+ 2024-05-03 11:45:51.229 | INFO | pyjabber.server:run_server:52 - Starting server...
56
+ 2024-05-03 11:45:51.231 | INFO | pyjabber.server:run_server:73 - Server is listening clients on ('127.0.0.1', 5222)
57
+ 2024-05-03 11:45:51.231 | INFO | pyjabber.server:run_server:75 - Server started...
58
+
59
+
60
+
61
+
62
+ Features
63
+ --------
64
+
65
+ .. list-table::
66
+ :widths: 25 25 50
67
+ :header-rows: 1
68
+
69
+ * -
70
+ - Status
71
+ - Description
72
+ * - TLS
73
+ - Implemented
74
+ - v1.2, with localhost certificate included
75
+ * - SASL
76
+ - Implemented
77
+ - PLAIN
78
+ * - Roster
79
+ - Implemented
80
+ - CRUD avaliable
81
+ * - Presence
82
+ - Not implemented
83
+ - Working on it
84
+
85
+ Plugins
86
+ -------
87
+ .. list-table::
88
+ :widths: 25 25 50
89
+ :header-rows: 1
90
+
91
+ * -
92
+ - Status
93
+ - Description
94
+ * - `XEP-0077 <https://xmpp.org/extensions/xep-0077.html>`_
95
+ - IMPLEMENTED
96
+ -
97
+ * - `XEP-0199 <https://xmpp.org/extensions/xep-0199.html>`_
98
+ - IMPLEMENTED
99
+ -
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line.
5
+ SPHINXOPTS =
6
+ SPHINXBUILD = python3 -msphinx
7
+ SPHINXPROJ = pyjabber
8
+ SOURCEDIR = .
9
+ BUILDDIR = _build
10
+
11
+ # Put it first so that "make" without argument is like "make help".
12
+ help:
13
+ @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14
+
15
+ .PHONY: help Makefile
16
+
17
+ # Catch-all target: route all unknown targets to Sphinx using the new
18
+ # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19
+ %: Makefile
20
+ @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@@ -0,0 +1,28 @@
1
+ ============
2
+ Architecture
3
+ ============
4
+
5
+ .. image:: res/arch.png
6
+ :alt: Alternative text
7
+
8
+ |
9
+ | A PyJabber Server is builded by an asyncio loop, with an unique XMPPProtocol object instanced and asociated
10
+ by each TCP conection made.
11
+ | An instance of Server will have an unique (Singleton) instance of a ConectionManager object. This will keep an unique list of Peers
12
+ conected to the server, and will be visible (but no modificable) for each XMPPProtocol instance.
13
+
14
+
15
+ Client Stream
16
+ -------------
17
+ #. TCP connection:
18
+ A client connects by host:5222. PyJabber will create an **XMPPProtocol** instance for this new connection,
19
+ bound it and store it in the **ConectionManager** singleton
20
+ #. Stream Negotiation:
21
+ Client and PyJabber will start an XML message flow in order to stablish the session.
22
+ This steep includes the process of securing the socket (startTLS), authentication/registration of the
23
+ client and its resource binding. This step will be managed by the **StreamHandler**.
24
+ #. Stanza Management:
25
+ After the stream has been negotiated, a session will be started between
26
+ server and client, and stanzas will be treated by the **StanzaHandler**. This stage is where the mayority
27
+ of the application will be, and stanzas of **IQ**, **PRESENCE** and **MESSAGE** are treated.
28
+
@@ -0,0 +1 @@
1
+ .. include:: ../AUTHORS.rst
@@ -0,0 +1,164 @@
1
+ #!/usr/bin/env python
2
+ #
3
+ # pyjabber documentation build configuration file, created by
4
+ # sphinx-quickstart on Fri Jun 9 13:47:02 2017.
5
+ #
6
+ # This file is execfile()d with the current directory set to its
7
+ # containing dir.
8
+ #
9
+ # Note that not all possible configuration values are present in this
10
+ # autogenerated file.
11
+ #
12
+ # All configuration values have a default; values that are commented out
13
+ # serve to show the default.
14
+
15
+ # If extensions (or modules to document with autodoc) are in another
16
+ # directory, add these directories to sys.path here. If the directory is
17
+ # relative to the documentation root, use os.path.abspath to make it
18
+ # absolute, like shown here.
19
+ #
20
+ import os
21
+ import sys
22
+ sys.path.insert(0, os.path.abspath('..'))
23
+
24
+ import pyjabber
25
+
26
+ # -- General configuration ---------------------------------------------
27
+
28
+ # If your documentation needs a minimal Sphinx version, state it here.
29
+ #
30
+ # needs_sphinx = '1.0'
31
+
32
+ # Add any Sphinx extension module names here, as strings. They can be
33
+ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
34
+ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', "sphinx_wagtail_theme"]
35
+
36
+ # Add any paths that contain templates here, relative to this directory.
37
+ templates_path = ['_templates']
38
+
39
+ # The suffix(es) of source filenames.
40
+ # You can specify multiple suffix as a list of string:
41
+ #
42
+ # source_suffix = ['.rst', '.md']
43
+ source_suffix = '.rst'
44
+
45
+ # The master toctree document.
46
+ master_doc = 'index'
47
+
48
+ # General information about the project.
49
+ project = 'PyJabber'
50
+ copyright = "2024, Aarón Raya"
51
+ author = "Aarón Raya"
52
+
53
+ # The version info for the project you're documenting, acts as replacement
54
+ # for |version| and |release|, also used in various other places throughout
55
+ # the built documents.
56
+ #
57
+ # The short X.Y version.
58
+ version = pyjabber.__version__
59
+ # The full version, including alpha/beta/rc tags.
60
+ release = pyjabber.__version__
61
+
62
+ # The language for content autogenerated by Sphinx. Refer to documentation
63
+ # for a list of supported languages.
64
+ #
65
+ # This is also used if you do content translation via gettext catalogs.
66
+ # Usually you set "language" from the command line for these cases.
67
+ language = None
68
+
69
+ # List of patterns, relative to source directory, that match files and
70
+ # directories to ignore when looking for source files.
71
+ # This patterns also effect to html_static_path and html_extra_path
72
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
73
+
74
+ # The name of the Pygments (syntax highlighting) style to use.
75
+ pygments_style = 'sphinx'
76
+
77
+ # If true, `todo` and `todoList` produce output, else they produce nothing.
78
+ todo_include_todos = False
79
+
80
+
81
+ # -- Options for HTML output -------------------------------------------
82
+
83
+ # The theme to use for HTML and HTML Help pages. See the documentation for
84
+ # a list of builtin themes.
85
+ #
86
+ html_theme = 'sphinx_wagtail_theme'
87
+
88
+ # Theme options are theme-specific and customize the look and feel of a
89
+ # theme further. For a list of options available for each theme, see the
90
+ # documentation.
91
+ #
92
+ html_theme_options = dict(
93
+ project_name = "PyJabber",
94
+ )
95
+
96
+ # Add any paths that contain custom static files (such as style sheets) here,
97
+ # relative to this directory. They are copied after the builtin static files,
98
+ # so a file named "default.css" will overwrite the builtin "default.css".
99
+ html_static_path = ['_static']
100
+
101
+
102
+ # -- Options for HTMLHelp output ---------------------------------------
103
+
104
+ # Output file base name for HTML help builder.
105
+ htmlhelp_basename = 'pyjabberdoc'
106
+
107
+
108
+ # -- Options for LaTeX output ------------------------------------------
109
+
110
+ latex_elements = {
111
+ # The paper size ('letterpaper' or 'a4paper').
112
+ #
113
+ # 'papersize': 'letterpaper',
114
+
115
+ # The font size ('10pt', '11pt' or '12pt').
116
+ #
117
+ # 'pointsize': '10pt',
118
+
119
+ # Additional stuff for the LaTeX preamble.
120
+ #
121
+ # 'preamble': '',
122
+
123
+ # Latex figure (float) alignment
124
+ #
125
+ # 'figure_align': 'htbp',
126
+ }
127
+
128
+ # Grouping the document tree into LaTeX files. List of tuples
129
+ # (source start file, target name, title, author, documentclass
130
+ # [howto, manual, or own class]).
131
+ latex_documents = [
132
+ (master_doc, 'pyjabber.tex',
133
+ 'PyJabber Documentation',
134
+ 'Aarón Raya', 'manual'),
135
+ ]
136
+
137
+
138
+ # -- Options for manual page output ------------------------------------
139
+
140
+ # One entry per manual page. List of tuples
141
+ # (source start file, name, description, authors, manual section).
142
+ man_pages = [
143
+ (master_doc, 'pyjabber',
144
+ 'PyJabber Documentation',
145
+ [author], 1)
146
+ ]
147
+
148
+
149
+ # -- Options for Texinfo output ----------------------------------------
150
+
151
+ # Grouping the document tree into Texinfo files. List of tuples
152
+ # (source start file, target name, title, author,
153
+ # dir menu entry, description, category)
154
+ texinfo_documents = [
155
+ (master_doc, 'pyjabber',
156
+ 'PyJabber Documentation',
157
+ author,
158
+ 'pyjabber',
159
+ 'One line description of project.',
160
+ 'Miscellaneous'),
161
+ ]
162
+
163
+
164
+
@@ -0,0 +1 @@
1
+ .. include:: ../CONTRIBUTING.rst
@@ -0,0 +1 @@
1
+ .. include:: ../HISTORY.rst
@@ -0,0 +1,20 @@
1
+ PyJabber
2
+ ======================================
3
+
4
+ .. toctree::
5
+ :maxdepth: 2
6
+ :caption: Contents:
7
+
8
+ readme
9
+ installation
10
+ architecture
11
+ modules
12
+ contributing
13
+ authors
14
+ history
15
+
16
+ Indices and tables
17
+ ==================
18
+ * :ref:`genindex`
19
+ * :ref:`modindex`
20
+ * :ref:`search`