{"id":13814238,"url":"https://github.com/paradoxxxzero/nocolon","last_synced_at":"2025-04-13T10:04:47.185Z","repository":{"id":20339904,"uuid":"23614495","full_name":"paradoxxxzero/nocolon","owner":"paradoxxxzero","description":"nocolon is an utf-8 compatible encoding that removes the need of colons in python files.","archived":false,"fork":false,"pushed_at":"2014-09-03T10:26:52.000Z","size":144,"stargazers_count":123,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T01:23:47.844Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paradoxxxzero.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}},"created_at":"2014-09-03T09:33:11.000Z","updated_at":"2023-12-15T19:32:56.000Z","dependencies_parsed_at":"2022-07-25T12:33:50.885Z","dependency_job_id":null,"html_url":"https://github.com/paradoxxxzero/nocolon","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/paradoxxxzero%2Fnocolon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradoxxxzero%2Fnocolon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradoxxxzero%2Fnocolon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paradoxxxzero%2Fnocolon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paradoxxxzero","download_url":"https://codeload.github.com/paradoxxxzero/nocolon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695437,"owners_count":21146954,"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-08-04T04:01:48.306Z","updated_at":"2025-04-13T10:04:47.165Z","avatar_url":"https://github.com/paradoxxxzero.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Nocolon python encoding\n\n**nocolon** is an utf-8 compatible encoding that removes the need of colons in\npython files.\n\n### Disclaimer\n\n**NB: This is wrong, this is in so many ways very wrong.**\n\nThis has not been tested, some case like end line comments are not implemented.\n\nThis is a toy.\n\nDon't use it, don't look at the source, forget this.\n\n## Example:\n\n```python\n# -*- encoding: nocolon -*-\n\n# Python without colons\nif True\n    for i in range(9)\n        print('OMFG')\n\n```\n\n\n## Install\nThis has been tested on **python 3.4**, it could work in python 2 but as the\ncode is parsed in chunks it's a bit more complicated.\n\n### The easy way\n```bash\npip install nocolon\n```\n\nNow you can import the nocolon package in a regular python file and then import\nnocolon files:\n\n`main.py:`\n```python\n#!/bin/env python\n# -*- encoding: utf-8 -*-\nimport nocolon # This patches the encodings module\nimport myfilewithoutcolons\n```\n\n`myfilewithoutcolons.py:`\n```python\n# -*- encoding: nocolon -*-\n\nwhile True\n    print('Freedom')\n```\n\n### The other way\n\nIf you don't want to import the nocolon from another regular python file,\nyou can put the `nocolon/__init__.py` file in your system directory:\n`/usr/lib/python3.4/encodings/nocolon.py` and now you can directly use\n`# -*- encoding: nocolon -*-`.\n\nI'm not responsible for endless shit happening after that!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadoxxxzero%2Fnocolon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparadoxxxzero%2Fnocolon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparadoxxxzero%2Fnocolon/lists"}