{"id":38845202,"url":"https://github.com/growgraph/suthing","last_synced_at":"2026-01-17T14:04:27.248Z","repository":{"id":165336667,"uuid":"621014163","full_name":"growgraph/suthing","owner":"growgraph","description":"Small Useful Things : python package for convenient primitives","archived":false,"fork":false,"pushed_at":"2025-11-09T22:50:49.000Z","size":1000,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-09T23:22:03.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://growgraph.github.io/suthing","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/growgraph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-29T20:24:45.000Z","updated_at":"2025-11-09T22:50:53.000Z","dependencies_parsed_at":"2023-12-06T18:27:07.555Z","dependency_job_id":"bc35b1e4-de80-4c0e-b9cb-fd1ef6ece664","html_url":"https://github.com/growgraph/suthing","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/growgraph/suthing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/growgraph%2Fsuthing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/growgraph%2Fsuthing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/growgraph%2Fsuthing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/growgraph%2Fsuthing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/growgraph","download_url":"https://codeload.github.com/growgraph/suthing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/growgraph%2Fsuthing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28509861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-17T14:04:26.541Z","updated_at":"2026-01-17T14:04:27.239Z","avatar_url":"https://github.com/growgraph.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SUThing \u003cimg src=\"docs/assets/favicon.ico\" alt=\"suthing logo\" style=\"height: 32px; width:32px;\"/\u003e\n\nSUThing /ˈsu.θɪŋ/ or /ˈsʌ.θɪŋ/ (Some Useful Things) is a collection of useful classes and decorators.  \n\nA Python utility package providing tools for file handling, timing, profiling, and data comparison.\n\n![Python](https://img.shields.io/badge/python-3.10-blue.svg)\n[![PyPI version](https://badge.fury.io/py/suthing.svg)](https://badge.fury.io/py/suthing)\n[![PyPI Downloads](https://static.pepy.tech/badge/suthing)](https://pepy.tech/projects/suthing)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![pre-commit](https://github.com/growgraph/suthing/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/growgraph/suthing/actions/workflows/pre-commit.yml)\n[![pytest](https://github.com/growgraph/suthing/actions/workflows/pytest.yml/badge.svg)](https://github.com/growgraph/suthing/actions/workflows/pytest.yml)\n\n## Features\n\n- **File Handling**: one-line file reading/wriing with file format infererence from provided extension (YAML, JSON, CSV, pickle, gz etc.)\n- **Performance Measurement**: Simple timer utilities and profiling decorators\n- **Data Comparison**: Deep comparison of nested data structures\n- **Error Handling**: Decorators for secure function execution and error tracking\n\n## Documentation\nFull documentation is available at: [growgraph.github.io/suthing](https://growgraph.github.io/suthing)\n\n## Installation\n\n```bash\npip install suthing\n```\n\n## Usage Examples\n\n### File Handling\n\n```python\nfrom suthing import FileHandle, FileType\n\n# Read YAML file\ndata = FileHandle.load(fpath=\"config.yaml\")\n\n# Write compressed JSON\n# file type inferred from extension\nFileHandle.dump(data, \"output.json.gz\")\n```\n\n### Timing Code\n\n```python\nfrom suthing import Timer\n\nwith Timer() as t:\n    # Your code here\n    pass\nprint(f\"Execution took {t.elapsed_str}\")\n```\n\n### Profiling Functions\n\n```python\nfrom suthing import profile, SProfiler\n\nprofiler = SProfiler()\n\n@profile(_argnames=\"input_size\")\ndef my_function(input_size):\n    # Function code\n    pass\n\n# Run with profiler\nmy_function(input_size=100, _profiler=profiler)\n\n# View results\nstats = profiler.view_stats()\n```\n\n### Deep Comparison\n\n```python\nfrom suthing import equals\n\n# Compare nested structures\nresult = equals(complex_dict1, complex_dict2)\n```\n\n## Requirements\n\n- Python 3.10+\n- pandas\n- PyYAML\n- python-dotenv\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrowgraph%2Fsuthing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrowgraph%2Fsuthing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrowgraph%2Fsuthing/lists"}