{"id":27786312,"url":"https://github.com/clever/kayvee-python","last_synced_at":"2025-04-30T15:59:30.533Z","repository":{"id":21422074,"uuid":"24740179","full_name":"Clever/kayvee-python","owner":"Clever","description":"Kayvee translates an dictionary into a human and machine parseable string","archived":false,"fork":false,"pushed_at":"2024-09-23T18:26:21.000Z","size":50,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":65,"default_branch":"master","last_synced_at":"2025-04-11T13:58:24.798Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clever.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-10-02T23:10:49.000Z","updated_at":"2024-09-23T18:26:25.000Z","dependencies_parsed_at":"2023-01-13T21:28:14.297Z","dependency_job_id":null,"html_url":"https://github.com/Clever/kayvee-python","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fkayvee-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fkayvee-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fkayvee-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Fkayvee-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clever","download_url":"https://codeload.github.com/Clever/kayvee-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251737895,"owners_count":21635703,"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":"2025-04-30T15:59:25.141Z","updated_at":"2025-04-30T15:59:30.520Z","avatar_url":"https://github.com/Clever.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kayvee-python\n\nKayvee translates an dictionary into a human and machine parseable string, with a \"json\" format.\n\n## Usage\n\nThe Kayvee formatter can be used directly or through the `kayvee.logger`\n\n### kayvee formatter\n\n```python\nimport kayvee as kv\n\nprint(kv.format(source=\"logger-test\",\n                level=kv.INFO,\n                title=\"informational-log-title\",\n                dict(id=name_id, context=context_str))\n```\n\n### kayvee.logger\n\n```python\nimport kayvee.logger as logger\n\nlog = logger.Logger(\"logger-test\")\nlog.info(\"information-log-title\", dict(id=name_id, context=context_str))\n\n# Pass global variables:\nlog = logger.Logger(\"logger-test\", default_fields=dict(\"query\"=query))\nlog.info(\"msg-title\")\n```\n\nOther functions supported for structured logging:\n\n* `Logger.debug`\n* `Logger.info`\n* `Logger.warn`\n* `Logger.error`\n* `Logger.critical`\n\nSupported metrics:\n\n* `Logger.counter`\n* `Logger.gauge`\n\n## Releasing a new version\n\nWhen you merge changes for a new version:\n\n- bump the `VERSION`\n- update `CHANGELOG.md` explaining the changes\n- after merging, run `publish.sh`\n    - requires you to install twine and wheel via `pip install \u003cpackage\u003e`\n    - creates a git tag associating the version with the commit\n    - publishes the versioned package to pypi (Python package store)\n\nIf you have any issues, please work with `#oncall-infra`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Fkayvee-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclever%2Fkayvee-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Fkayvee-python/lists"}