{"id":19292137,"url":"https://github.com/nasa-pds/wds","last_synced_at":"2025-08-23T12:37:34.223Z","repository":{"id":198544567,"uuid":"673516649","full_name":"NASA-PDS/wds","owner":"NASA-PDS","description":"A CSS implementation of the PDS design system for websites and web applications. ","archived":false,"fork":false,"pushed_at":"2025-06-11T17:53:00.000Z","size":358,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-07-31T09:57:57.364Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NASA-PDS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-01T20:07:36.000Z","updated_at":"2025-06-10T18:00:54.000Z","dependencies_parsed_at":"2024-03-26T19:25:53.950Z","dependency_job_id":"28a325af-63e1-4a3b-b90c-9e02bf0b02c9","html_url":"https://github.com/NASA-PDS/wds","commit_stats":null,"previous_names":["nasa-pds/wds"],"tags_count":6,"template":false,"template_full_name":"NASA-PDS/template-repo-python","purl":"pkg:github/NASA-PDS/wds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fwds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fwds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fwds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fwds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NASA-PDS","download_url":"https://codeload.github.com/NASA-PDS/wds/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NASA-PDS%2Fwds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271747026,"owners_count":24813605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-11-09T22:29:26.299Z","updated_at":"2025-08-23T12:37:34.198Z","avatar_url":"https://github.com/NASA-PDS.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDS Template Repository for Python\n\nThis is the template repository for PDS's Python projects.\n\nThis repository aims at being a base for new python repositories used in PDS. It guides developers to ease the initialization of a project and recommends preferred options to standardize developments and ease maintenance. Simply click the \u003ckbd\u003eUse this template\u003c/kbd\u003e button ↑ (or use [this hyperlink](https://github.com/NASA-PDS/pds-template-repo-python/generate)).\n\n\n## 🏃 Getting Started With This Template\n\nSee our wiki page for more info on setting up your new repo. You can remove this section once you have completed the necessary start-up steps.\n\nhttps://github.com/NASA-PDS/nasa-pds.github.io/wiki/Git-and-Github-Guide#creating-a-new-repo\n\n**👉 Important!** You must assign the teams as mentioned on the wiki page above! At a minimum, these are:\n\n| Team                                | Permission |\n| ----------------------------------- | ---------- |\n| `@NASA-PDS/pds-software-committers` | `write`    |\n| `@NASA-PDS/pds-software-pmc`        | `admin`    |\n| `@NASA-PDS/pds-operations`          | `admin`    |\n\n---\n\n# My Project\n\nThis is the XYZ that does this, that, and the other thing for the Planetary Data System.\n\nPlease visit our website at: https://nasa-pds.github.io/pds-my-project\n\nIt has useful information for developers and end-users.\n\n## Prerequisites\n\nInclude any system-wide requirements (`brew install`, `apt-get install`, `yum install`, …) **Python 3** should be used regardless as [Python 2 reached end-of-life on January 1st, 2020](https://pythonclock.org/).\n\n\n## User Quickstart\n\nInstall with:\n\n    pip install my_pds_module\n\nIf possible, make it so that your program works out of the box without any additional configuration—but see the [Configuration](###configuration) section for details.\n\nTo execute, run:\n\n    (put your run commands here)\n\n\n## Code of Conduct\n\nAll users and developers of the NASA-PDS software are expected to abide by our [Code of Conduct](https://github.com/NASA-PDS/.github/blob/main/CODE_OF_CONDUCT.md). Please read this to ensure you understand the expectations of our community.\n\n\n## Development\n\nTo develop this project, use your favorite text editor, or an integrated development environment with Python support, such as [PyCharm](https://www.jetbrains.com/pycharm/).\n\n\n### Contributing\n\nFor information on how to contribute to NASA-PDS codebases please take a look at our [Contributing guidelines](https://github.com/NASA-PDS/.github/blob/main/CONTRIBUTING.md).\n\n\n### Installation\n\nInstall in editable mode and with extra developer dependencies into your virtual environment of choice:\n\n    pip install --editable '.[dev]'\n\nConfigure the `pre-commit` hooks:\n\n    pre-commit install\n    pre-commit install -t pre-push\n    pre-commit install -t prepare-commit-msg\n    pre-commit install -t commit-msg\n\nThese hooks check code formatting and also aborts commits that contain secrets such as passwords or API keys. However, a one time setup is required in your global Git configuration. See [the wiki entry on Git Secrets](https://github.com/NASA-PDS/nasa-pds.github.io/wiki/Git-and-Github-Guide#git-secrets) to learn how.\n\n### Packaging\n\nTo isolate and be able to re-produce the environment for this package, you should use a [Python Virtual Environment](https://docs.python.org/3/tutorial/venv.html). To do so, run:\n\n    python -m venv venv\n\nThen exclusively use `venv/bin/python`, `venv/bin/pip`, etc.\n\nIf you have `tox` installed and would like it to create your environment and install dependencies for you run:\n\n    tox --devenv \u003cname you'd like for env\u003e -e dev\n\nDependencies for development are specified as the `dev` `extras_require` in `setup.cfg`; they are installed into the virtual environment as follows:\n\n    pip install --editable '.[dev]'\n\nAll the source code is in a sub-directory under `src`.\n\nYou should update the `setup.cfg` file with:\n\n- name of your module\n- license, default apache, update if needed\n- description\n- download url, when you release your package on github add the url here\n- keywords\n- classifiers\n- install_requires, add the dependencies of you package\n- extras_require, add the development Dependencies of your package\n- entry_points, when your package can be called in command line, this helps to deploy command lines entry points pointing to scripts in your package\n\nFor the packaging details, see https://packaging.python.org/tutorials/packaging-projects/ as a reference.\n\n\n### Configuration\n\nIt is convenient to use ConfigParser package to manage configuration. It allows a default configuration which can be overwritten by the user in a specific file in their environment. See https://pymotw.com/2/ConfigParser/\n\nFor example:\n\n    candidates = ['my_pds_module.ini', 'my_pds_module.ini.default']\n    found = parser.read(candidates)\n\n\n### Logs\n\nYou should not use `print()`vin the purpose of logging information on the execution of your code. Depending on where the code runs these information could be redirected to specific log files.\n\nTo make that work, start each Python file with:\n\n```python\nimport logging\n\nlogger = logging.getLogger(__name__)\n```\n\nTo log a message:\n\n    logger.info(\"my message\")\n\nIn your `main` routine, include:\n\n    logging.basicConfig(level=logging.INFO)\n\nto get a basic logging system configured.\n\n\n### Tooling\n\nThe `dev` `extras_require` included in the template repo installs `black`, `flake8` (plus some plugins), and `mypy` along with default configuration for all of them. You can run all of these (and more!) with:\n\n    tox -e lint\n\n\n### Code Style\n\nSo that your code is readable, you should comply with the [PEP8 style guide](https://www.python.org/dev/peps/pep-0008/). Our code style is automatically enforced in via [black](https://pypi.org/project/black/) and [flake8](https://flake8.pycqa.org/en/latest/). See the [Tooling section](#-tooling) for information on invoking the linting pipeline.\n\n❗Important note for template users❗\nThe included [pre-commit configuration file](.pre-commit-config.yaml) executes `flake8` (along with `mypy`) across the entire `src` folder and not only on changed files. If you're converting a pre-existing code base over to this template that may result in a lot of errors that you aren't ready to deal with.\n\nYou can instead execute `flake8` only over a diff of the current changes being made by modifying the `pre-commit` `entry` line:\n\n    entry: git diff -u | flake8 --diff\n\nOr you can change the `pre-commit` config so `flake8` is only called on changed files which match a certain filtering criteria:\n\n    -   repo: local\n        hooks:\n        -   id: flake8\n            name: flake8\n            entry: flake8\n            files: ^src/|tests/\n            language: system\n\n\n### Recommended Libraries\n\nPython offers a large variety of libraries. In PDS scope, for the most current usage we should use:\n\n| Library      | Usage                                           |\n|--------------|------------------------------------------------ |\n| configparser | manage and parse configuration files            |\n| argparse     | command line argument documentation and parsing |\n| requests     | interact with web APIs                          |\n| lxml         | read/write XML files                            |\n| json         | read/write JSON files                           |\n| pyyaml       | read/write YAML files                           |\n| pystache     | generate files from templates                   |\n\nSome of these are built into Python 3; others are open source add-ons you can include in your `requirements.txt`.\n\n\n### Tests\n\nThis section describes testing for your package.\n\nA complete \"build\" including test execution, linting (`mypy`, `black`, `flake8`, etc.), and documentation build is executed via:\n\n    tox\n\n\n#### Unit tests\n\nYour project should have built-in unit tests, functional, validation, acceptance, etc., tests.\n\nFor unit testing, check out the [unittest](https://docs.python.org/3/library/unittest.html) module, built into Python 3.\n\nTests objects should be in packages `test` modules or preferably in project 'tests' directory which mirrors the project package structure.\n\nOur unit tests are launched with command:\n\n    pytest\n\nIf you want your tests to run automatically as you make changes start up `pytest` in watch mode with:\n\n    ptw\n\n\n#### Integration/Behavioral Tests\n\nOne should use the `behave package` and push the test results to \"testrail\".\n\nSee an example in https://github.com/NASA-PDS/pds-doi-service#behavioral-testing-for-integration--testing\n\n\n### Documentation\n\nYour project should use [Sphinx](https://www.sphinx-doc.org/en/master/) to build its documentation. PDS' documentation template is already configured as part of the default build. You can build your projects docs with:\n\n    python setup.py build_sphinx\n\nYou can access the build files in the following directory relative to the project root:\n\n    build/sphinx/html/\n\n\n## Build\n\n    pip install wheel\n    python setup.py sdist bdist_wheel\n\n\n## Publication\n\nNASA PDS packages can publish automatically using the [Roundup Action](https://github.com/NASA-PDS/roundup-action), which leverages GitHub Actions to perform automated continuous integration and continuous delivery. A default workflow that includes the Roundup is provided in the `.github/workflows/unstable-cicd.yaml` file. (Unstable here means an interim release.)\n\n\n### Manual Publication\n\nCreate the package:\n\n    python setup.py bdist_wheel\n\nPublish it as a Github release.\n\nPublish on PyPI (you need a PyPI account and configure `$HOME/.pypirc`):\n\n    pip install twine\n    twine upload dist/*\n\nOr publish on the Test PyPI (you need a Test PyPI account and configure `$HOME/.pypirc`):\n\n    pip install twine\n    twine upload --repository testpypi dist/*\n\n## CI/CD\n\nThe template repository comes with our two \"standard\" CI/CD workflows, `stable-cicd` and `unstable-cicd`. The unstable build runs on any push to `main` (± ignoring changes to specific files) and the stable build runs on push of a release branch of the form `release/\u003crelease version\u003e`. Both of these make use of our GitHub actions build step, [Roundup](https://github.com/NASA-PDS/roundup-action). The `unstable-cicd` will generate (and constantly update) a SNAPSHOT release. If you haven't done a formal software release you will end up with a `v0.0.0-SNAPSHOT` release (see NASA-PDS/roundup-action#56 for specifics).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fwds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasa-pds%2Fwds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasa-pds%2Fwds/lists"}