SGen
======
Your welcome <3
Description
-----------
Sgen is a tool for generating test data structures in Python.
.. code-block:: python
from pprint import pprint
from sgen import Sgen, fields
class Pet(SGen):
name = fields.String()
class User(SGen):
name = fields.String()
pet = fields.Nested(Pet(), required=True)
def main():
datasets = list(User().positive())
pprint(datasets, indent=2)
if __name__ == '__main__':
main()
# [ {'name': None, 'pet': {'name': None}},
# {'name': None, 'pet': {}},
# {'name': None, 'pet': {'name': 'fszxSnf'}},
# {'pet': {'name': None}},
# {'pet': {}},
# {'pet': {'name': 'RzGTdNzhr'}},
# {'name': 'ttr', 'pet': {'name': None}},
# {'name': 'ttr', 'pet': {}},
# {'name': 'ttr', 'pet': {'name': 'ZpvMOyR'}}]
In short, SGen can be used to:
* Generating positive data structures
* Generating negative data structures
* Checking the functionality of data validation at the application input
Get It Now
----------
.. code-block:: console
pip install sgen
Documentation
-------------
Full documentation is available at `here <https://sgen.readthedocs.io/>`_
Requirements
------------
- Python >= 3.8
Project Links
-------------
* `Repo <https://github.com/Apels1nA/sgen>`_
* `Docs <https://sgen.readthedocs.io/en/latest/index.html>`_
* `Changelog <https://sgen.readthedocs.io/en/latest/changelog.html>`_
* `Issues <https://github.com/Apels1nA/sgen/issues>`_
License
-------
* ``MIT`` licensed.
Raw data
{
"_id": null,
"home_page": "https://github.com/Apels1nA/sgen/",
"name": "sgen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "generate, data, json, test, schema, structure",
"author": "Ilya Verner",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/4c/bf/cf992328245f8bd3df26c35a9e863b049b54cc12e2e835d08501ac65bdf5/sgen-1.0.2.tar.gz",
"platform": null,
"description": "SGen\n======\n\nYour welcome <3\n\nDescription\n-----------\n\nSgen is a tool for generating test data structures in Python.\n\n.. code-block:: python\n\n from pprint import pprint\n\n from sgen import Sgen, fields\n\n\n class Pet(SGen):\n name = fields.String()\n\n\n class User(SGen):\n name = fields.String()\n pet = fields.Nested(Pet(), required=True)\n\n\n def main():\n datasets = list(User().positive())\n\n pprint(datasets, indent=2)\n\n\n if __name__ == '__main__':\n main()\n\n # [ {'name': None, 'pet': {'name': None}},\n # {'name': None, 'pet': {}},\n # {'name': None, 'pet': {'name': 'fszxSnf'}},\n # {'pet': {'name': None}},\n # {'pet': {}},\n # {'pet': {'name': 'RzGTdNzhr'}},\n # {'name': 'ttr', 'pet': {'name': None}},\n # {'name': 'ttr', 'pet': {}},\n # {'name': 'ttr', 'pet': {'name': 'ZpvMOyR'}}]\n\n\nIn short, SGen can be used to:\n\n* Generating positive data structures\n* Generating negative data structures\n* Checking the functionality of data validation at the application input\n\nGet It Now\n----------\n\n.. code-block:: console\n\n pip install sgen\n\nDocumentation\n-------------\n\nFull documentation is available at `here <https://sgen.readthedocs.io/>`_\n\nRequirements\n------------\n\n- Python >= 3.8\n\nProject Links\n-------------\n\n* `Repo <https://github.com/Apels1nA/sgen>`_\n* `Docs <https://sgen.readthedocs.io/en/latest/index.html>`_\n* `Changelog <https://sgen.readthedocs.io/en/latest/changelog.html>`_\n* `Issues <https://github.com/Apels1nA/sgen/issues>`_\n\nLicense\n-------\n\n* ``MIT`` licensed.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Generating test data structures",
"version": "1.0.2",
"project_urls": {
"Changelog": "https://sgen.readthedocs.io/en/latest/changelog.html",
"Docs": "https://sgen.readthedocs.io/en/latest/index.html",
"Homepage": "https://github.com/Apels1nA/sgen/",
"Issues": "https://github.com/Apels1nA/sgen/issues",
"Repo": "https://github.com/Apels1nA/sgen"
},
"split_keywords": [
"generate",
" data",
" json",
" test",
" schema",
" structure"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "33fb03ab9dc40f894b4c56a004d40972b4da865320269047fb549b7bff869640",
"md5": "e1b4c7f25d03e51558f7bb77d15b6814",
"sha256": "a3131ebc1d6823a1265341e0c7ab46d7ee863ec99b5ca04cbbc123cf99b98f68"
},
"downloads": -1,
"filename": "sgen-1.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e1b4c7f25d03e51558f7bb77d15b6814",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8090,
"upload_time": "2024-04-08T08:27:27",
"upload_time_iso_8601": "2024-04-08T08:27:27.264621Z",
"url": "https://files.pythonhosted.org/packages/33/fb/03ab9dc40f894b4c56a004d40972b4da865320269047fb549b7bff869640/sgen-1.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4cbfcf992328245f8bd3df26c35a9e863b049b54cc12e2e835d08501ac65bdf5",
"md5": "b82cb27efa9c18e752b1d59705586258",
"sha256": "550371f2b7541093f52d9329cd0a6169bf7bfb94b3e49a7cc88b5d4874a0c1ba"
},
"downloads": -1,
"filename": "sgen-1.0.2.tar.gz",
"has_sig": false,
"md5_digest": "b82cb27efa9c18e752b1d59705586258",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 12607,
"upload_time": "2024-04-08T08:27:28",
"upload_time_iso_8601": "2024-04-08T08:27:28.665961Z",
"url": "https://files.pythonhosted.org/packages/4c/bf/cf992328245f8bd3df26c35a9e863b049b54cc12e2e835d08501ac65bdf5/sgen-1.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-08 08:27:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Apels1nA",
"github_project": "sgen",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sgen"
}