{"id":25623290,"url":"https://github.com/nthe/pythe","last_synced_at":"2025-10-11T13:17:14.311Z","repository":{"id":249953267,"uuid":"65195983","full_name":"nthe/pythe","owner":"nthe","description":"Bunch of decorators and function I made during code investigation.","archived":false,"fork":false,"pushed_at":"2016-10-26T21:35:27.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T06:31:56.788Z","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/nthe.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":"2016-08-08T10:39:13.000Z","updated_at":"2016-10-26T21:35:28.000Z","dependencies_parsed_at":"2024-07-24T10:44:50.252Z","dependency_job_id":null,"html_url":"https://github.com/nthe/pythe","commit_stats":null,"previous_names":["nthe/pythe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nthe/pythe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Fpythe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Fpythe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Fpythe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Fpythe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nthe","download_url":"https://codeload.github.com/nthe/pythe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nthe%2Fpythe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007314,"owners_count":26084280,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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-02-22T11:36:00.016Z","updated_at":"2025-10-11T13:17:14.231Z","avatar_url":"https://github.com/nthe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## pythe\nBasic utilities I use.\n\n### __pysk__\n\nModule contains functions for retrieval of values (or lines) from JSON / dictionary or text file. The advantage is that the source file won't be loaded into main memory and may work with invalid JSON(s) / dictionary(ies).\n\nFunction `parse` has four parameters:\n - source file\n - source file type ( options: json | text )\n - lookup string\n - percentual offset from beginning of file( range: 0 - 100 )\n \nWhen looking for line(s) in text file, the response is list lines containing lookup string.\n\n```python\nimport pythe\npythe.parse('source.txt', 'text', 'October 13th', 50)\n\u003e\u003e\u003e ['Today is October 13th.', 'Another line with sub-string we\\'re looking for. It\\'s October 13th']\n```\n\nWhen looking for value(s) or property(ies) of dictionary / JSON, the response is list of values where key == lookup string.\n```python\nimport pythe\npythe.parse('data.json', 'json', 'tags', 10)\n\u003e\u003e\u003e [['drama', 'comedy', 'thriller'], ['horror', 'thriller', 'drama'], ['documentary', 'nature']] \n```\n\n### __pymin__\n\nSimple Python script minifier.\n\n```python\nimport pymin\npymin.minify('source.py', 'min_source.py')\n```\n\n### __rerun__\n\nAutomatic script re-executor. The script is executed every time the file is modified (saved).\n\n```python\npython rerun.py \u003cpython_script_name\u003e.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnthe%2Fpythe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnthe%2Fpythe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnthe%2Fpythe/lists"}