{"id":20292473,"url":"https://github.com/mauricelambert/pyoneliner","last_synced_at":"2026-05-10T01:03:43.836Z","repository":{"id":62582245,"uuid":"329849789","full_name":"mauricelambert/PyOneLiner","owner":"mauricelambert","description":"This package implement a code OneLiner for python (write a script and get it in oneline).","archived":false,"fork":false,"pushed_at":"2021-01-15T08:16:29.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T14:05:09.873Z","etag":null,"topics":["bash","batch","oneliner","pypi-package","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mauricelambert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-15T08:14:48.000Z","updated_at":"2021-01-15T08:18:15.000Z","dependencies_parsed_at":"2022-11-03T20:17:22.617Z","dependency_job_id":null,"html_url":"https://github.com/mauricelambert/PyOneLiner","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/mauricelambert%2FPyOneLiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPyOneLiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPyOneLiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mauricelambert%2FPyOneLiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mauricelambert","download_url":"https://codeload.github.com/mauricelambert/PyOneLiner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241787485,"owners_count":20020101,"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":["bash","batch","oneliner","pypi-package","python3"],"created_at":"2024-11-14T15:17:24.784Z","updated_at":"2026-05-10T01:03:43.784Z","avatar_url":"https://github.com/mauricelambert.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OneLiner\r\n\r\n## Description\r\nThis package implement a code OneLiner for python (write a script and get it in oneline).\r\n\r\n## Requirements\r\nThis package require :\r\n - python3\r\n - python3 Standard Library\r\n\r\n## Installation\r\n```bash\r\npip install PyOneliner\r\n```\r\n\r\n## Examples\r\n\r\n### Command lines\r\n1. For python console:\r\n```bash\r\nPyOneLiner script.py\r\nPyOneLiner script.py --mode \"uu\"\r\n```\r\n2. For bash console:\r\n```bash\r\nPyOneLiner script.py --mode \"base64\" --console \"bash\"\r\nPyOneLiner script.py --mode \"unicode\" --console \"bash\"\r\n```\r\n3. For windows cmd:\r\n```bash\r\nPyOneLiner script.py --mode \"gzip\" --console \"batch\"\r\nPyOneLiner script.py --mode \"ord\" --console \"batch\"\r\n```\r\n\r\n### Python3\r\n```python\r\nfrom PyOneLiner import OneLiner\r\nfrom os import system\r\n\r\noneliner = OneLiner(\"script.py\", type_=\"python\")\r\noneliner.xor()\r\noneline = oneliner.done()\r\nexec(oneline)\r\n\r\noneliner.ascii85()\r\noneline = oneliner.done()\r\nexec(oneline)\r\n\r\noneliner = OneLiner(\"script.py\", type_=\"bash\") # Linux\r\noneliner.lzma()\r\noneline = oneliner.done()\r\nsystem(oneline)\r\n\r\noneliner.binary()\r\noneline = oneliner.done()\r\nsystem(oneline)\r\n\r\noneliner = OneLiner(\"script.py\", type_=\"batch\") # Windows\r\noneliner.base16()\r\noneline = oneliner.done()\r\nsystem(oneline)\r\n\r\noneliner.bz2()\r\noneline = oneliner.done()\r\nsystem(oneline)\r\n```\r\n\r\n## Link\r\n[Github Page](https://github.com/mauricelambert/PyOneLiner)\r\n\r\n## Licence\r\nLicensed under the [GPL, version 3](https://www.gnu.org/licenses/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fpyoneliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmauricelambert%2Fpyoneliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmauricelambert%2Fpyoneliner/lists"}