{"id":15921806,"url":"https://github.com/devforfu/playrix","last_synced_at":"2025-04-03T12:21:53.137Z","repository":{"id":75401476,"uuid":"146706069","full_name":"devforfu/playrix","owner":"devforfu","description":"Testing task for Playrix","archived":false,"fork":false,"pushed_at":"2018-08-31T04:56:40.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T01:42:50.671Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devforfu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-30T06:32:32.000Z","updated_at":"2018-08-31T04:56:41.000Z","dependencies_parsed_at":"2023-06-06T09:31:07.994Z","dependency_job_id":null,"html_url":"https://github.com/devforfu/playrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fplayrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fplayrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fplayrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devforfu%2Fplayrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devforfu","download_url":"https://codeload.github.com/devforfu/playrix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998449,"owners_count":20866742,"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","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-10-06T20:02:16.488Z","updated_at":"2025-04-03T12:21:53.119Z","avatar_url":"https://github.com/devforfu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playrix Testing Task\n\nThe Playrix test task implementation. Includes a CLI utility generating and \nparsing random archives with information about game objects.\n\n\n## Project Structure\n\nThe following modules are included:\n1. `playrix/generate.py` - utilities to generate random XML files and archives;\n2. `playrix/parse.py` - parsing generated XML archives;\n3. `playrix/utils.py` - additional helpers;\n4. `cli.py` - command-line interface to invoke generating and parsing commands.\n\nTo test the implementation of main project's classes, one could use \n[tox](https://tox.readthedocs.io/en/latest/) automation tool. Using `tox`, you \nonly need to navigate into project's folder and run:\n```bash\n$ cd playrix \n$ tox\n``` \n\n## Commands\n\nTo generate a bunch of archives with XML files, use:\n```bash\n(venv) $ python cli.py generate 100 archives\n```\n\nTo parse a directory with generated archives:\n```bash\n(venv) $ python cli.py parse archives output\n``` \n\n## Implementation Details\n\nThe core library used in the project is `lxml`. The library allows to generate \nXML trees in object-oriented fashion and save them into text files.\n\nThe `click` library allows to build sophisticated hierarchical command-line\ninterfaces. It is not really required in our case of a simple project with only\ntwo commands, and a couple of available options but in general, the library is\nvery powerful and convenient tool.\n\nThe `Pandas` library (and its dependencies) is only used to save information\ninto CSV format. We could use built-in `csv` library instead because our data \nprocessing code is quite simple.\n\nFinally, the `pytest` library is used to run test suits. \n\n\n## Further Improvements\n\nTo gain a computation speed-up, one could write critical fragments of the code \nwith [Cython](http://cython.org), or use `numpy` arrays and random \ndistributions to make the generation process a bit faster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforfu%2Fplayrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevforfu%2Fplayrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevforfu%2Fplayrix/lists"}