Utility Tool
Provide utility tool from other API
Google SpreadSheet
Wrapper for gspread
See also
Refer to API: neuralib.tools.gspread
Slack Notification
Module provide basic function for sending Slack messages with Python
Example Use Case
notification when running analysis in server (error encountered …)
notification for animal training process
Configure a Slack App
1.1. Create an app from https://api.slack.com/app
1.2. Find the “OAuth & Permissions” tab to open access (i.e., chat:write, chat:write.customize, files:read, files:write)
1.3. Click “Install to Workspace”
1.4. See token, which starts with
xoxb-1.5. In Slack, find the
Appstab on the left side to add the created app
Configure an env file
2.1. Put it in the repo as a
*.envfile. DO NOT control it with GIT (add to .gitignore)2.2. The env file should contain two keys:
SLACK_TOKEN(xoxb-*) andCHANNEL_IDto send the message
Call the function
from neuralib.tools.slack_bot import send_slack_message
env_file = ... # env file path
send_slack_message(env_file, 'Hello, slack!')