{"id":15958433,"url":"https://github.com/louishenrifranc/facebooklog","last_synced_at":"2025-04-04T09:41:06.384Z","repository":{"id":73399080,"uuid":"77542232","full_name":"louishenrifranc/facebooklog","owner":"louishenrifranc","description":"Send plots and logs of your training model to your Messenger account","archived":false,"fork":false,"pushed_at":"2016-12-28T15:52:35.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T20:17:34.615Z","etag":null,"topics":["facebook","logs","machine-learning","messenger","plot","plots","send"],"latest_commit_sha":null,"homepage":"","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/louishenrifranc.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":"2016-12-28T15:24:44.000Z","updated_at":"2017-04-07T15:02:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"25011011-6c7e-4da1-8e28-98c50895a746","html_url":"https://github.com/louishenrifranc/facebooklog","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"d5ca782e6f443234e9bce4b6338826d9a52e4530"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louishenrifranc%2Ffacebooklog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louishenrifranc%2Ffacebooklog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louishenrifranc%2Ffacebooklog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louishenrifranc%2Ffacebooklog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louishenrifranc","download_url":"https://codeload.github.com/louishenrifranc/facebooklog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157046,"owners_count":20893202,"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":["facebook","logs","machine-learning","messenger","plot","plots","send"],"created_at":"2024-10-07T14:04:02.855Z","updated_at":"2025-04-04T09:41:06.361Z","avatar_url":"https://github.com/louishenrifranc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Simple script to send plots and logs via Facebook Messenger. \n* Extend the idea of ![navoshta](https://github.com/navoshta/cloudlog) for Messenger.\n* Usage for ML/DL: __Get noticed when training tasks is over.__\n\n## Installation\n```bash\ngit clone https://github.com/louishenrifranc/facebooklog.git\ncd facebooklog\npython setup.py install\n```\n\n## Usage\n### Create a MessengerLog object\nNeed a facebook account (email, password)\n```python\nmessenger = MessengerLog(username, password)\n```\nIf you want to send to a thread group, fill the parameter ```thread_id```, with the thread id of the conversation, otherwise logs are sent to the same account as the sender.\n\n### Send pyplot plot\n```python\nX, y = [], []\nfor x in xrange(100):\n    X.append(x)\n    y.append(x * 2)\nplt.plot(X, y)\nmessenger.send_plot(caption='New plot')\n```\n\n### Log console outputs\n* Replace all calls to ```print()``` by a call to the ```MessengerLog``` object.\n* Send all the logs at the end with the command:\n```python\nmessenger.send_log_file()\n```\n\n### Send a single message\n```python\nmessenger.send_msg(\"Min loss: %f\" % min_loss)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouishenrifranc%2Ffacebooklog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouishenrifranc%2Ffacebooklog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouishenrifranc%2Ffacebooklog/lists"}