{"id":24175847,"url":"https://github.com/iht/dl-en-prod-2021","last_synced_at":"2026-06-10T10:31:39.373Z","repository":{"id":74375454,"uuid":"332029870","full_name":"iht/dl-en-prod-2021","owner":"iht","description":null,"archived":false,"fork":false,"pushed_at":"2021-01-30T10:14:04.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-29T23:42:04.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/iht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-22T18:27:01.000Z","updated_at":"2021-01-30T10:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"467fa037-63b6-4528-b443-0c0f29dd81cb","html_url":"https://github.com/iht/dl-en-prod-2021","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"iht/ml-in-prod","purl":"pkg:github/iht/dl-en-prod-2021","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iht%2Fdl-en-prod-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iht%2Fdl-en-prod-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iht%2Fdl-en-prod-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iht%2Fdl-en-prod-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iht","download_url":"https://codeload.github.com/iht/dl-en-prod-2021/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iht%2Fdl-en-prod-2021/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34149132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":"2025-01-13T02:33:22.040Z","updated_at":"2026-06-10T10:31:39.356Z","avatar_url":"https://github.com/iht.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Template for Python projects\n\nThis project contains a template for Python apps that implement training and\ninference of Machine Learning models. \n\nWith this template, you will be able to:\n\n* Use Python with the usual libraries for data science\n* Write tests for your app using the provided examples\n\nThis README.md is full of details for an easier reuse of this\ntemplate. But beware, **erase its contents and include yours before\npublishing your project**.\n\n## Dependencies\n\nThe only strong requirement is that you this template is written for\n**Python 3**. You can adapt it to Python 2 with minimal changes (most\nlikely, changing the print statements through the code)\n\n## Utilities and common libraries\n\nThis template imports **tensorflow**. The provided scripts will install these\ndependencies if they are missing in your system.\n\nIf you need to include additional dependencies, **please add new lines to the\nfile `requirements.txt`**, with the package name.\n\nYou can include any package available in the PyPi.\n\n## Directories structure\n\nIn the top dir, you will find the following two files:\n\n- `README.md`: This file will be shown as the default page in the\n  Overview of your project in Bitbucket or Stash. Use it as an example\n  of a README for your project.\n- `setup.py`: The main `setuptools`script for your project. You should\n  edit it to change the common properties of your project. If you want\n  to change the version of your project, edit `src/__init__.py` instead.\n- `requirements.txt`: Dependencies that must be installed for your\n  project to work. Include one package name per line. The packages\n  should be available in the official PyPi repository\n\nThere is also a hidden file:\n\n- `.gitignore`: Excludes many temporary and generated files from Git.\n\nThe template has the following folders:\n\n- `trainer`: Directory for the sources. This directory is a Python\n  package, with the following contents:\n    - `__init__.py`: Edit this file **to update the version** the\n      version of your project, and for any other tasks common to your\n      package\n    - `task.py`: A simple Python script with a main function,\n      and some small functions (intended to showcase how to write a\n      test).\n- `tests`: This directory contains the tests included in this template\n  as examples. Use the files included here as templates to write your\n  own tests.\n  \n## A note on testing\n\nThis template is using [PyTest](http://pytest.org) for the tests, with\nsome additional plugins for coverage calculations.\n\nTo launch the tests, PyTest offers different options. **The recommended way to\ntrigger the unit tests is by running the following command**:\n\n```shell\n$ python setup.py test\n```\n\nYou can also use the following options:\n\n* The `pytest` script\n* Calling it as a module in the top dir of your project (this is equivalent to\n  running `python setup.py test`)\n\nWe **discourage the use of the `pytest` script for testing**. If you\nuse this script, the top dir of your project is not included in the\npath, and you need to explicitly add it to your test. Only after that\nyou are able to import your own modules for the tests.\n\nFor instance, if your module is called `src`, and you are using the\n`pytest` script, you will need to do something like the following:\n\n``` python\nimport os\nimport sys\nsys.path.insert(0, os.path.pardir)\nfrom trainer import ...\n```\n\nThis is a violation of the Python PEP8 style guide, because you should always \ngroup all the `import` statements together. But this is impossible for\nyour `src` module unless you add it to the path.\n\nThis problem does not exist if you use PyTest as a module. This is the\napproach used in this template. In that case, the module `src` is\nsimply available in the path, you don't need to tweak any system\npath. When using `python -m pytest`, the previous code would become:\n\n```python\nfrom trainer import ...\n```\n\nSo for testing your project in local, please do `python -m pytest`\nrather than using `pytest`. In the CI jobs, the default pipeline\nscripts are using `python -m pytest`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiht%2Fdl-en-prod-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiht%2Fdl-en-prod-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiht%2Fdl-en-prod-2021/lists"}