python-plugins 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.
@@ -0,0 +1,60 @@
1
+ name: Publish Python distribution to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ push:
7
+ tags:
8
+ - 'v**'
9
+
10
+
11
+ jobs:
12
+ release-build:
13
+ name: Build distribution
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.x"
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install hatch
27
+ pip install build
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ python -m build
32
+
33
+ - name: Upload the distribution packages
34
+ uses: actions/upload-artifact@v4
35
+ with:
36
+ name: release-dists
37
+ path: dist/
38
+
39
+ pypi-publish:
40
+ name: Publish Python distribution to PyPI
41
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ environment:
46
+ name: pypi
47
+ url: https://pypi.org/p/Python-Plugins
48
+ permissions:
49
+ id-token: write
50
+
51
+ steps:
52
+ - name: Retrieve release distributions
53
+ uses: actions/download-artifact@v4
54
+ with:
55
+ name: release-dists
56
+ path: dist/
57
+
58
+ - name: Publish release distributions to PyPI
59
+ uses: pypa/gh-action-pypi-publish@release/v1
60
+
@@ -0,0 +1,28 @@
1
+ ### vscode
2
+ .vscode
3
+
4
+ ### JupyterNotebooks ###
5
+ .ipynb_checkpoints
6
+ */.ipynb_checkpoints/*
7
+
8
+ ### Python ###
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # Environments
15
+ venv/
16
+
17
+ # Distribution / packaging
18
+ dist/
19
+ build/
20
+
21
+ # Unit test / coverage reports
22
+ .cache/
23
+ .pytest_cache/
24
+ .coverage
25
+ htmlcov/
26
+
27
+ # Sphinx documentation
28
+ docs/_build/
@@ -0,0 +1,39 @@
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ # Set the OS, Python version and other tools you might need
9
+ build:
10
+ os: "ubuntu-22.04"
11
+ tools:
12
+ python: "3.12"
13
+ # You can also specify other tool versions:
14
+ # nodejs: "19"
15
+ # rust: "1.64"
16
+ # golang: "1.19"
17
+
18
+ # Build documentation in the "docs/" directory with Sphinx
19
+ sphinx:
20
+ configuration: docs/conf.py
21
+
22
+ # Optionally build your docs in additional formats such as PDF and ePub
23
+ # formats:
24
+ # - pdf
25
+ # - epub
26
+
27
+ # Optional but recommended, declare the Python requirements required
28
+ # to build your documentation
29
+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30
+ # python:
31
+ # install:
32
+ # - requirements: docs/requirements.txt
33
+
34
+ python:
35
+ install:
36
+ - method: pip
37
+ path: .
38
+ - requirements: docs/requirements.txt
39
+
@@ -0,0 +1,6 @@
1
+ v0.1.0
2
+ ------
3
+
4
+ Released 2024-08-27
5
+
6
+ - Init release
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present huadong <david.dong.hua@gmail.com>
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,62 @@
1
+ Metadata-Version: 2.3
2
+ Name: python-plugins
3
+ Version: 0.1.0
4
+ Summary: A collection of Python functions and classes.
5
+ Project-URL: Documentation, https://python-plugins.readthedocs.io
6
+ Project-URL: Source, https://github.com/ojso/python-plugins
7
+ Project-URL: Homepage, https://github.com/ojso/python-plugins
8
+ Author-email: huadong <david.dong.hua@gmail.com>
9
+ License: MIT License
10
+
11
+ Copyright (c) 2024-present huadong <david.dong.hua@gmail.com>
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
22
+
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
30
+ License-File: LICENSE.rst
31
+ Keywords: plugin,utils
32
+ Classifier: Development Status :: 3 - Alpha
33
+ Classifier: Intended Audience :: Developers
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Programming Language :: Python
36
+ Classifier: Programming Language :: Python :: 3
37
+ Classifier: Programming Language :: Python :: 3.10
38
+ Classifier: Programming Language :: Python :: 3.11
39
+ Classifier: Topic :: Software Development :: Build Tools
40
+ Requires-Python: >=3.10
41
+ Description-Content-Type: text/x-rst
42
+
43
+ python-plugins
44
+ =====================
45
+
46
+ python-plugins is a collection of Python plugins, functions and classes.
47
+
48
+ License
49
+ -------
50
+
51
+ python-plugins is distributed under the terms of the `MIT <https://opensource.org/licenses/MIT>`_.
52
+
53
+
54
+ Installation
55
+ ------------
56
+
57
+ Install and update using pip:
58
+
59
+ .. code-block:: console
60
+
61
+ $ pip install -U python-plugins
62
+
@@ -0,0 +1,20 @@
1
+ python-plugins
2
+ =====================
3
+
4
+ python-plugins is a collection of Python plugins, functions and classes.
5
+
6
+ License
7
+ -------
8
+
9
+ python-plugins is distributed under the terms of the `MIT <https://opensource.org/licenses/MIT>`_.
10
+
11
+
12
+ Installation
13
+ ------------
14
+
15
+ Install and update using pip:
16
+
17
+ .. code-block:: console
18
+
19
+ $ pip install -U python-plugins
20
+
@@ -0,0 +1,20 @@
1
+ # Minimal makefile for Sphinx documentation
2
+ #
3
+
4
+ # You can set these variables from the command line, and also
5
+ # from the environment for the first two.
6
+ SPHINXOPTS ?=
7
+ SPHINXBUILD ?= sphinx-build
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,4 @@
1
+ API
2
+ ===
3
+
4
+
@@ -0,0 +1,4 @@
1
+ Changes
2
+ =======
3
+
4
+ .. include:: ../CHANGES.rst
@@ -0,0 +1,31 @@
1
+ # Configuration file for the Sphinx documentation builder.
2
+ #
3
+ # For the full list of built-in configuration values, see the documentation:
4
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html
5
+
6
+ # -- Project information -----------------------------------------------------
7
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8
+
9
+ project = 'python-plugins'
10
+ copyright = '2024, HuaDong'
11
+ author = 'HuaDong'
12
+
13
+ # -- General configuration ---------------------------------------------------
14
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
15
+
16
+ extensions = [
17
+ 'sphinx.ext.autodoc',
18
+ 'sphinx.ext.intersphinx',
19
+ 'sphinx.ext.doctest',
20
+ 'sphinx.ext.autosummary',
21
+ ]
22
+
23
+ templates_path = ['_templates']
24
+ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
25
+
26
+ # -- Options for HTML output -------------------------------------------------
27
+ # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
28
+
29
+ html_theme = 'classic'
30
+ html_static_path = ['_static']
31
+ html_title = "python-plugins Documentation"
@@ -0,0 +1 @@
1
+ .. include:: ../examples/README.rst
@@ -0,0 +1,20 @@
1
+ Welcome to python-plugins's documentation!
2
+ ============================================
3
+
4
+ **python-plugins** is a Flask extensions with admin, SQLAlchemy, babel, forms, fields, widgets, and so on.
5
+
6
+ .. toctree::
7
+ :maxdepth: 2
8
+ :caption: Contents:
9
+
10
+ usage
11
+ api
12
+ examples
13
+ changes
14
+
15
+ Indices and tables
16
+ ==================
17
+
18
+ * :ref:`genindex`
19
+ * :ref:`modindex`
20
+ * :ref:`search`
@@ -0,0 +1,35 @@
1
+ @ECHO OFF
2
+
3
+ pushd %~dp0
4
+
5
+ REM Command file for Sphinx documentation
6
+
7
+ if "%SPHINXBUILD%" == "" (
8
+ set SPHINXBUILD=sphinx-build
9
+ )
10
+ set SOURCEDIR=.
11
+ set BUILDDIR=_build
12
+
13
+ %SPHINXBUILD% >NUL 2>NUL
14
+ if errorlevel 9009 (
15
+ echo.
16
+ echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17
+ echo.installed, then set the SPHINXBUILD environment variable to point
18
+ echo.to the full path of the 'sphinx-build' executable. Alternatively you
19
+ echo.may add the Sphinx directory to PATH.
20
+ echo.
21
+ echo.If you don't have Sphinx installed, grab it from
22
+ echo.https://www.sphinx-doc.org/
23
+ exit /b 1
24
+ )
25
+
26
+ if "%1" == "" goto help
27
+
28
+ %SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29
+ goto end
30
+
31
+ :help
32
+ %SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33
+
34
+ :end
35
+ popd
@@ -0,0 +1,2 @@
1
+ # Defining the exact version will make sure things don't break
2
+ sphinx
@@ -0,0 +1,14 @@
1
+ =====
2
+ Usage
3
+ =====
4
+
5
+ .. _installation:
6
+
7
+ Installation
8
+ ==============
9
+
10
+ Install and update using pip:
11
+
12
+ .. code-block:: console
13
+
14
+ (.venv) $ pip install -U python-plugins
@@ -0,0 +1,17 @@
1
+ =============
2
+ Examples
3
+ =============
4
+
5
+ Install
6
+ =========
7
+
8
+ Type these commands in the terminal:
9
+
10
+ .. code-block:: bash
11
+
12
+ $ git clone https://github.com/ojso/python-plugins.git
13
+ $ cd python-plugins/examples
14
+ $ python3 -m venv venv
15
+ $ source venv/bin/activate
16
+ $ pip install python-plugins
17
+
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "python-plugins"
7
+ dynamic = ["version"]
8
+ description = 'A collection of Python functions and classes.'
9
+ readme = "README.rst"
10
+ license = { file = "LICENSE.rst" }
11
+ keywords = ["plugin", "utils"]
12
+ authors = [
13
+ { name = "huadong", email = "david.dong.hua@gmail.com" },
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Developers",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Topic :: Software Development :: Build Tools",
20
+ "Programming Language :: Python",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ ]
25
+ requires-python = ">=3.10"
26
+ dependencies = [
27
+ ]
28
+
29
+ [project.urls]
30
+ Documentation = "https://python-plugins.readthedocs.io"
31
+ Source = "https://github.com/ojso/python-plugins"
32
+ Homepage = "https://github.com/ojso/python-plugins"
33
+
34
+ [tool.hatch.version]
35
+ path = "src/python_plugins/__about__.py"
@@ -0,0 +1,2 @@
1
+ hatch
2
+ build
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1 @@
1
+