{"id":20126694,"url":"https://github.com/cc-d/myfuncs","last_synced_at":"2025-08-31T19:45:26.219Z","repository":{"id":164910362,"uuid":"640305886","full_name":"cc-d/myfuncs","owner":"cc-d","description":"For my 'myfuncs' pip package.","archived":false,"fork":false,"pushed_at":"2023-11-04T19:17:25.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T01:48:40.873Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cc-d.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-13T16:42:25.000Z","updated_at":"2023-05-13T18:51:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"9de2d119-08f2-4352-ae10-88abea04da18","html_url":"https://github.com/cc-d/myfuncs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cc-d/myfuncs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-d%2Fmyfuncs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-d%2Fmyfuncs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-d%2Fmyfuncs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-d%2Fmyfuncs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cc-d","download_url":"https://codeload.github.com/cc-d/myfuncs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-d%2Fmyfuncs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273032930,"owners_count":25034067,"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-08-31T02:00:09.071Z","response_time":79,"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":"2024-11-13T20:17:17.978Z","updated_at":"2025-08-31T19:45:26.199Z","avatar_url":"https://github.com/cc-d.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# myfuncs\n\n`myfuncs` is a Python package that provides a set of utility functions designed to streamline your code and enhance efficiency across various projects and platforms.\n\n## Installation\n\nYou can install `myfuncs` using pip:\n\n```bash\npip install myfuncs\n```\n\n### Functions Overview\n\n1. **`nlprint`**: Enhanced print function.\n\n2. **`is_jwt`**: Checks if a given string or bytes is a valid JWT (JSON Web Token).\n\n3. **`ranstr`**: Generates a random string of specified length and character set.\n\n4. **`runcmd`**: Executes a shell command and optionally returns its output.\n\n5. **`get_terminal_width`**: Retrieves the terminal width, defaulting to 80 if undetectable.\n\n6. **`print_middle`**: Displays a string centered amidst a specified character.\n\n7. **`print_columns`**: Prints list items in columns based on terminal width.\n\n8. **`objinfo`**: Presents detailed information about an object, its attributes, methods, and documentation.\n\n9. **`default_repr`**: Provides a standardized string representation of an object.\n\n10. **`typed_evar`**: Fetches an environment variable with inferred or specified type.\n\nFor more detailed descriptions and usage examples, please refer to the module's source code.\n\n\n## Running Tests\n\nThe `myfuncs` package includes a test suite to verify the operation of its functions. To run the tests:\n\n```bash\npython -m unittest tests/test_myfuncs.py\n```\n\nThe other tests file exists for legacy purposes for legacy code in `funcs.py` (no longer used but kept for backwards compatibility).\n\n\n## Contributing\n\nContributions to `myfuncs` are welcomed. If you encounter any issues or have suggestions for improvements, please open an issue on the [GitHub repository](https://github.com/cc-d/myfuncs).\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/cc-d/myfuncs/blob/main/LICENSE) file for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcc-d%2Fmyfuncs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcc-d%2Fmyfuncs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcc-d%2Fmyfuncs/lists"}