{"id":15009700,"url":"https://github.com/yuvix25/pytov_old","last_synced_at":"2025-04-09T17:51:33.863Z","repository":{"id":153473562,"uuid":"275097421","full_name":"Yuvix25/pytov_old","owner":"Yuvix25","description":"Python but tov (good).","archived":false,"fork":false,"pushed_at":"2020-08-19T11:28:43.000Z","size":319,"stargazers_count":53,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T19:51:24.812Z","etag":null,"topics":["curly-brace","curlybrace","py","python","python3","pytov"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yuvix25.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-26T07:23:18.000Z","updated_at":"2023-08-05T03:37:21.000Z","dependencies_parsed_at":"2023-05-27T09:45:18.320Z","dependency_job_id":null,"html_url":"https://github.com/Yuvix25/pytov_old","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuvix25%2Fpytov_old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuvix25%2Fpytov_old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuvix25%2Fpytov_old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yuvix25%2Fpytov_old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yuvix25","download_url":"https://codeload.github.com/Yuvix25/pytov_old/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083124,"owners_count":21045046,"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":["curly-brace","curlybrace","py","python","python3","pytov"],"created_at":"2024-09-24T19:27:43.720Z","updated_at":"2025-04-09T17:51:33.845Z","avatar_url":"https://github.com/Yuvix25.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[comment]: \u003c\u003e (README for github)\n# pytov [![Documentation Status](https://readthedocs.org/projects/pytov-documentations/badge/?version=latest)](https://docs.pytov.ml/en/latest/?badge=latest)\n\n\nPython but tov (good).  \n\n[Examples](https://github.com/Yuvix25/pytov/tree/master/pytov/examples)  \n[Visual Studio Code Extension](https://marketplace.visualstudio.com/items?itemName=Yuvix25.pytov-run)  \n[pypi](https://pypi.org/project/pytov/)\n\n## Features\n* Curly braces (not must)\n* No identation errors (if you use the curly braces)\n* func or function instead of def\n* Long and short comments (`/**/`, `//`)\n* Short boolean operators (`and` - `\u0026\u0026`, `or` - `||`, `not` - `!`)\n* Lower case true and false supported too\n* Switch statement\n* Compiles to python\n\n## Requirements\n* python 3\n\n## How to use\nFirst, run `$ pip install pytov`, and then, to run files, simply run in the command line `$ pytov path_to_file`.\nIf you want to also save the compiled python file use (`$ pytov path_to_file -py`).\n\n## Syntax\n```c#\nif (1 \u0026\u0026 1){\n                   print(\"i dont care about indentation\");\n   if(1==1){\nprint(\"except\");\n}\n       }\nif (1!=2){\n    print(\"\\'ihihih\\'\");\n    print({\"hi\":1}[\"hi\"]);\n}\n\ndef hi(){\n    print(\"hi\");\n}\n\ndef hello(){\n    print(\"hello\\\"\");\n}\n\nprint(true || false) // you don't have to use capital T and F in true and false.\n\ndef indentation():\n    print(\"You don't have to use the braces, the regular indentation works too\")\n\n\nanotherTest()\n\ndict = {\"hello\":1};\n\n/*\nthis will not be an error\nmulti line\n*/\n\n//this one too\n\nprint(1 /_ 3) // floor division\n\nswitch(\"hii\", {\n    \"hello\":\n        lambda{ print(\"hello\"); },\n    \"hi\":\n        lambda{ print(\"hi\"); },\n    },\n        lambda{ print(\"default case\"); },\n);\n```\n\nThe sample above shows use of pytov syntax.\n\nJust like C, use curly braces instead of colons (but they still work too), and there are no more indentation errors.\n```c#\ndef test(){\n        print(\"no identation errors\")\n    pass\n}\nif (1 == 1){\n    pass\n}\n```\n\n### Switch\n`switch(var, cases, *args)`\n* var - the value to switch on.\n* case - a dictionary of case that the var might be and their callbacks.\n* *args(optional) - default case.\n\nswitch is a selection statement that chooses a single switch section to execute from a list of cases.\n\n\n### Comments\n\nMultiline:\n```c#\n/*\nuse this syntax if you want the text to be commented out\nand yes, it works on multiple lines.\n*/\n```\nSingle line\n```c#\n// you can also write single line comments like this\n```\n\n### Short boolean operators\nInstead of:\n```python\nif True and False:\n    pass\nelif True or False:\n    pass\nelif not True:\n    pass\n```\nyou can now use (pass no required):\n```c#\nif true \u0026\u0026 false{\n    \n}\nelif true || false{\n    \n}\nelif !true{\n    \n}\n```\n\n---\n[Full documentation](https://docs.pytov.ml)\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvix25%2Fpytov_old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuvix25%2Fpytov_old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuvix25%2Fpytov_old/lists"}