{"id":34710993,"url":"https://github.com/pyecore/setuptools-pyecore","last_synced_at":"2026-05-22T21:31:52.865Z","repository":{"id":57466011,"uuid":"134281122","full_name":"pyecore/setuptools-pyecore","owner":"pyecore","description":"A setuptools command for generating Python classes from Ecore models","archived":false,"fork":false,"pushed_at":"2018-10-06T13:58:48.000Z","size":92,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-06T20:09:59.107Z","etag":null,"topics":["emf","metamodel","modeling","python","setuptools"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyecore.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-21T14:34:14.000Z","updated_at":"2018-10-06T12:13:28.000Z","dependencies_parsed_at":"2022-08-31T03:20:59.881Z","dependency_job_id":null,"html_url":"https://github.com/pyecore/setuptools-pyecore","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pyecore/setuptools-pyecore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecore%2Fsetuptools-pyecore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecore%2Fsetuptools-pyecore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecore%2Fsetuptools-pyecore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecore%2Fsetuptools-pyecore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyecore","download_url":"https://codeload.github.com/pyecore/setuptools-pyecore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecore%2Fsetuptools-pyecore/sbom","scorecard":{"id":751333,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyecore/setuptools-pyecore","commit":"f027720cedb6a3ea6aa0651a1422c733e4f40b19"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.2.0 not signed: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12701792","Warn: release artifact 0.1.1 not signed: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12642519","Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12614876","Warn: release artifact 0.2.0 does not have provenance: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12701792","Warn: release artifact 0.1.1 does not have provenance: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12642519","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/pyecore/setuptools-pyecore/releases/12614876"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T20:28:34.975Z","repository_id":57466011,"created_at":"2025-08-22T20:28:34.975Z","updated_at":"2025-08-22T20:28:34.975Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33369537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emf","metamodel","modeling","python","setuptools"],"created_at":"2025-12-24T23:57:00.830Z","updated_at":"2026-05-22T21:31:52.861Z","avatar_url":"https://github.com/pyecore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"setuptools-pyecore\n==================\n\n|Build Status| |Coverage Status| |PyPI Version| |GitHub Version| |License|\n\n.. |Build Status| image:: https://travis-ci.org/pyecore/setuptools-pyecore.svg\n   :target: https://travis-ci.org/pyecore/setuptools-pyecore\n   :alt: Build Status\n\n.. |Coverage Status| image:: https://coveralls.io/repos/github/pyecore/setuptools-pyecore/badge.svg?branch=master\n   :target: https://coveralls.io/github/pyecore/setuptools-pyecore?branch=master\n   :alt: Coverage Status\n\n.. |PyPI Version| image:: https://badge.fury.io/py/setuptools-pyecore.svg\n   :target: https://pypi.org/project/setuptools-pyecore\n   :alt: PyPI Version\n\n.. |GitHub Version| image:: https://badge.fury.io/gh/pyecore%2Fsetuptools-pyecore.svg\n   :target: https://github.com/pyecore/setuptools-pyecore/releases\n   :alt: GitHub Version\n\n.. |License| image:: https://img.shields.io/github/license/pyecore/setuptools-pyecore.svg\n   :target: https://raw.githubusercontent.com/pyecore/setuptools-pyecore/master/LICENSE\n   :alt: License\n\n.. contents:: Table of Contents\n   :depth: 2\n\nOverview\n--------\n\nA ``setuptools`` command for generating Python code from Ecore models.\n\nThis is an extension for `setuptools \u003chttps://pypi.org/project/setuptools/\u003e`__ integrating the `pyecoregen \u003chttps://github.com/pyecore/pyecoregen\u003e`__ code generator into the Python packaging process. It encapsulates ``pyecoregen`` and provides the user a ``setuptools`` command called ``pyecore`` to control the generation process.\n\nIn a basic setup the user doesn't have to configure the generation process at all because ``setuptools-pyecore`` discovers Ecore models located in the current working directory and triggers the code generation for each detected Ecore model. Also a meaningful output folder is chosen automatically.\n\nOf course the user has to possibility to customize the generation process. The command line options of ``pyecoregen`` are also available through the ``pyecore`` setuptools command. The user has the choice to pass the options on the command line or configure the code generation in a dedicated section in the ``setup.cfg`` file.\n\nInstallation\n------------\n\n``setuptools-pyecore`` can be installed in various ways. To run it the following prerequisites have to be fulfilled:\n\n- Python 3.4+\n- setuptools\n\nAfter installation, the used Python environment has a new setuptools command called ``pyecore``.\n\nFrom Source Code\n****************\n\n::\n\n    \u003e git clone https://github.com/pyecore/setuptools-pyecore.git\n    \u003e cd setuptools-pyecore\n    \u003e pip install .\n\nFrom PyPI\n*********\n\n::\n\n    \u003e pip install setuptools-pyecore\n\nFrom GitHub Releases\n********************\n\n::\n\n    \u003e pip install \u003csetuptools-pyecore_wheel\u003e\n\nUsage\n-----\n\nIntegration\n***********\n\nFor a smooth user experience it's recommended to pass ``setuptools-pyecore`` using the ``setup_requires`` argument of setup function. Additionally the generated Python code depends on the ``pyecore`` library which should be added to ``install_requires`` argument:\n\n.. code:: python\n\n    setup(\n        ...\n        setup_requires=['setuptools-pyecore'],\n        install_requires=['pyecore']\n        ...\n    )\n\nBefore generating Python code from a given Ecore model ``setuptools`` will automatically check the Python environment and download ``setuptools-pyecore`` from `PyPI \u003chttps://pypi.org\u003e`__ if it's missing. During the installation of the project package ``pip`` will install ``pyecore`` into the Python environment.\n\nConfiguration\n*************\n\n``setuptools-pyecore`` provides two possibilities to configure the pyecore generator.\n\nAll options can be passed on the command line after the ``pyecore`` command:\n\n::\n\n    \u003e python setup.py pyecore --auto-register-package\n\nIt's also possible to pass several options to ``pyecoregen`` or execute multiple commands at once:\n\n::\n\n    \u003e python setup.py pyecore --auto-register-package --output \"default=gen\" bdist_wheel\n\nSee ``python setup.py pyecore --help`` for available command line options:\n\n::\n\n    \u003e python setup.py pyecore --help\n    ...\n    Options for 'PyEcoreCommand' command:\n      --ecore-models (-e)      specify Ecore models to generate code for\n      --output (-o)            specify directories where output is generated\n      --user-modules           dotted names of modules with user-provided mixins\n                               to import from generated classes\n      --auto-register-package  Generate package auto-registration for the PyEcore\n                               'global_registry'\n    ...\n\nThe ``pyecoregen`` documentation explains all `command line options \u003chttps://github.com/pyecore/pyecoregen/blob/master/README.rst\u003e`__ in detail.\n\nApart from passing options on the command line it's also possible to add a dedicated ``[pyecore]`` section to ``setup.cfg``. The following example section contains all available options:\n\n.. code:: ini\n\n    [pyecore]\n    # Specify Ecore models to generate code for; default: None\n    #ecore-models = \u003cecore-model\u003e [\u003cecore-model\u003e ...]\n    # Specify directories where output is generated; default: \u003cecore-model-dir\u003e\n    output = default=gen\n    # Dotted names of modules with user-provided mixins to import from generated classes; default: None\n    #user-modules = [\u003cecore-model\u003e=\u003cuser module\u003e]\n    #               [\u003cecore-model\u003e=\u003cuser module\u003e ...]\n    # Generate package auto-registration for the PyEcore 'global_registry' (yes|no); default: no\n    auto-register-package = yes\n\nA reference configuration is provided in the ``resources`` directory.\n\n``pyecoregen`` inherits the log level globally configured for ``setuptools``. To set the verbosity to a certain log level pass the global options ``verbose`` or ``quiet`` straight before the ``pyecore`` command on the command line:\n\n::\n\n    \u003e python setup.py --verbose pyecore\n\nAlternatively, you can add these options to the ``[global]`` section of your ``setup.cfg``:\n\n.. code:: ini\n\n    [global]\n    # Run verbosely (yes|no); default: yes\n    #verbose = yes\n    # Run quietly and turns verbosity off (yes|no); default: no\n    quiet = yes\n\nSample\n******\n\nBesides the ``setuptools-pyecore`` source code a sample project called ``library`` is provided in the ``samples`` directory. This sample consists of the Ecore model ``library`` and a setup script. During the execution of ``setuptools-pyecore`` a Python package will be generated into the ``library`` package directory representing the classes from the ``library`` Ecore model.\n\nTo generate code out of the Ecore model and build a ``library`` wheel package execute the following command:\n\n::\n\n    \u003e python setup.py pyecore bdist_wheel\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyecore%2Fsetuptools-pyecore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyecore%2Fsetuptools-pyecore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyecore%2Fsetuptools-pyecore/lists"}