{"id":16885088,"url":"https://github.com/ericchiang/fprint","last_synced_at":"2025-07-21T04:32:55.595Z","repository":{"id":17229038,"uuid":"19998007","full_name":"ericchiang/fprint","owner":"ericchiang","description":"Fancy printing in python","archived":false,"fork":false,"pushed_at":"2014-05-23T20:58:39.000Z","size":628,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T12:05:39.617Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericchiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-20T21:20:58.000Z","updated_at":"2022-08-28T11:52:32.000Z","dependencies_parsed_at":"2022-09-08T10:01:21.265Z","dependency_job_id":null,"html_url":"https://github.com/ericchiang/fprint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericchiang/fprint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchiang%2Ffprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchiang%2Ffprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchiang%2Ffprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchiang%2Ffprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericchiang","download_url":"https://codeload.github.com/ericchiang/fprint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericchiang%2Ffprint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266240904,"owners_count":23898062,"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":"2024-10-13T16:33:18.726Z","updated_at":"2025-07-21T04:32:55.575Z","avatar_url":"https://github.com/ericchiang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Fancy Printing\n\nPrinting functions I never want to rewrite again\n\n###Install\n\n```\n$ pip install fprint\n```\n\n###Examples\n\n![fprint terminal examples](https://raw.githubusercontent.com/EricChiang/fprint/master/img/fprint.jpg)\n\n```python\nIn [1]: from fprint import *\n\nIn [2]: print_info(\"Hey, some stuff just happened\")\n[14:05:21 14:24:43] INFO: Hey, some stuff just happened\n\nIn [3]: print_warning(\"Hmmm, I guess that's technically not allowed\") # will print in YELLOW\n[14:05:21 14:25:14] WARNING: Hmmm, I guess that's technically not allowed\n\nIn [4]: print_error(\"It's a trap!\") # will print in RED\n[14:05:21 14:25:19] ERROR: It's a trap!\n\nIn [5]: print_success(\"All done!\") # will print in GREEN\n[14:05:21 14:25:44] SUCCESS: All done!\n\nIn [6]: print_time()\n[14:05:21 14:25:53]\n\nIn [7]: print_color(\"Check out my lightsaber\",\"blue\") # print colors!\nCheck out my lightsaber\n\nIn [8]: fancy_print(\"What a custom message\",time=True,header=\"HEADER\",color=\"blue\") # underlying api\n[14:05:21 14:27:30] HEADER: What a custom message\n\nIn [9]: repo_info = {'name': 'eric', 'repos': ['fprint', 'ANN.jl', 'Churn']}\n\nIn [10]: print_json(repo_info)\n{\n  \"repos\": [\n    \"fprint\",\n    \"ANN.jl\",\n    \"Churn\"\n  ],\n  \"name\": \"eric\"\n}\n\nIn [11]: print_json(repo_info,indent=8)\n{\n        \"repos\": [\n                \"fprint\",\n                \"ANN.jl\",\n                \"Churn\"\n        ],\n        \"name\": \"eric\"\n}\n\nIn [12]: print_info(\"this will be written to a file\",file=\"tmp.log\")\n\nIn [13]: print_info(\"this will be appended to the same file\",file=\"tmp.log\")\n\nIn [14]: ! cat tmp.log\n[14:05:21 14:32:38] INFO: this will be written to a file\n[14:05:21 14:32:44] INFO: this will be appened to the same file\n\nIn [15]:\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericchiang%2Ffprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericchiang%2Ffprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericchiang%2Ffprint/lists"}