![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
A simple test case runner in Python that uses TOML configurations and decorator syntax.
A simple test case runner in Python that takes data in the format of a TOML file or dictionary and uses decorator syntax.
pip install pysvt
pip install --upgrade pysvt
Check the examples directory for more elaborate examples.
Function
Python
from pysvt import test
@test(file="<path_to_TOML_file>")
def function(arg1: int, arg2: int) -> int:
return arg1 + arg2
TOML
name = ["One and Two", "Two and Three"]
metadata = ["Add to 3", "Add to 5"]
i = [[1, 2], [2, 3]]
o = [3, 5]
or
[[cases]]
name = "One and Two"
i = [1, 2]
o = 3
metadata = "Add to 3"
[[cases]]
name = "Two and Three"
i = [2, 3]
o = 5
metadata = "Add to 5"
Class (if you want to test instance methods)
Python
from pysvt import test
# Specify the name of the method as the second argument
@test(file="<path_to_TOML_file>", "function")
class Solution:
def function(self, arg1: int, arg2: int) -> int:
return arg1 + arg2
TOML
name = ["One and Two", "Two and Three"]
metadata = ["Add to 3", "Add to 5"]
init = [] # Has to be specified, indicates class constructor arguments
i = [[1, 2], [2, 3]]
o = [3, 5]
or
[[cases]]
name = "One and Two"
i = [1, 2]
o = 3
metadata = "Add to 3"
init = [] # Has to be specified, indicates class constructor arguments
[[cases]]
name = "Two and Three"
i = [2, 3]
o = 5
metadata = "Add to 5"
init = []
poetry run python -m examples.<example_file_name>
pyproject.toml
CHANGELOG.md
FAQs
A simple test case runner in Python that uses TOML configurations and decorator syntax.
We found that pysvt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.